Starter project for python CLI utils
# Copy files
git clone https://github.com/demula/python-cli-starter.git
cd python-cli-starter
# Create a virtual environment and install required libraries for development
make init
To manually test the cli util:
# Activate virtual env
make start_dev
# Install the current code in your venv
make install
# Run your app (using the name you gave it in setup.py, app_cli is the default given for the starter pack)
app_cli --help
# Remember to get out of the venv when you're done developing for the day
make stop_dev
Tests are located in tests/
and run with nose2
make test
Coverage and static quality analysis are run with:
make test_coverage
make check
Using sphinx to generate html documentation:
make generate_docs
To override the requirements.txt with the current venv use
make update_requirements
Package python app as .tar.gz and wheel format
make dist