Skip to main content

A demo of a Python packaging workflow using GH Actions and poetry

Project description

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 🐈‍⬛

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry_packaging_demo-1.3.4.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

poetry_packaging_demo-1.3.4-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page