Release Version
Prepare Test PyPi / PyPi
Get your access tokens from Test PyPi and PyPi, respectively.
Provide the token to
uv publish, either via the--tokenargument or via theUV_PUBLISH_TOKENenvironment variable. Make sure to use the token matching the index you publish to.
export UV_PUBLISH_TOKEN=pypi-XXXXX...
Release Version to Test PyPi
First, check whether the project is ready for publication on Test PyPi.
Update version, build the project, and publish the project at Test PyPi.
uv version --bump patch --bump alpha uv build uv publish --publish-url https://test.pypi.org/legacy/ --token <TEST_PYPI_TOKEN>
Create a new, empty virtual environment outside of the repository and install
PyExperimenterfrom Test PyPi.
uv venv pyexperimenter-release --python 3.10 source pyexperimenter-release/bin/activate uv pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple --index-strategy unsafe-best-match py-experimenter==<VERSION>
Execute all example notebooks and check the outputs based on the new environment
pyexperimenter-release. If anything does not work, fix it and repeat the steps above.
Release Version to PyPi
Update version and add according CHANGELOG information.
uv version --bump <major/minor/patch>
Create a pull request from
developtomainand merge it (not squash merge).Create a tag with the according version number for that merge commit.
Create a new release for that tag with the version number as title and the latest changelog additions as content. With pressing the button
Publish releasethe requested files will be attached automatically.Build the project and publish the project at PyPi.
uv build uv publish --token <PYPI_TOKEN>
Check PyPi version.