forked from waynerv/cookiecutter-pypackage
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,51 @@ | ||
{% include_relative README.md %} | ||
# Cookiecutter PyPackage | ||
|
||
Cookiecutter template for a Python package, built with popular develop tools and | ||
conform to best practice. | ||
|
||
[![CI Status](https://github.com/EuanMason/cookiecutter-pypackage/actions/workflows/dev.yml/badge.svg)](https://github.com/EuanMason/cookiecutter-pypackage/actions/workflows/dev.yml) | ||
[![License](https://img.shields.io/pypi/l/ppw)](https://opensource.org/licenses/BSD-2-Clause) | ||
|
||
* Documentation: <https://EuanMason.github.io/cookiecutter-pypackage> | ||
|
||
## Features | ||
|
||
This tool will create Python project with the following features: | ||
|
||
* [Poetry](https://python-poetry.org/): Manage dependency, build and release | ||
* [Mkdocs](https://www.mkdocs.org): Writing your docs in markdown style | ||
* Testing with [Pytest](https://pytest.org) (unittest is still supported out of the box) | ||
* Code coverage report and endorsed by [Codecov](https://codecov.io) | ||
* [Tox](https://tox.readthedocs.io): Test your code against environment matrix, lint and artifact check | ||
* Format with [Black](https://github.com/psf/black) and [Isort](https://github.com/PyCQA/isort) | ||
* Lint code with [Flake8](https://flake8.pycqa.org) and [Flake8-docstrings](https://pypi.org/project/flake8-docstrings/) | ||
* Check static type with [Mypy](http://mypy-lang.org/) (optional) | ||
* [Pre-commit hooks](https://pre-commit.com/): Formatting/linting anytime when commit your code | ||
* [Mkdocstrings](https://mkdocstrings.github.io/): Auto API doc generation | ||
* Command line interface using [Click](https://click.palletsprojects.com/en/8.0.x/) (optional) | ||
* [bump2version](https://github.com/c4urself/bump2version): Pre-configured version bumping with a single command | ||
* Continuous Integration/Deployment by [GitHub actions](https://github.com/features/actions), includes: | ||
* publish dev build/official release to TestPyPI/PyPI automatically when CI success | ||
* publish documents automatically when CI success | ||
* extract changelog from CHANGELOG and integrate with release notes automatically | ||
* Host your documentation from [GitHub Pages](https://pages.github.com) with zero-config | ||
|
||
## Quickstart | ||
|
||
Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.4.0 or higher): | ||
|
||
``` | ||
pip install -U cookiecutter | ||
``` | ||
|
||
Generate a Python package project: | ||
|
||
``` | ||
cookiecutter https://github.com/EuanMason/cookiecutter-pypackage.git | ||
``` | ||
|
||
Then follow **[Tutorial](docs/tutorial.md)** to finish other configurations. | ||
|
||
# Credits | ||
|
||
This repo is forked from [waynerv/cookiecutter-pypackage](https://github.com/waynerv/cookiecutter-pypackage), which is forked from [zillionare/python-project-wizard](https://github.com/zillionare/python-project-wizard), which originally forked from [audreyfeldroy/cookiecutter-pypackage](https://github.com/audreyfeldroy/cookiecutter-pypackage) |