-
Creating a new Python Package (and putting it up on PyPi)
Creating a new Python package
OMG this is easy, why haven’t I done this before?
NOTE: you can ignore github-tools — really that is meant to only help the gh_pages documentation generating.
And, in fact, we have some pretty awesome tools without it!!!
$ paster create -t basic_package PACKAGE_NAME* hack hack hack*
* hack hack hack *
Test install it somewhere with:
$ pip -e hg+/path/to/package#egg=PACKAGE_NAME* does the package work now? Yes? Awesome *
back in your development directory…
$ python setup.py register# ^^^^ this will automatically upload package to PyPi$ python setup.py sdist upload