Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

changed version building to match what Pinax uses producing 0.2a1.dev3

  • Loading branch information...
commit 8aaa36eaa822d70005349f6cecc0e9c2939a5ec1 1 parent 2be9a5a
Brian Rosner brosner authored

Showing 1 changed file with 14 additions and 9 deletions. Show diff stats Hide diff stats

  1. +14 9 notification/__init__.py
23 notification/__init__.py
... ... @@ -1,11 +1,16 @@
1   -VERSION = (0, 2, 0, "dev", 2)
  1 +VERSION = (0, 2, 0, "a", 1) # following PEP 386
  2 +DEV_N = 3
  3 +
2 4
3 5 def get_version():
4   - if VERSION[3] == "final":
5   - return "%s.%s.%s" % (VERSION[0], VERSION[1], VERSION[2])
6   - elif VERSION[3] == "dev":
7   - return "%s.%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3], VERSION[4])
8   - else:
9   - return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3])
10   -
11   -__version__ = get_version()
  6 + version = "%s.%s" % (VERSION[0], VERSION[1])
  7 + if VERSION[2]:
  8 + version = "%s.%s" % (version, VERSION[2])
  9 + if VERSION[3] != "f":
  10 + version = "%s%s%s" % (version, VERSION[3], VERSION[4])
  11 + if DEV_N:
  12 + version = "%s.dev%s" % (version, DEV_N)
  13 + return version
  14 +
  15 +
  16 +__version__ = get_version()

0 comments on commit 8aaa36e

Please sign in to comment.
Something went wrong with that request. Please try again.