Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[version] Improved get_version to follow PEP440
- Loading branch information
Showing
with
5 additions
and
1 deletion.
-
+5
−1
netjsonconfig/version.py
|
@@ -10,5 +10,9 @@ def get_version(): |
|
|
version = '%s pre-alpha' % version |
|
|
else: |
|
|
if VERSION[3] != 'final': |
|
|
version = '%s %s' % (version, VERSION[3]) |
|
|
try: |
|
|
rev = VERSION[4] |
|
|
except IndexError: |
|
|
rev = 0 |
|
|
version = '%s%s%s' % (version, VERSION[3][0:1], rev) |
|
|
return version |