Skip to content

Demo of a CI pipeline that automates semantic versioning and distribution of Python projects using python-semantic-release and poetry.

License

Notifications You must be signed in to change notification settings

matteo4diani/poetry-packaging-demo

Repository files navigation

CI

poetry-packaging-demo

CI-CD pipeline for Python projects consisting of:

  1. A placeholder Quality job that you can fill up with your favorite linters, formatters and testing frameworks.
  2. A Release job that releases to GitHub and publishes to PyPI using python-semantic-release and poetry.

Our pipeline automates semantic versioning and distribution of Python projects by leveraging conventional commits.

To use this demo in your project:

  1. Copy the [tool.semantic_release] section of our pyproject.toml into your pyproject.toml and adjust it to your project.
  2. Copy the workflow file at .github/workflows/ci.yml into your .github/workflows folder and adjust it to your project.
  3. In your repository's Secrets create a token named PYPI_TOKEN and paste your PyPI Token into it.

Happy hacking 🐈‍⬛