Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
/ python-cli-starter Public archive

Starter project for python CLI utils

License

Notifications You must be signed in to change notification settings

demula/python-cli-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-cli-starter

Starter project for python CLI utils

Init project

# 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

Developing

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

Testing

Tests are located in tests/ and run with nose2

make test

Checking code quality

Coverage and static quality analysis are run with:

make test_coverage
make check

Generating the documentation

Using sphinx to generate html documentation:

make generate_docs

Updating requirements file and setup.py file

To override the requirements.txt with the current venv use

make update_requirements

Packing app for distribution

Package python app as .tar.gz and wheel format

make dist

Releases

No releases published

Packages

No packages published