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.
Create an account on PYPI: Go to: https://pypi.python.org and select Register. Follow instructions. Create an account on testpypi: Go to: https://testpypi.python.org and select Register. Follow instructions.
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 need to
You can register using:
>> python setup.py register
An exmaple setup.py file is:
#!/usr/bin/env python from distutils.core import setup setup(name='Distutils', version='1.0', description='Python Distribution Utilities', author='Greg Ward', author_email='[email protected]', url='http://www.python.org/sigs/distutils-sig/', packages=['distutils', 'distutils.command'], )
Users will then just have to upack the taz file and run install..
>> python setup.py install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With