I always forget how to register and upload packages to PyPi, and the documentation is always out of date.
Follow these steps:
-
git clone https://github.com/andycasey/setup-on-pypi.git
-
cd setup-on-pypi/
-
If you don't have one already:
cp .pypirc ~/.pypirc
and update the~/.pypirc
file with your PyPi username and password. -
Change
YOUR_PACKAGE_NAME
insetup.py
-
conda install twine
-
python setup.py sdist
-
twine upload dist/*