https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/
+ (Ubuntu)
python3 -m pip install --user virtualenv twine setuptools wheel numpy
+ Windows
open command line, type: python, install it from the windows store (latest one is now 3.8.2)
open terminal again and now install virtualenv
python -m pip install --user virtualenv
pip install twine setuptools wheel numpy
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- If you are using ubuntu, maybe you will get this error from commandline
....
from keyring.util.escape import escape as escape_for_ini ModuleNotFoundError: No module named 'keyring.util.escape'
pip3 install --upgrade keyrings.alt
+ Change your code
+ Change your setup.py file with new version of your package
+ git add, commit and push to remote
+ create new releases in github pages. With the tags same as version of your packages in setup.py
+ push your release to pypi by:
python3 -m pip install --user --upgrade setuptools wheel
python3 setup.py sdist bdist_wheel
twine check dist/*
twine upload --skip-existing dist/*
==> Done
==> Install from pip
pip install YOURPACKAGE --upgrade
(Usename: ...., password: ...)