Cookiecutter template for a Python namespace package
Project description
Cookiecutter Namespace Template for a Python package.
Features
Testing setup with unittest and python setup.py test or pytest
Tox testing: Setup to easily test for Python 3.5, 3.6, 3.7, 3.8
Sphinx docs: Documentation ready for generation with, for example, ReadTheDocs
bump2version: Pre-configured version bumping with a single command
Optional auto-release to PyPI when you push a new tag to master (optional)
Optional command line interface using Click
If you really want to create a new package for Python 2, in spite of the Python 2.7 countdown and the Sunsetting Python 2 support, then use cookiecutter-namespace-template <0.2.
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/veit/cookiecutter-namespace-template.git
Create a repo and put it there.
Register your project with PyPI.
Add the repo to your ReadTheDocs account and turn on the ReadTheDocs service hook.
If you want to add the pyup badge to your README file
create a new account at pyup.io or log into your existing account
click on the green Add Repo button
click Pin to add the repo
Release your package by pushing a new tag to master.
Pull requests
If you have differences in your preferred setup, I encourage you to fork this to create your own version. I also accept pull requests on this, if they’re small, atomic, and if they make my own packaging experience better.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cookiecutter-namespace-template-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 664cb014786440f1b145e9eba132b2df7b1b7cee325bf6e8686a4dd73115039c |
|
MD5 | 2c72ddaa8d6ce0ac9875df60092b23c4 |
|
BLAKE2b-256 | 12f619dab79e9f57ce3d560250c1a18a35fe65903aceb9935c5594bb1e84be46 |
Hashes for cookiecutter_namespace_template-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa0bdd4045810bf21d597f33ee52c0170d9cc50b790a153fc45b32ba2582824c |
|
MD5 | 344eb1b8e4f02cd48b547434851dc1c9 |
|
BLAKE2b-256 | e4d14be6cd09fdf51edf0347778de00edac574a60a4c86e740a99b8fbf98aaaf |