cookiecutter-modern-pypackage icon indicating copy to clipboard operation
cookiecutter-modern-pypackage copied to clipboard

Cookiecutter 🍪 template for a modern Python package 🐍📦.

Cookiecutter Modern PyPackage

GitHub release (latest SemVer) Python Version Tests Read the Docs License

Black pre-commit Contributor Covenant

Cookiecutter template for a modern Python package.

Features

Quickstart

Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.4.0 or higher):

pip install -U cookiecutter

Generate a Python package project:

cookiecutter gh:fedejaure/cookiecutter-modern-pypackage --checkout v2.1.0

Then:

  • Create a repo and put it there.
  • Install the dev requirements into a virtualenv. (poetry install)
  • Install pre-commit hooks. (poetry run inv install-hooks)
  • Configure Codecov repository settings. (Codecov App, CODECOV_TOKEN)
  • Add the repo to your Read the Docs account + turn on the Read the Docs service hook.
  • Configure PyPI and TestPyPI tokens. (PYPI_TOKEN, TEST_PYPI_TOKEN)
  • Release your package by pushing a new tag.

For more details, see the tutorial.

Credits

This cookiecutter was built for learning purpose and inspired by: