Skip to content

Commit 13fd4c6

Browse files
pandafynemesifier
authored andcommitted
[deps] Bumped version to 1.2.0a
- Fixed get_version function - Bumped openwisp-utils~=1.2.0a
1 parent ff9d035 commit 13fd4c6

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

CHANGES.rst

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
Version 1.2.0 [Unreleased]
5+
--------------------------
6+
7+
Work in progress.
8+
49
Version 1.1.0 [2024-08-17]
510
--------------------------
611

requirements-test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ psycopg2~=2.9.10
22
django-filter>=2.0
33
contexttimer
44
# QA checks
5-
openwisp-utils[qa]~=1.1.1
5+
openwisp-utils[qa] @ https://github.com/openwisp/openwisp-utils/tarball/1.2

rest_framework_gis/__init__.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
VERSION = (1, 1, 0, 'final')
1+
VERSION = (1, 2, 0, 'alpha')
22
__version__ = VERSION # alias
33

44

55
def get_version():
6-
version = f'{VERSION[0]}.{VERSION[1]}'
7-
if VERSION[2]:
8-
version = f'{version}.{VERSION[2]}'
9-
if VERSION[3:] == ('alpha', 0):
10-
version = '%s pre-alpha' % version
11-
else:
12-
if VERSION[3] != 'final':
13-
version = f'{version} {VERSION[3]}'
6+
version = '%s.%s.%s' % (VERSION[0], VERSION[1], VERSION[2])
7+
if VERSION[3] != 'final':
8+
first_letter = VERSION[3][0:1]
9+
try:
10+
suffix = VERSION[4]
11+
except IndexError:
12+
suffix = 0
13+
version = '%s%s%s' % (version, first_letter, suffix)
1414
return version

0 commit comments

Comments
 (0)