Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Python
(view source)
Revision as of 09:14, 7 May 2018
447 bytes added
,
09:14, 7 May 2018
→Change PyPi
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
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version