Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PasteScript template to create a Python project with distribute and buildout support
branch: master

This branch is 8 commits behind srid:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/modern_package
tests
.hgignore
HACKING.txt
MANIFEST.in
NEWS.rst
README.rst
bootstrap.py
buildout.cfg
deploy-and-verify.sh
setup.py

README.rst

modern-package-template

modern-package-template is a PasteScript template to create an initial layout for your Python projects using modern tools and practices followed in the Python community. Thus, your projects will have the following characteristics:

  1. Use Distribute instead of setuptools as the BDFL himself supports it.
  2. Buildout support, though you are not required to make use of it.
  3. README.rst and NEWS.rst automatically included in your package metadata as long_description, thus making them appear in the PyPI page for your project.
  4. Automatic script (or .exe) creation using Distribute

Here is a sample project created using modern-package-template.

Getting started

First install modern-package-template using PyPM or pip:

$ pypm install modern-package-template

OR

$ pip install modern-package-template

To create a Python project called "helloworld", run the following command in your terminal:

$ paster create -t modern_package helloworld

You can also, optionally, create namespace packages:

$ paster create -t modern_package my.new.package package=my.new.package

Once you create the project layout, the very first thing you must do is to review the contents of README.rst and edit it accordingly.

Credits

Source code is derived from the advanced_package template - which is also licensed under GPLv3.

Something went wrong with that request. Please try again.