Opinionated cookiecutter template for Python packages. Cool features:
- Package management using poetry
- Automated CI/CD workflows with GitHub Actions
- Testing using pytest
- Linting using black
- Semantic versioning using bump2version
- Automated dependency updates using dependabot
Install cookiecutter:
$ pip install cookiecutter
Generate your Python package:
$ cookiecutter https://github.com/kpj/cookiecutter-python
Setup additional requirements:
- Add a new API token on PyPi and call it
GitHub Actions CI/CD — <username>/<project>
- Add API token on
https://github.com/<username>/<project>/settings/secrets/actions
and call itPYPI_API_TOKEN
To update the version (and tag/commit the new release) execute bump2version major/minor/patch
.