Changes

Jump to navigation Jump to search
447 bytes added ,  09:14, 7 May 2018
Line 793: Line 793:  
index-url= http://10.255.0.21/pypi/simple
 
index-url= http://10.255.0.21/pypi/simple
 
trusted-host= 10.255.0.21</nowiki>
 
trusted-host= 10.255.0.21</nowiki>
 +
== Publish to PyPi ==
 +
Create the file ~/.pypirc
 +
<nowiki>[distutils]
 +
index-servers =
 +
    pypi
 +
    pypitest
 +
 +
[pypi]
 +
    repository=https://pypi.python.org/pypi
 +
    username=
 +
    password=
 +
 +
[pypitest]
 +
    repository=https://test.pypi.org/legacy
 +
    username=
 +
    password=
 +
</nowiki>
 +
 +
Test
 +
python setup.py register -r pypitest
 +
python setup.py sdist upload -r pypitest
 +
 +
Upload
 +
python setup.py register -r pypi
 +
python setup.py sdist upload -r pypi

Navigation menu