Install hatch
, e.g.
pipx install hatch
Run the tests and linters with multiple python versions.
To run using all available python versions:
hatch run all:test
To run using a particular Python version available in the hatch matrix:
hatch run +py=3.11 all:test
Generate the distribution package archives.
hatch build
Then create a new virtual environment, install the dependencies, and install from the local wheel.
rm -rf .venv-test
python -m venv .venv-test
source .venv-test/bin/activate
python -m pip install --upgrade pip
pip install dist/*.whl
music-playlists --version
music-playlists --help
If the package seems to work as expected, push changes to the main
branch.
The pypi-package.yml
GitHub Actions workflow will deploy a release to Test PyPI.
Then follow the same process as testing a release locally, except download the wheel from Test PyPI instead of using the local wheel file.
Go to the test project page and check that it looks ok.
Create a tag on the main
branch.
The pypi-package.yml
GitHub Actions workflow will deploy a release to PyPI.
Go to the live project page and check that it looks ok.
Done!