File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" scikit-build-core >=0.11.0 " ]
2
+ requires = [" scikit-build-core >=0.11.2 " ]
3
3
build-backend = " scikit_build_core.build"
4
4
5
5
[project ]
@@ -79,9 +79,9 @@ regex = '''(?sx)
79
79
'''
80
80
result = " {major}.{minor}.{patch}"
81
81
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]} " ]}
85
85
86
86
[[tool .scikit-build .generate ]]
87
87
path = " pybind11/_version.py"
@@ -101,6 +101,11 @@ version_info = tuple(_to_int(s) for s in __version__.split("."))
101
101
'''
102
102
103
103
104
+ # Can't use tool.uv.sources with requirements.txt
105
+ [tool .uv ]
106
+ index-strategy = " unsafe-best-match"
107
+
108
+
104
109
[tool .mypy ]
105
110
files = [" pybind11" ]
106
111
python_version = " 3.8"
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ def get_global() -> str:
19
19
del pyproject ["project" ]["optional-dependencies" ]
20
20
del pyproject ["project" ]["entry-points" ]
21
21
del pyproject ["project" ]["scripts" ]
22
+ del pyproject ["tool" ]["scikit-build" ]["metadata" ]["optional-dependencies" ]
22
23
pyproject ["project" ]["name" ] = "pybind11-global"
23
24
pyproject ["tool" ]["scikit-build" ]["experimental" ] = True
24
25
pyproject ["tool" ]["scikit-build" ]["wheel" ]["install-dir" ] = "/data"
You can’t perform that action at this time.
0 commit comments