Skip to content

Commit

Permalink
[deps] Bumped version to 1.2.0a
Browse files Browse the repository at this point in the history
- Fixed get_version function
- Bumped openwisp-utils~=1.2.0a
  • Loading branch information
pandafy authored and nemesifier committed Dec 20, 2024
1 parent ff9d035 commit 13fd4c6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

Version 1.2.0 [Unreleased]
--------------------------

Work in progress.

Version 1.1.0 [2024-08-17]
--------------------------

Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ psycopg2~=2.9.10
django-filter>=2.0
contexttimer
# QA checks
openwisp-utils[qa]~=1.1.1
openwisp-utils[qa] @ https://github.com/openwisp/openwisp-utils/tarball/1.2
18 changes: 9 additions & 9 deletions rest_framework_gis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
VERSION = (1, 1, 0, 'final')
VERSION = (1, 2, 0, 'alpha')
__version__ = VERSION # alias


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

0 comments on commit 13fd4c6

Please sign in to comment.