Permalink
Browse files

bump version for release

  • Loading branch information...
1 parent 124ccb8 commit 540f31a2d0a2ee4ab2c13b3b9421ccb2ff9fd8aa @carljm committed Nov 25, 2009
Showing with 24 additions and 2 deletions.
  1. +2 −1 .gitignore
  2. +1 −0 .hgignore
  3. +21 −1 setup.py
View
3 .gitignore
@@ -1,3 +1,4 @@
dist/*
django_form_utils.egg-info/*
-tests/media/tiny_png_*
+tests/media/tiny_png_*
+HGREV
View
1 .hgignore
@@ -1,3 +1,4 @@
^dist/
^django_form_utils.egg-info/
^tests/media/tiny_png
+^HGREV$
View
22 setup.py
@@ -1,10 +1,30 @@
from setuptools import setup
+import subprocess
+import os.path
+try:
+ # don't get confused if our sdist is unzipped in a subdir of some
+ # other hg repo
+ if os.path.isdir('.hg'):
+ p = subprocess.Popen(['hg', 'parents', r'--template={rev}\n'],
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ if not p.returncode:
+ fh = open('HGREV', 'w')
+ fh.write(p.communicate()[0].splitlines()[0])
+ fh.close()
+except (OSError, IndexError):
+ pass
+
+try:
+ hgrev = open('HGREV').read()
+except IOError:
+ hgrev = ''
+
long_description = open('README.txt').read() + open('CHANGES.txt').read()
setup(
name='django-form-utils',
- version='0.1.5.post',
+ version='0.1.6',
description='Form utilities for Django',
long_description=long_description,
author='Carl Meyer',

0 comments on commit 540f31a

Please sign in to comment.