A project template & place to experiment with CLI building.
Install the application using Poetry:
poetry install
Run the application:
poetry run python -m moosecli
Run the tests:
# Run tests with unittest
poetry run python -m unittest tests/*.py
# Run tests with unittest (verbose)
poetry run python -m unittest -v tests/*.py
A pex file can be built using the included shell script:
./build-pex.sh
The file produced should be fairly small:
du -sh dist/portable_cli
# 18M dist/portable_cli
Once built, copy the file from dist/portable_cli
to
a computer with Python 3.8+ .