An open API service indexing awesome lists of open source software.

https://github.com/rossant/pipo

CLI helper for setuptools
https://github.com/rossant/pipo

Last synced: 5 months ago
JSON representation

CLI helper for setuptools

Awesome Lists containing this project

README

          

# pipo

setuptools, pip, PyPI made easy.

## Installation

```bash
pip install pipo
```

Dependencies:

* Python 2 or 3
* pip
* twine
* click
* requests

## Usage

```bash
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
```

## Notes

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
```

### About `pipo bump`

The `pipo bump` command bumps the **build number** of the version as defined in either `libname.py` or `libname/__init__.py` by:

```python
__version__ = 'X.Y.Z'
```

This command asks for confirmation to commit the change with the `Bump version` commit message.