setuptools, pip, PyPI made easy.
pip install pipo
Dependencies:
- Python 2 or 3
- pip
- twine
- click
- requests
pipo register # register your new project on PyPI
pipo version # show the version of the library, and the latest PyPI version
pipo build # build tar.gz and wheel
pipo release # upload your files on PyPI using twine
pipo bump # bump the build version number as defined in your __init__.py
pipo --help # show the list of commands
This tool has been tailored to my needs and to the way I structure my Python packages. You may have to fork and adapt it to your own projects.
It is assumed that your library matches one of the following structures:
mylib/ # root of the git repository
|- mylib/ # package directory
|- __init__.py
or for smaller projects:
mylib/ # root of the git repository
|- mylib.py # main file
The pipo bump
command bumps the build number of the version as defined in either libname.py
or libname/__init__.py
by:
__version__ = 'X.Y.Z'
This command asks for confirmation to commit the change with the Bump version
commit message.