This is a repo to create a python package from a template
Inspired by setup from Alex Brace
- Create virtual environment
conda create -n [env_name] python=[python_version] conda activate [env_name] pip install cookiecutter
- Run command
cookiecutter https://github.com/KPHippe/cookiecutter_pythonpackage.git
and follow setup prompt - Install dependencies
pip install -r requirements/dev.txt && pip install -r requirements/docs.txt
- For documentation, after installation, run
cd docs && make html
. This will populate the autodocumentation and allow you to see the docs files atdocs/build/html/index.html
- This does not initialize a git repo, you will have to do this yourself, see Github documentation. Note, do not add any files in the setup, this will create conflicts when pushing this codebase.
README.md
CONTRIBUTING.md
CODE_OF_CONDUCT.md
Makefile
- Contains infrastructure for black, flake8, pytest, and mypy
requirements/
- contains install
dev.txt
for dev tools
- contains install
setup.cfg
andsetup.py
to install as a package- Place to put tests (
test
), and an initial test completed for you - Place to put documentation (
docs
) - Github issue templates
- Github action for linting and testing
- Sphinx autodocumentation