diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d3ae7672a..9c5ee3a7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -129,6 +129,6 @@ repos: - id: check-sdist args: [--inject-junk] additional_dependencies: - - scikit-build-core[pyproject]>=0.5.0 + - scikit-build-core[pyproject]>=0.5.0,<0.6 # TODO: remove upper cap once scikit-build-core is updated - setuptools-scm>=7 - pybind11>=2.11 diff --git a/noxfile.py b/noxfile.py index b8fa2901a..5fb57113f 100644 --- a/noxfile.py +++ b/noxfile.py @@ -33,7 +33,9 @@ def pylint(session: nox.Session) -> None: Simply execute `nox -rs pylint` to run PyLint. """ - session.install("scikit-build-core[pyproject]", "setuptools_scm", "pybind11") + session.install( + "scikit-build-core[pyproject]<0.6", "setuptools_scm", "pybind11" + ) # TODO: remove upper cap once scikit-build-core is updated session.install("--no-build-isolation", "-ve.", "pylint") session.run("pylint", "mqt.qmap", *session.posargs) @@ -56,7 +58,9 @@ def _run_tests( _extras.append("coverage") posargs.append("--cov-config=pyproject.toml") - session.install("scikit-build-core[pyproject]", "setuptools_scm", "pybind11", *install_args, env=env) + session.install( + "scikit-build-core[pyproject]<0.6", "setuptools_scm", "pybind11", *install_args, env=env + ) # TODO: remove upper cap once scikit-build-core is updated install_arg = f"-ve.[{','.join(_extras)}]" session.install("--no-build-isolation", install_arg, *install_args, env=env) session.run("pytest", *run_args, *posargs, env=env) @@ -90,7 +94,11 @@ def docs(session: nox.Session) -> None: if args.builder != "html" and args.serve: session.error("Must not specify non-HTML builder with --serve") - build_requirements = ["scikit-build-core[pyproject]", "setuptools_scm", "pybind11"] + build_requirements = [ + "scikit-build-core[pyproject]<0.6", + "setuptools_scm", + "pybind11", + ] # TODO: remove upper cap once scikit-build-core is updated extra_installs = ["sphinx-autobuild"] if args.serve else [] session.install(*build_requirements, *extra_installs) session.install("--no-build-isolation", "-ve.[docs]") diff --git a/pyproject.toml b/pyproject.toml index e8956a824..4f571a54a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,6 @@ [build-system] -requires = ["scikit-build-core>=0.5.0", "setuptools-scm>=7", "pybind11>=2.11"] +# TODO: remove upper cap once scikit-build-core is updated +requires = ["scikit-build-core>=0.5.0,<0.6.0", "setuptools-scm>=7", "pybind11>=2.11"] build-backend = "scikit_build_core.build" [project]