Getting started on Gemfury with Python

Upload packages with Twine

Many developers choose Twine to publish Python packages. Gemfury supports Twine through our upload endpoint.

To start, you will need an authentication token for your account from the Tokens section of your dashboard.

Upload a single package with the following command:

$ twine upload PACKAGE --repository-url -u TOKEN -p ""

You can also upload multiple packages by specifying a directory:

$ twine upload dist/* --repository-url -u TOKEN -p ""

If using Twine as part of a script, securely pass your token using an environment variable TWINE_USERNAME:

$ TWINE_USERNAME=TOKEN twine upload PACKAGE --repository-url -p ""

You may alternatively use Keyring to store your credentials.