Notes tagged with "Python"

Poetry Uploads

Uploading Packages to PyPi With Poetry

Setting a pypi repository token:

  1. create a token on pypi. Create a specific token for each package.

  2. copy the token and put it somewhere safe.

  3. Save your token with poetry. Poetry will try to use keyring to store the token:

    poetry config pypi-token.dover-test

    poetry config pyi-token.pypi my-token

this is what poetry does

  1. fetches the repo url from your local config file (On Linux Mint this is located here: ~/.config/pypoetry/config.toml. )