Skip to content

Instantly share code, notes, and snippets.

@stnbu
Last active August 29, 2015 14:10
Show Gist options
  • Save stnbu/66b344d01c5f6af63b1d to your computer and use it in GitHub Desktop.
Save stnbu/66b344d01c5f6af63b1d to your computer and use it in GitHub Desktop.
*roughly* the steps needed to submit a package to python's pypi repository
# my highly abridged recipe for pushing to pypi:
python setup.py clean -a ; rm -rf *.egg-info/ dist/ */direg.egg-info/ README.rst ; find . -name "*.pyc" -exec rm "{}" \;
python setup.py check --restructuredtext --metadata
python setup.py test
python setup.py register -r https://pypi.python.org/pypi
python setup.py sdist upload -r https://pypi.python.org/pypi --sign --identity=someguy@example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment