Skip to content

Instantly share code, notes, and snippets.

@xaratustrah
Last active August 27, 2018 12:06
Show Gist options
  • Save xaratustrah/c63a3e4ce58d76698d86dbb927776a10 to your computer and use it in GitHub Desktop.
Save xaratustrah/c63a3e4ce58d76698d86dbb927776a10 to your computer and use it in GitHub Desktop.
pypi_upload.md

PyPI how to

Check classifiers here https://pypi.python.org/pypi?%3Aaction=list_classifiers.

Create markdown:

pandoc --from markdown_github --to rst -o README.rst README.md

Create PKG-INFO without upload:

python setup.py sdist

Test installation locally:

sudo -H python setup.py install --record files.txt

Then remove files again:

cat files.txt | sudo -H xargs rm -rf

Uploading to PyPI:

git commit -am "Bump version."
git tag 0.1.7 -m "Bump version."
git push --tag origin master
python setup.py register -r pypi
python setup.py sdist upload -r pypi

nice introduction http://peterdowns.com/posts/first-time-with-pypi.html

deleting tags from github.

tag -d asdasd

upgrade outdated pip:

pip list --outdated | cut -d ' ' -f 1 | xargs -n 1 sudo -H pip install --upgrade
@carlkl
Copy link

carlkl commented Apr 29, 2016

Please add https://pypi.python.org/pypi/twine in the description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment