Last active
June 14, 2017 09:51
-
-
Save kofrasa/0e0c3aae94edc6aeb199 to your computer and use it in GitHub Desktop.
Submit package to pypi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create your account on pypi and pypitest | |
2. Create a ~/.pypirc file | |
3. Populate with configuration | |
``` | |
[distutils] | |
index-servers = | |
pypi | |
pypitest | |
[pypi] | |
repository: https://pypi.python.org/pypi | |
username: your_username | |
password: your_password | |
[pypitest] | |
repository: https://testpypi.python.org/pypi | |
username: your_username | |
password: your_password | |
``` | |
4.. Register package | |
``` | |
python setup.py register -r pypitest | |
python setup.py register -r pypi | |
``` | |
5. Submit pacakge. You can skip all the the above next time after any update | |
``` | |
python setup.py sdist upload -r pypitest | |
python setup.py sdist upload -r pypi | |
``` | |
http://peterdowns.com/posts/first-time-with-pypi.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment