2012-11-26 17:47:15 +00:00
|
|
|
Creating bundle
|
|
|
|
|
===============
|
|
|
|
|
|
|
|
|
|
$ python setup.py sdist
|
|
|
|
|
|
2015-04-13 13:06:41 +00:00
|
|
|
Uploading bundle to PyPi
|
2012-11-26 17:47:15 +00:00
|
|
|
========================
|
|
|
|
|
|
|
|
|
|
$ python setup.py sdist upload
|
2015-04-27 16:49:15 +00:00
|
|
|
|
|
|
|
|
OR
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ python setup.py sdist upload -r pypi
|
|
|
|
|
|
|
|
|
|
This needs we have a ~/.pypi file. Its content should be like:-
|
|
|
|
|
|
|
|
|
|
[distutils] # this tells distutils what package indexes you can push to
|
|
|
|
|
index-servers =
|
|
|
|
|
pypi
|
|
|
|
|
pypitest #Optional
|
|
|
|
|
|
|
|
|
|
[pypi]
|
|
|
|
|
repository: https://pypi.python.org/pypi
|
|
|
|
|
username: <username>
|
|
|
|
|
password: <password>
|
|
|
|
|
|
|
|
|
|
[pypitest] #Optional
|
|
|
|
|
repository: https://testpypi.python.org/pypi
|
|
|
|
|
username: <username>
|
|
|
|
|
password: <password>
|