To upload to Artifactory, an entry for each repository needs to be made in
$HOME/.pypirc as follows:
[distutils] index-servers = local pypi [pypi] repository: https://pypi.org/pypi username: mrBagthrope password: notToBeSeen [local] repository: http://localhost:8081/artifactory/api/pypi/pypi-local username: admin password: password
Notice that the URL does not end with
The HOME environment variable
setuptools requires that the
.pypirc file be found under
$HOME/.pypirc, using the
HOME environment variable.
On unix-like systems this is usually set by your system to
/home/yourusername/ but in certain environments such as build servers you will have to set it manually.
On Windows it must be set manually.