Skip to content

Instantly share code, notes, and snippets.

@ampledata
ampledata / version.py
Created July 7, 2012 19:48 — forked from JasperVanDenBosch/version.py
Extract a setuptools version from the git repository: adapted for PEP 386
# -*- coding: utf-8 -*-
# Author: Douglas Creager <dcreager@dcreager.net>
# This file is placed into the public domain.
# Calculates the current version number. If possible, this is the
# output of “git describe”, modified to conform to the versioning
# scheme that setuptools uses. If “git describe” returns an error
# (most likely because we're in an unpacked copy of a release tarball,
# rather than in a git working copy), then we fall back on reading the
# contents of the RELEASE-VERSION file.
@DP6
DP6 / Usage
Created December 9, 2011 13:27 — forked from alexmacedo/Usage
Virtualenv bootstrap script to create a Django environment
$ python generate_bootstrap.py bootstrap_base.py > django-bootstrap.py
$ python django-bootstrap.py ENV --project=NAME [ --hg --git --mysql --south --fabric --nose ]