Skip to content

Instantly share code, notes, and snippets.

View roozbeh73's full-sized avatar

Roozbeh roozbeh73

View GitHub Profile

Keybase proof

I hereby claim:

  • I am roozbeh73 on github.
  • I am roozy (https://keybase.io/roozy) on keybase.
  • I have a public key ASDNS977k___F0OIhKN-weBoyJmLubDoSthBvJefgO_ZLgo

To claim this, I am signing this object:

@roozbeh73
roozbeh73 / version.py
Created February 24, 2016 21:47 — forked from dcreager/version.py
Extract a setuptools version from the git repository
# -*- 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.