Skip to content

Commit

Permalink
⬆️ update to scikit-build-core 0.10 (#436)
Browse files Browse the repository at this point in the history
## Description

This PR updates the project to the latest scikit-build-core version that
was just released and adapts the configuration correspondingly.

## Checklist:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.

---------

Signed-off-by: burgholzer <burgholzer@me.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
burgholzer and pre-commit-ci[bot] committed Aug 9, 2024
1 parent 408aa2c commit c4ab58e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# and get better caching performance. This only concerns dependencies that are
# not available via wheels on PyPI (i.e., only as source distributions).
BUILD_REQUIREMENTS = [
"scikit-build-core[pyproject]>=0.8.1",
"scikit-build-core[pyproject]>=0.10.1",
"setuptools_scm>=7",
"pybind11>=2.13",
"wheel>=0.40", # transitive dependency of pytest on Windows
Expand Down
9 changes: 4 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.8.1", "setuptools-scm>=7", "pybind11>=2.13"]
requires = ["scikit-build-core>=0.10.1", "setuptools-scm>=7", "pybind11>=2.13"]
build-backend = "scikit_build_core.build"

[project]
Expand Down Expand Up @@ -71,13 +71,12 @@ Discussions = "https://github.com/cda-tum/mqt-qcec/discussions"

[tool.scikit-build]
# Protect the configuration against future changes in scikit-build-core
minimum-version = "0.8.1"
minimum-version = "build-system.requires"

# Set the wheel install directory
wheel.install-dir = "mqt/qcec"

# Set required CMake and Ninja versions
cmake.version = ">=3.19"
# Set required Ninja version
ninja.version = ">=1.10"

# Setuptools-style build caching in a local directory
Expand All @@ -87,7 +86,7 @@ build-dir = "build/{wheel_tag}"
wheel.packages = ["src/mqt"]

# Only build the Python bindings target
cmake.targets = ["pyqcec"]
build.targets = ["pyqcec"]

# Only install the Python package component
install.components = ["mqt-qcec_Python"]
Expand Down

0 comments on commit c4ab58e

Please sign in to comment.