This contains a template for structuring python packages. Learn more.
- Structuring python packages
- Using sub modules to separate code
- Importing submodules
- Importing resources like images
- Testing (pytest, mypy)
- Linting (flake8)
- Github actions with tox
Building package
# first make sure build is installed and updated
pip install --upgrade build
# then run the build command
python -m buildInstall user dependencies
pip install -r requirements.txtInstall dev dependencies
pip install -r requirements_dev.txtInstall the package locally in editable mode
pip install -e .run pytest to run your tests
pytestrun flake8 to test linting
flake8get a cool test:status badge on your readme :D
