Skip to content

RobertoPrevato/PythonCLI

Repository files navigation

Build

Python CLI project template

Python project template for CLI using click.

Getting started

# create Python virtual environment
python -m venv venv

# activate environment (Linux):
source venv/bin/activate

# activate environment (Windows):
venv\Scripts\activate

# install dependencies
pip install -r requirements.txt

Install in development mode

To test the CLI during development, install it in edit mode:

pip install -e .

Then, use the CLI with:

foo

Makefile

# run tests:
make test

# run tests and write test coverage output
mate testcov

Manual releases:

# install dependencies for twine (once)
make prepforbuild

# create distribution package
make artifacts

# upload to the test pypi
make testrelease

# upload to pypi
make release

Formatting with black

black .

About

Project template for Python CLI projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published