This project can be distributed as Python
packages. Before generating a package, we first need to install build.
pip install twine hatchBump the version using hatch.
hatch version <new-version>To create a Python source package (.tar.gz) and the binary package (.whl) in the dist/ directory, do:
rm -rf dist/*
hatch build
python setup.py sdist bdist_wheelis deprecated and will not work for this package.
Then to upload the package to PyPI, do:
twine upload dist/*Configure the following secrets in the GitHub repository:
PYPI_API_TOKEN: PyPI API token
Configure the following secrets and variables in the GitHub repository:
DOCKERHUB_TOKEN: DockerHub token
DOCKERHUB_USERNAME: DockerHub username
Create a new release in GitHub. Everything will be automatically published to PyPI and DockerHub.