Skip to content

Commit

Permalink
⬆️ update to scikit-build-core 0.10 (#503)
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>
  • Loading branch information
burgholzer committed Aug 9, 2024
1 parent 70c84d1 commit a21ae59
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 @@ -80,13 +80,12 @@ Discussions = "https://github.com/cda-tum/mqt-qmap/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/qmap"

# 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 @@ -96,7 +95,7 @@ build-dir = "build/{build_type}"
wheel.packages = ["src/mqt"]

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

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

0 comments on commit a21ae59

Please sign in to comment.