How to upload pypi packages to Artifactory using twine

Mohamad Masarwa
2021-08-31 12:13

Subject:

The following steps show how to upload Pypi packages to Artifactory using twine
 

Resolution:

In order to install twine run:

$ pip install twine 

Create a .pypirc file in the root like the following:

[distutils]

index-servers = local

[local]

repository: http://localhost:8081/artifactory/api/pypi/pypi

username: <user_name>

password: <password> 

The twine upload command:

$ twine upload -r local <PATH_TO_THE_FILES> --config-file ~/.pypirc