Skip to content

swarmer/cookiecutter-pypackage-medium

 
 

Repository files navigation

Cookiecutter PyPackage

Cookiecutter template for a Python package.

Features

  • Testing setup with unittest and python setup.py test or py.test
  • Tox testing: Setup to easily test for different python versions
  • Sphinx docs: Documentation ready for generation with, for example, ReadTheDocs

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/swarmer/cookiecutter-pypackage-medium.git

Then:

  • Create a repo and put it there.
  • Install the dev requirements into a virtualenv. (pip install -r requirements_dev.txt)
  • Install the project into your environment. (pip install -e .)
  • Register your project with PyPI.
  • Add the repo to your ReadTheDocs account + turn on the ReadTheDocs service hook.
  • Add a requirements.txt file that specifies the packages you will need for your project and their versions. For more info see the pip docs for requirements files.

Acknowledgements

Based on https://github.com/audreyr/cookiecutter-pypackage

About

Cookiecutter template for a Python package.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 65.5%
  • Makefile 23.3%
  • Batchfile 6.5%
  • Shell 4.7%