Skip to content

Instantly share code, notes, and snippets.

@kofrasa
Last active June 14, 2017 09:51
Show Gist options
  • Save kofrasa/0e0c3aae94edc6aeb199 to your computer and use it in GitHub Desktop.
Save kofrasa/0e0c3aae94edc6aeb199 to your computer and use it in GitHub Desktop.
Submit package to pypi
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