A python command-line script template, for use with cookiecutter.
- docopt for command-line arguments parsing
- pytest for testing.
- The
bundle
branch has a vendorized version of docopt.
$ pip install cookiecutter $ cookiecutter https://github.com/sloria/cookiecutter-docopt.git
You will be prompted for basic info (your name, script name, etc.) which will be used in the template.
That's all you need to get started.
If you prefer not to use docopt for arguments parsing, simply remove the line install_requires=['docopt']
from setup.py
and remove the docopt code in your script.
- Create the Github repo for your project
- Add the repo Travis-CI.
- Release your package to the PyPI. Here's a release checklist: https://gist.github.com/sloria/6277657
- Add the repo to ReadTheDocs.