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 Docs

Features

  • Testing setup with unittest 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 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 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


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.2.6.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

  • Download URL: cookiecutter-namespace-template-0.2.6.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.0rc1

File hashes

Hashes for cookiecutter-namespace-template-0.2.6.tar.gz
Algorithm Hash digest
SHA256 2e3b2431beffc2f4f46f4b1df866e9ce1422f4ccc8aeabe72982d8c10e1c30e8
MD5 941591af29a80c568afb5b743b9bd49b
BLAKE2b-256 cff85ffb77e927d578baadf8a2ba7f1b799fef4f5a7957bb25402fccbab0abca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cookiecutter_namespace_template-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.0rc1

File hashes

Hashes for cookiecutter_namespace_template-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5a24d0783f48d93203dda5ef67b0f5ecd424fdbcaab77756c921b4764dd9123f
MD5 91da7fae8ee9263bf335070bb7db59e1
BLAKE2b-256 c1dd0549d536395c538e55c88d153a20868b52518fa5f04be865d6b9b851d35a

See more details on using hashes here.

Supported by

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