smsearcy / cookiecutter-pypackage

Cookiecutter template for a Python package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cookiecutter-pypackage

Cookiecutter template for a Python package.

Features

Forked from https://github.com/audreyr/cookiecutter-pypackage.git with some changes to directory structure and test apparatus.

Quickstart

Generate a Python package project:

cookiecutter https://github.com/ssearcy/cookiecutter-pypackage.git

Then:

  • Create a repo and put it there.
  • Add the repo to your Travis CI account.
  • Install the dev requirements into a virtualenv. (pip install -r requirements_dev.txt)
  • Run the script travis_pypi_setup.py to encrypt your PyPI password in Travis config and activate automated deployment on PyPI when you push a new tag to master branch.
  • Add the repo to your ReadTheDocs account + turn on the ReadTheDocs service hook.
  • Release your package by pushing a new tag to master.
  • (Optional) If you feel like pinning the requirements for your package, you can add a requirements.txt that specifies packages and version numbers.

For more details, see the cookiecutter-pypackage tutorial (these are for the original cookiecutter-pypackage but should get you going in the right direction.

Prompts

An explanation of the information you will be prompted for when generating the Python package.

Templated Values

The following appear in various parts of your generated project.

full_name
Your full name.
email
Your email address.
github_username
Your GitHub username.
project_name
The name of your new Python package project. This is used in documentation, so spaces and any characters are fine here.
project_slug
The namespace of your Python package. This should be Python import-friendly. Typically, it is the slugified version of project_name.
project_short_description
A 1-sentence description of what your Python package does.
project_uri
URI for the project.
release_date
The date of the first release.
pypi_username
Your Python Package Index account username.
year
The year of the initial package copyright in the license file.
version
The starting version number of the package.

Options

The following package configuration options set up different features for your project.

use_pypi_deployment_with_travis
Whether to use PyPI deployment with Travis.

TODO

About

Cookiecutter template for a Python package.


Languages

Language:Python 52.0%Language:Makefile 24.2%Language:Batchfile 22.2%Language:Shell 1.7%