$ python setup.py sdist bdist_wheel
# pip install wheel # if there is error runing upper command
$ twine upload --repository testpypi dist/*
Old ways
Old ways
Create login file
Window: C:\Users\username\.pypirc
Unix: /home/username/.pypirc
Window: C:\Users\username\.pypirc
Unix: /home/username/.pypirc
$ chmod 600 ~/.pypirc
[distutils]
index-servers =
pypi
pypitest
[pypitest]
repository = https://test.pypi.org/legacy/
username = username
password = password
[pypi]
repository = https://pypi.python.org/pypi
username = username
password = password
[distutils]
index-servers =
pypi
pypitest
[pypitest]
repository = https://test.pypi.org/legacy/
username = username
password = password
[pypi]
repository = https://pypi.python.org/pypi
username = username
password = password
Registration is only required the first time
$ python setup.py register -r pypitest
$ python setup.py sdist
$ twine upload dist/* -r pypitest
Creating virtual env
$ virtualenv -p python3 testenv
Installing package
$ pip install --verbose --extra-index-url https://test.pypi.org/legacy/ stellar-desk
$ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple stellar-desk
$ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple stellar-desk==0.3.1
$ pip show stellar-desk
Main enviroment
$ pip install package_name
Official links:
https://pypi.org - This is a pre-production deployment of Warehouse.
Next Generation Python Package Repository. Beta version, that will be replace pypi
https://pypi.python.org/
Test pypi package:
https://test.pypi.org
https://testpypi.python.org
Next Generation Python Package Repository. Beta version, that will be replace pypi
https://pypi.python.org/
Test pypi package:
https://test.pypi.org
https://testpypi.python.org
https://testpypi.python.org/pypi/test-stellardesk/0.1.0
https://test.pypi.org/project/test-stellardesk/0.1.1/#description
https://test.pypi.org/project/test-stellardesk/0.1.1/#description
Tutorials: