Skip to content

fladi/cookiecutter-debian-python-module

Repository files navigation

cookiecutter-debian-python-module

Cookiecutter template for a Debian Python Module package.

Features

This is an almost "all inclusive" sort of template.

  • Automatic setup of the whole "debian/" subdirectory.
  • Support for Python2 and Python3 packages.
  • Sphinxdoc integration with a separate documentation package.

Requirements

To create a package directory structure from this template some packages are required:

To get quickly started on a new Debian system, just run this in your shell or command prompt:

sudo apt install cookiecutter python-jinja2-time

Usage and options

First generate your project:

cookiecutter gh:fladi/cookiecutter-debian-python-module

You will be asked for these fields:

Template variable Default Description
maintainer_name
"Michael Fladischer"

Debian maintainer of this package.

Can be set in your ~/.cookiecutterrc config file.

email

Contact email of the maintainer.

Can be set in your ~/.cookiecutterrc config file.

bug
""
ITP bug number from Debian BTS
package
"module"
The name of the upstream package as seen on PyPI.
source
"python-module"
The name of the Debian source package.
short_description
"Some useful Python module"
Short description for the Debian packages.
version
"0.1.0"
Upstream version to be initially packaged.
upstream_name
"Some Name"
Name of upstream author or primary contact.
upstream_email Email address of upstream author or primary contact.
upstream_url
"https://pypi.python.org/pypi/module"
URL of upstream website.
upstrea_copyright
"2016, Some Name <[email protected]>"
Copyright information of upstream project.
license
"public domain"
Upstream license (select from a list of DEP-5 licenses).
python2_minimum
"2.5"
Minimum supported Python2 version (select "unsupported" to disable Python2 support).
python3_minimum
"3.0"
Minimum supported Python3 version (select "unsupported" to disable Python3 support).
debhelper
"9"
Debhelper compatibility level.
standards_version
"3.9.8"
Debian Standards-Version.
sphinx_root
"docs"
Root directory of sphinx buildable documentation.

Changelog

Not Exactly What You Want?

If you have criticism or suggestions please open up an Issue or Pull Request.

About

Cookiecutter template for a Debian Python Module package.

Resources

License

Stars

Watchers

Forks

Packages

No packages published