How do I create a pip installable project? How do you register with pip?
What meta data config should all projects have in order to allow integration and easy import.
How do I create a pip installable project? How do you register with pip?
What meta data config should all projects have in order to allow integration and easy import.
I wish
PasteScript
did the job because it seems straightforward but it simply didn't work for me. I got my code uploaded to thepip
repository with Peter Down's quick but well-explained tutorial.Also, remember that if you are trying to have your code
import
from the package, you have to put it in__init__.py
, which is sufficient for most projects.You need to
You can register using:
An exmaple setup.py file is:
Users will then just have to upack the taz file and run install..
Or, if you're feeling fancy (read: lazy)...
sudo easy_install PasteScript
paster create mynewpackage
cd mynewpackage
python setup.py sdist
python setup.py register
Seems like more steps, but the PasteScript package handles a lot of the dirty work. Do yourself a favor and install it, use it, and never look back ;)
You may want to check out libmaker. It makes it easy to make packages. This is the link to the homepage and documentation.