Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bump version for release

  • Loading branch information...
commit 540f31a2d0a2ee4ab2c13b3b9421ccb2ff9fd8aa 1 parent 124ccb8
Carl Meyer authored
Showing with 24 additions and 2 deletions.
  1. +2 −1  .gitignore
  2. +1 −0  .hgignore
  3. +21 −1 setup.py
3  .gitignore
View
@@ -1,3 +1,4 @@
dist/*
django_form_utils.egg-info/*
-tests/media/tiny_png_*
+tests/media/tiny_png_*
+HGREV
1  .hgignore
View
@@ -1,3 +1,4 @@
^dist/
^django_form_utils.egg-info/
^tests/media/tiny_png
+^HGREV$
22 setup.py
View
@@ -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',
Please sign in to comment.
Something went wrong with that request. Please try again.