Skip to main content

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.txt and NEWS.txt 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.

See the section titled “Roadmap” below for planned features.

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.txt and edit it accordingly.

Credits

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

News

1.0

Release date: 11-Apr-2010

  • #20: Include .gitignore

  • #19: Rename README.txt to README.rst so it renders on Github

1.0c2

Release date: 02-Apr-2010

  • #18: Fix missing .hgignore

1.0c1

Release date: 30-Mar-2010

  • Add a ‘Credits’ section to README.txt

  • #2: Include a sample entry point

  • #13: Include .hgignore

  • #11: Include dev howtos in HACKING.txt

  • Remove setup.cfg – simple to have no .dev marker

1.0b2

Release date: 15-Mar-2010

  • #10: Remove dependency on Distribute

  • #9: Remove distribute_setup.py

1.0b1

Release date: 14-Mar-2010

  • #6: Remove zip_safe from the template questionnaire

  • #3: Add README.txt and NEWS.txt as a replacement for long_description

  • #1: Add distribute_setup.py to the template

0.9.2

Release date: 14-Feb-2010

  • Provide a complete buildout.cfg that is usable

  • Use buildout by default

  • Use Distribute instead of Setuptools

  • Inherit from harobed.paster_template.advanced_package 0.2

Release files for modern-package-template 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modern-package-template 1.0
File Size Uploaded
modern-package-template-1.0.tar.gz 7.1 kB Details

Release files / modern-package-template-1.0.tar.gz

Download URL modern-package-template-1.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ffd433b39fe039314bf14c5630351af2dfbd4a2dca7cb5b15391916f131dae4c
BLAKE2b-256 checksum
How to use checksums
bd1d9b0bf7fdd7553982e84d79baae82ef5c31b70d0e97cb2613f86d46d7e6d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page