Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: master
...
compare: eldarion
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 25 additions and 1 deletion.
  1. +20 −0 rubberstamp/__init__.py
  2. +5 −1 setup.py
View
20 rubberstamp/__init__.py
@@ -1,3 +1,23 @@
+VERSION = (0, 1, 0, "f", 2) # following PEP 386
+DEV_N = 1
+POST_N = 1
+
+def get_version():
+ version = "%s.%s" % (VERSION[0], VERSION[1])
+ if VERSION[2]:
+ version = "%s.%s" % (version, VERSION[2])
+ if VERSION[3] != "f":
+ version = "%s%s%s" % (version, VERSION[3], VERSION[4])
+ if DEV_N:
+ version = "%s.dev%s" % (version, DEV_N)
+ elif POST_N > 0:
+ version = "%s.post%s" % (version, POST_N)
+ return version
+
+
+__version__ = get_version()
+
+
def autodiscover():
"""
Auto-discover INSTALLED_APPS permission.py modules, failing silently when
View
6 setup.py
@@ -2,9 +2,13 @@
from distutils.core import setup
+
+VERSION = __import__("rubberstamp").__version__
+
+
setup(
name='django-rubberstamp',
- version='0.1',
+ version=VERSION,
description='Permissions manager and backend for Django 1.2.',
author='James Lecker Jr',
author_email='james@jameslecker.com',

No commit comments for this range

Something went wrong with that request. Please try again.