docs: update contributing/release guide a little (#5681)

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2025-05-22 01:38:10 -04:00
committed by GitHub
parent 2624d4a360
commit 8d503e30be
2 changed files with 28 additions and 26 deletions

View File

@@ -117,10 +117,21 @@ build only one of the valid targets (listed below).
```bash
cmake --preset venv -DPYBIND11_CREATE_WITH_UV=3.13t
cmake --build --preset venv
cmake --build --preset testsvenv -t cpptest
cmake --build --preset venv -t cpptest
```
The `default` preset will use an existing venv or Python install.
The `default` preset will use an existing venv or Python install. If you'd like
to run pytest yourself, say to easily control the options:
```bash
cd build
source .venv/bin/activate
cd tests
python -m pytest
```
The `.so` file is not installed into the venv, so you need to run from this
directory, the local directory is included with `python -m`.
## Configuration options