MCPcopy Create free account
hub / github.com/pybind/pybind11 / get_global

Function get_global

tools/make_global.py:16–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def get_global() -> str:
17 pyproject = tomlkit.parse(PYPROJECT.read_text())
18 del pyproject["tool"]["scikit-build"]["generate"]
19 del pyproject["project"]["entry-points"]
20 del pyproject["project"]["scripts"]
21 del pyproject["tool"]["scikit-build"]["metadata"]["optional-dependencies"]
22 pyproject["project"]["name"] = "pybind11-global"
23 pyproject["tool"]["scikit-build"]["experimental"] = True
24 pyproject["tool"]["scikit-build"]["wheel"]["install-dir"] = "/data"
25 pyproject["tool"]["scikit-build"]["wheel"]["packages"] = []
26
27 result = tomlkit.dumps(pyproject)
28 assert isinstance(result, str)
29 return result
30
31
32if __name__ == "__main__":

Callers 2

build_globalFunction · 0.90
make_global.pyFile · 0.85

Calls 1

isinstanceFunction · 0.85

Tested by 1

build_globalFunction · 0.72