Skip to main content

Cookiecutter template for a Python namespace package

Project description

Cookiecutter Namespace Template for a Python package.

Downloads Updates Versions Contributors License pre-commit.ci status Docs

Features

  • Testing setup with unittest or pytest

  • Tox testing: Setup to easily test for Python 3.7, 3.8, 3.9, 3.10 and 3.11.

  • 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 main (optional)

  • Optional command line interface using Click

If you really want to create a new package with Python 2, in spite of the Python 2.7 countdown and the Sunsetting Python 2 support, then use cookiecutter-namespace-template <0.2.

Quickstart

  1. Install the latest Cookiecutter if you haven’t installed it yet (this requires Cookiecutter 1.4.0 or higher):

    $ python -m pip install -U cookiecutter
  2. Generate a Python package project:

    $ python -m cookiecutter https://github.com/veit/cookiecutter-namespace-template.git
  3. Create a repo and put it there.

  4. Register your project with PyPI.

  5. Add the repo to your ReadTheDocs account and turn on the ReadTheDocs service hook.

  6. If you want to add the pyup badge to your README file

    1. create a new account at pyup.io or log into your existing account

    2. click on the green Add Repo button

    3. click Pin to add the repo

  7. Release your package by pushing a new tag to main.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cookiecutter-namespace-template-0.3.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file cookiecutter-namespace-template-0.3.0.tar.gz.

File metadata

File hashes

Hashes for cookiecutter-namespace-template-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e9d00ecc10a42819f879b70ec878ca41c90554e1a2aadcc88252773999368503
MD5 5f7067ea3951a804c5bd77492d6fa1c0
BLAKE2b-256 084f59d7e846fe1f9a752f017de422064aa3464a6c04de9f908e4b67bb459f05

See more details on using hashes here.

File details

Details for the file cookiecutter_namespace_template-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cookiecutter_namespace_template-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66d4b4783dc2c66285d093e4efa5a5e7f99c275e1605685821ed21279d21a07d
MD5 f84e12b71dba0d48385c84c1d741d019
BLAKE2b-256 aab99b792f48ef3bd7d3b6e02882c642a896a6667665588983fbaa05e3570ec7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page