Skip to content

dkirkby/cookiecutter-pypackage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

cookiecutter-pypackage

Cookiecutter template for a Python package. See https://github.com/audreyr/cookiecutter.

Based on https://github.com/audreyr/cookiecutter-pypackage.git, with the following changes:

  • Remove support of python 3.x and PyPy.
  • Change license from BSD to MIT.
  • Customize sphinx: * Use napoleon to support google/numpy-style docstrings. * Enable linkcode and add glue code for links to github master. * Add boilerplate for mocking out packages that ReadTheDocs can ignore.

TODO:

  • add scripts (or at least checklists in contributing.rst) to: * create a new module file (inlcuding adding it sphinx, unit tests, etc) * update the version number * add a new dependency (sphinx mocks, requirements.txt, setup.py, installation.rst) * publish a new release (https://gist.github.com/audreyr/5990987)
  • 2to3 strategy? (from future imports, 2to3, https://pythonhosted.org/six/)
  • Update installation instructions (see notes there)
  • Use py.test

Usage

Generate a Python package project. This step will create a new subdirectory using the project name you provide, so run it from the parent directory:

    cd <parent>
cookiecutter https://github.com/dkirkby/cookiecutter-pypackage.git
cd <package>

Start a git repo:

git init
git add .
git commit -m 'cookiecutter https://github.com/dkirkby/cookiecutter-pypackage.git'
  • Create a new github repo and link it to your local repo. Leave the options to add a default README, .gitignore, or license file unchecked since these are already included in the template.
  • Add the new repo to your Travis CI profile page (click the SYNC button if your new repo is not already listed).
  • Import the new repo from your ReadTheDocs account (you will probably need to resync with github first).
  • Release your package the standard Python way. Here's a release checklist: https://gist.github.com/audreyr/5990987

References

About

Cookiecutter template for a Python package. See https://github.com/audreyr/cookiecutter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 47.0%
  • Makefile 29.7%
  • Shell 23.3%