-
Register on test.pypi.org and pypi.org
-
Create .pypirc file and put it in ~/.pypirc (or windows10 C:\User$username$)
(under unix set the right permission “chmod 600 ~/.pypirc”)
.pypirc:
- Upload your package to github with the following files:
setup.py:
setup.cfg:
README.md:
gitignore.txt:
LICENSE.txt: (MIT license example - change year and name in the first line)
a folder with the package name with a __init__.py file inside.
- Upload everything on github (with a tag):
- run: python setup.py sdist upload -r pypitest
- run: python setup.py sdist upload -r pypi