ProjectTemplate¶
A Python project template with docs, CI, code coverage, versioning, and testing.
The structure of this project began from a cookiecutter
template:
cookiecutter https://github.com/audreyr/cookiecutter-pypackage.git
The cookiecutter
template provided support for tox, Travis-CI, Makefile, pytest, sphinx documentation, and setup.py. Support for bumpversion, coverage.py, and codecov.io was added.
Features
make
for build recipes- Run
make
for overview of recipes
- Run
setup.py
for building- Run
make dist
to build source and wheel distributions
- Run
py.test
for testing in current Python environment- Run
make test
orpy.test
- Run
tox
for testing in multiple Python environments- Run
make test-all
ortox
- Run
.travis.yml
for continuous integration- Uses
tox.ini
for configuration
- Uses
sphinx
for documentation- Run
make docs
to build html/latex/pdf docs
- Run
flake8
for code style check- Run
make lint
orflake8 project_template tests
- Run
coverage
for test coverage- Run
make coverage
- Run
bumpversion
- configuration in
setup.cfg
- configuration in
- Tox and Travis-CI for continuous integration
- codecov.io for code coverage
- pylint, pep8, and codeclimate.com for code quality
- dependencies with pyup.io
- badges
- versioning with bumpversion
Python Boilerplate contains all the boilerplate you need to create a Python package.
- Free software: MIT license
- Documentation: https://project-template.readthedocs.io.
Features¶
- TODO
Credits¶
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.