Create README.rst with https://gist.github.com/fdiskyou/b61de36f7656ab2eed59f6119fc6a372
Edit setup.py
long_desc=open('README.rst').read()
setup(
(...)
long_description=long_desc,
(...)To create the PKG-INFO file to upload to https://pypi.python.org/pypi with the package description.
$ cd ~/CODE/kcshell
$ python setup.py egg_infoTo create the package .tar.gz and wheel file (since I don't support python < 3):
$ python setup.py sdist bdist_wheel
$ twine upload dist/*- https://tom-christie.github.io/articles/pypi/
- https://caremad.io/posts/2013/07/setup-vs-requirement/
- http://www.idiotinside.com/2015/05/10/python-auto-generate-requirements-txt/
- https://github.com/pypa/twine
- https://www.codementor.io/arpitbhayani/host-your-python-package-using-github-on-pypi-du107t7ku
- https://www.digitalocean.com/community/tutorials/how-to-package-and-distribute-python-applications
- http://peterdowns.com/posts/first-time-with-pypi.html
- https://packaging.python.org/distributing/#pure-python-wheels
- https://packaging.python.org/distributing/#uploading-your-project-to-pypi
- https://python-packaging.readthedocs.io/en/latest/minimal.html