cookiecutter https://github.com/Wh1isper/pypi-hatch-pytest-cookiecutter.git
cookiecutter template for python package
- pytest support
- hatch for build
- read-the-docs support
- github CI
- pre-commit
- docker build
refer to audreyr/cookiecutter-pypackage
PAT
: for GitHub Container Registry and versioningDOCKERHUB_TOKEN
: for pushing image to DockerHubPYPI_API_TOKEN
: for uploading to PyPI
It's recommended to upgrade pypi release to Trusted Publishing Upgrade to Trusted Publishing Trusted Publishers allows publishing packages to PyPI from automated environments like GitHub Actions without needing to use username/password combinations or API tokens to authenticate with PyPI. Read more: https://docs.pypi.org/trusted-publishers
DOCKERHUB_USERNAME
: for pushing image to DockerHub