h4ck3r+=boi v 2.0

  1. Search
  2. About
  3. Subscribe
  4. Archive
  5. Random

h4ck3r+=boi v 2.0

Newer
Older
  • 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

    Posted on December 29, 2010

  • staff

Field Notes Theme. Designed by Manasto Jones. Powered by Tumblr.