Skip to content

Instantly share code, notes, and snippets.

@LinuxIsCool
Created March 11, 2023 00:01
Show Gist options
  • Select an option

  • Save LinuxIsCool/b6c99e9d85f9402f6219a84152ae06da to your computer and use it in GitHub Desktop.

Select an option

Save LinuxIsCool/b6c99e9d85f9402f6219a84152ae06da to your computer and use it in GitHub Desktop.
Publishing a Package to Pypi with Poetry

Quick Guide to Pypi Publishing with Poetry

  1. Check that your package name is available by searching on PyPi
    https://pypi.org

  2. Register on PyPi and generate an API token:
    https://pypi.org

  3. Config Poetry with your API token
    poetry config pypi-token.pypi <your-api-token>

  4. Make sure tests are passing
    pytest

  5. Build and Publish your package
    poetry publish --build

Resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment