Build global SDist and wheel.
(session: nox.Session)
| 130 | |
| 131 | @nox.session(reuse_venv=True) |
| 132 | def build_global(session: nox.Session) -> None: |
| 133 | """ |
| 134 | Build global SDist and wheel. |
| 135 | """ |
| 136 | |
| 137 | installer = ["--installer=uv"] if session.venv_backend == "uv" else [] |
| 138 | session.install("build", "tomlkit") |
| 139 | session.log("Building pybind11-global files") |
| 140 | pyproject = Path("pyproject.toml") |
| 141 | with preserve_file(pyproject): |
| 142 | newer_txt = session.run("python", "tools/make_global.py", silent=True) |
| 143 | assert isinstance(newer_txt, str) |
| 144 | pyproject.write_text(newer_txt, encoding="utf-8") |
| 145 | session.run( |
| 146 | "python", |
| 147 | "-m", |
| 148 | "build", |
| 149 | *installer, |
| 150 | *session.posargs, |
| 151 | ) |
nothing calls this directly
no test coverage detected