File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" scikit-build-core >=0.11.0 " ]
2+ requires = [" scikit-build-core >=0.11.2 " ]
33build-backend = " scikit_build_core.build"
44
55[project ]
@@ -79,9 +79,9 @@ regex = '''(?sx)
7979'''
8080result = " {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 ]]
8787path = " 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 ]
105110files = [" pybind11" ]
106111python_version = " 3.8"
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments