Cookiecutter template for a Python package. See https://github.com/audreyr/cookiecutter.
- Free software: MIT license
- Nose runner: Supports unittest, nose style tests.
- Travis CI: Ready for Travis Continuous Integration testing
- Sphinx docs: Documentation ready for generation with ReadTheDocs
- versioneer2: versioning: Just use
git tag
to update the version number of your package.
Generate a Python package project:
cookiecutter https://github.com/ryanpdywer/cookiecutter-sci-pypackage.git
Then:
- Go to the generated folder, and make your first commit and first tag (
git tag 0.1
, for example). - Create a new repository on GitHub, push your first commit there.
- Add the repo to your Travis CI account.
- Add the repo to your ReadTheDocs account + turn on the ReadTheDocs service hook.
- Run
python setup.py test
- Release your package the standard Python way.
Don't worry, you have options:
- audreyr/cookiecutter-pypackage: The original pypackage, uses unittest for
- testing and other minor changes.
- Nekroze/cookiecutter-pypackage: The template this project is based on.
If you have differences in your preferred setup, I encourage you to fork this to create your own version. Once you have your fork working, add it to the Similar Cookiecutter Templates list with a brief explanation. It's up to you whether or not to rename your fork.
I also accept pull requests on this, if they're small, atomic, and if they make my own packaging experience better.