Development
Requirements
While not strictly required we assume that you installed just in the description below.
Install
uv
We recommend you use uv to install
the package. To do that please use the following commands in the root of
the repository:
uv venv --allow-existing
uv sync --all-extras
Note: If you use the install option above, then you need to prefix
all commands with uv run. For example instead of pytest use
the command uv run pytest.
Pip
To install the package
in development/editable mode
including development (
dev) packages
please use the following command in the root of the repository:
pip install -e .[dev]
Uninstall
pip uninstall icotest
Release
Note: In the text below we assume that you want to release version
<VERSION> of the package. Please just replace this version number
with the version that you want to release (e.g. 0.2.0).
Make sure that all the checks and tests work correctly locally
just
Make sure that installing the package with
pipworks:pip install -e . icotest run -k 'stu and test_connection' pip uninstall -y icotest
Make sure all workflows of the CI system work correctly
Check that the most recent “Read the Docs” build of the documentation ran successfully
Release a new version on PyPI:
Increase version number
Add git tag containing version number
Push changes
just release <VERSION>
Open the release notes for the latest version and create a new release
Paste them into the main text of the release web page
Insert the version number into the tag field
For the release title use “Version
<VERSION>” (e.g. “Version 0.2”)Click on “Publish Release”
Note: Alternatively you can also use the gh CLI command:
gh release create
to create the release notes.