Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
0.6.3.post1 release
Browse files Browse the repository at this point in the history
Version 0.6.3.post1 [2020-06-04]
---------------------------

- [bug] fixed broken testcase in 0.6.3 release

Signed-off-by: Ajay Tripathi <ajay39in@gmail.com>
  • Loading branch information
atb00ker committed Jun 4, 2020
1 parent 08f1b7f commit 6d985b5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
10 changes: 8 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
Changelog
=========

Version 0.6.3 [2020-06-03]
--------------------------
Version 0.6.3.post1 [2020-06-04]
--------------------------------

- [bug] fixed broken testcase in 0.6.3 release
- [change] minor changes handle post-releases in ``get_version()``

Version 0.6.3 - 2020-06-03 [YANKED]
-----------------------------------

- [add] Support of openwisp-utils~=0.5.0
- [fixed] Minor issues with testcases
Expand Down
12 changes: 7 additions & 5 deletions django_netjsongraph/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
VERSION = (0, 6, 3, 'final')
VERSION = (0, 6, 3, 'post1')
__version__ = VERSION # alias


def get_version():
version = '%s.%s' % (VERSION[0], VERSION[1])
version = f'{VERSION[0]}.{VERSION[1]}'
if VERSION[2]:
version = '%s.%s' % (version, VERSION[2])
version = f'{version}.{VERSION[2]}'
if VERSION[3:] == ('alpha', 0):
version = '%s pre-alpha' % version
version = f'{version} pre-alpha'
if 'post' in VERSION[3]:
version = f'{version}.{VERSION[3]}'
else:
if VERSION[3] != 'final':
try:
rev = VERSION[4]
except IndexError:
rev = 0
version = '%s%s%s' % (version, VERSION[3][0:1], rev)
version = f'{version}{VERSION[3][0:1]}{rev}'
return version


Expand Down

0 comments on commit 6d985b5

Please sign in to comment.