Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ scikit-build-core 0.11, PEP 639 license expressions, sphinx fixes, more automerge #847

Merged
merged 8 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
lockFileMaintenance: {
"enabled": true,
// "automerge": true, disabled due to endless update loops caused by setuptools_scm
"automerge": true,
},
configMigration: true,
labels: ["dependencies"],
Expand All @@ -30,9 +30,16 @@
commitMessagePrefix: "⬆\uFE0F\uD83E\uDE9D",
},
{
"description": "Automerge patch updates",
"matchUpdateTypes": ["patch"],
"automerge": true
description: "Automerge patch updates",
matchUpdateTypes: ["patch"],
automerge: true
},
{
description: "Automerge minor updates for stable dependencies",
matchManagers: ["pep621", "pre-commit"],
matchUpdateTypes: ["minor", "patch"],
matchCurrentVersion: "!/^0/",
automerge: true
}
]
}
28 changes: 15 additions & 13 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def _run_tests(
"build",
"--only-group",
"test",
"--verbose",
*install_args,
env=env,
)
Expand All @@ -74,6 +75,7 @@ def _run_tests(
"--no-dev", # do not auto-install dev dependencies
"--no-build-isolation-package",
"mqt-core", # build the project without isolation
"--verbose",
*install_args,
"pytest",
*run_args,
Expand Down Expand Up @@ -113,6 +115,19 @@ def docs(session: nox.Session) -> None:
if serve:
session.install("sphinx-autobuild")

env = {"UV_PROJECT_ENVIRONMENT": session.virtualenv.location}
# install build and docs dependencies on top of the existing environment
session.run(
"uv",
"sync",
"--inexact",
"--only-group",
"build",
"--only-group",
"docs",
env=env,
)

# build the C++ API docs using doxygen
with session.chdir("docs"):
if shutil.which("doxygen") is None:
Expand All @@ -133,19 +148,6 @@ def docs(session: nox.Session) -> None:
external=True,
)

env = {"UV_PROJECT_ENVIRONMENT": session.virtualenv.location}
# install build and docs dependencies on top of the existing environment
session.run(
"uv",
"sync",
"--inexact",
"--only-group",
"build",
"--only-group",
"docs",
env=env,
)

shared_args = [
"-n", # nitpicky mode
"-T", # full tracebacks
Expand Down
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["scikit-build-core>=0.10.7", "setuptools-scm>=8.1", "pybind11>=2.13.6"]
requires = ["scikit-build-core>=0.11.0", "setuptools-scm>=8.1", "pybind11>=2.13.6"]
build-backend = "scikit_build_core.build"

[project]
Expand All @@ -10,12 +10,12 @@ authors = [
{ name = "Lukas Burgholzer", email = "burgholzer@me.com" }
]
keywords = ["MQT", "quantum-computing", "design-automation", "decision-diagrams", "zx-calculus"]
license = { file = "LICENSE.md" }
license = "MIT"
license-files = ["LICENSE.md"]

classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
Expand Down Expand Up @@ -281,7 +281,7 @@ mqt-core = { workspace = true }
[dependency-groups]
build = [
"pybind11>=2.13.6",
"scikit-build-core>=0.10.7",
"scikit-build-core>=0.11.0",
"setuptools-scm>=8.1",
]
docs = [
Expand All @@ -299,7 +299,9 @@ docs = [
"openqasm-pygments>=0.1.2",
"breathe>=4.36.0",
"graphviz>=0.20.3",
"sphinx>=7.4.7,<8.2", # due to https://github.com/missinglinkelectronics/sphinxcontrib-svg2pdfconverter/issues/26
"sphinx>=7.4.7",
"sphinx>=8.1.3; python_version >= '3.10'",
"sphinx>=8.2.3; python_version >= '3.11'",
]
test = [
"pytest>=8.3.3",
Expand Down
Loading
Loading