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

Function build_global

tests/extra_python_package/test_files.py:160–169  ·  view source on GitHub ↗

Build global SDist and wheel.

()

Source from the content-addressed store, hash-verified

158
159@contextlib.contextmanager
160def build_global() -> Generator[None, None, None]:
161 """
162 Build global SDist and wheel.
163 """
164
165 pyproject = MAIN_DIR / "pyproject.toml"
166 with preserve_file(pyproject):
167 newer_txt = get_global()
168 pyproject.write_text(newer_txt, encoding="utf-8")
169 yield
170
171
172def read_tz_file(tar: tarfile.TarFile, name: str) -> bytes:

Callers 2

test_build_global_distFunction · 0.70
tests_build_global_wheelFunction · 0.70

Calls 2

get_globalFunction · 0.90
preserve_fileFunction · 0.70

Tested by

no test coverage detected