Skip to content

Commit ce7aec7

Browse files
committed
fix: restore global pin
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 1f204a1 commit ce7aec7

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

pyproject.toml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["scikit-build-core >=0.11.0"]
2+
requires = ["scikit-build-core >=0.11.2"]
33
build-backend = "scikit_build_core.build"
44

55
[project]
@@ -79,9 +79,9 @@ regex = '''(?sx)
7979
'''
8080
result = "{major}.{minor}.{patch}"
8181

82-
# Can't use tool.uv.sources with requirements.txt
83-
[tool.uv]
84-
index-strategy = "unsafe-best-match"
82+
[tool.scikit-build.metadata.optional-dependencies]
83+
provider = "scikit_build_core.metadata.template"
84+
result = { global = ["pybind11-global=={project[version]}"]}
8585

8686
[[tool.scikit-build.generate]]
8787
path = "pybind11/_version.py"
@@ -101,6 +101,11 @@ version_info = tuple(_to_int(s) for s in __version__.split("."))
101101
'''
102102

103103

104+
# Can't use tool.uv.sources with requirements.txt
105+
[tool.uv]
106+
index-strategy = "unsafe-best-match"
107+
108+
104109
[tool.mypy]
105110
files = ["pybind11"]
106111
python_version = "3.8"

tools/make_global.py

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def get_global() -> str:
1919
del pyproject["project"]["optional-dependencies"]
2020
del pyproject["project"]["entry-points"]
2121
del pyproject["project"]["scripts"]
22+
del pyproject["tool"]["scikit-build"]["metadata"]["optional-dependencies"]
2223
pyproject["project"]["name"] = "pybind11-global"
2324
pyproject["tool"]["scikit-build"]["experimental"] = True
2425
pyproject["tool"]["scikit-build"]["wheel"]["install-dir"] = "/data"

0 commit comments

Comments
 (0)