This project provides a minimal example of CLI application packaging for Python.
This package supports Python >= 3.6.
Install:
pip3 install git+https://github.com/copperlight/pycli-example.git
Upgrade:
pip3 install --upgrade git+https://github.com/copperlight/pycli-example.git
Setup and activate a virtualenv, for local development:
./setup-venv.sh
source venv/bin/activate
Run tests locally:
pytest
Run the latest version locally, so you can skip installing the package and cycle faster:
python3 ./pycli_example/cmd.py -h
Install the CLI app in the virtualenv, so you can run it as a user would:
python3 setup.py install
pycli-example -h
pycli-example -n Frasier
- Make some changes.
- Bump the version in setup.py, maybe following Semantic Versioning.
- Update the CHANGELOG.md.
- Push the changes.
- Upgrade the package on user systems.