Skip to content

jeteve/python-template

Repository files navigation

Template for a vanilla python 3 project

Structure

This package's structure follows the guidance from Pypi: https://packaging.python.org/en/latest/tutorials/packaging-projects/

Dependency managements

This uses UV ( https://docs.astral.sh/uv/ ) to pin the dependencies specified from pyproject.toml into requirements.txt and dev-requirements.txt

This can be achieved just by running:

# Activate the environment 
$ source .venv/bin/activate
# And sync the dependencies
$ ./sync-python-deps.sh

View the logs and the prints running test.

 pytest -o log_cli=true -o log_cli_level=DEBUG -s

Developing the CLI:

python src/jeteve_template/cli.py

Building the package for distribution:

uv pip install --upgrade build
python3 -m build

And test the installation of the distribution:

uv pip install dist/jeteve_template-0.0.1-py3-none-any.whl

Note - when you install this package, the command it installs will be jeteve_template_cli executable as illustrated below:

jeteve_template_cli 
Hello world from jeteve_template CLI!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors