Skip to content

Commit

Permalink
Merge pull request #84 from t20100/prepare-v2.3.1
Browse files Browse the repository at this point in the history
LGTM
  • Loading branch information
vasole authored Aug 26, 2020
2 parents 7727b0d + 06d11b3 commit 2a691af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2.3.1
-----

- Fixed support of wheel package version >= 0.35 (PR #82)
- Fixed typo in error log (PR #81)
- Continuous integration: Added check of package description (PR #80)
- Fixed handling of version info (PR #84)

2.3
---

Expand Down
15 changes: 8 additions & 7 deletions version.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,18 @@
RELEASE_LEVEL_VALUE = {"dev": 0,
"alpha": 10,
"beta": 11,
"gamma": 12,
"rc": 13,
"candidate": 12,
"final": 15}

PRERELEASE_NORMALIZED_NAME = {"dev": "a",
"alpha": "a",
"beta": "b",
"candidate": "rc"}

MAJOR = 2
MINOR = 3
MICRO = 1
RELEV = "dev" # <16
RELEV = "final" # <16
SERIAL = 0 # <16

date = __date__
Expand All @@ -83,10 +87,7 @@
if version_info.releaselevel != "final":
version += "-%s%s" % version_info[-2:]
debianversion += "~adev%i" % version_info[-1] if RELEV == "dev" else "~%s%i" % version_info[-2:]
prerel = "a" if RELEASE_LEVEL_VALUE.get(version_info[3], 0) < 10 else "b"
if prerel not in "ab":
prerel = "a"
strictversion += prerel + str(version_info[-1])
strictversion += PRERELEASE_NORMALIZED_NAME[version_info[3]] + str(version_info[-1])


def calc_hexversion(major=0, minor=0, micro=0, releaselevel="dev", serial=0):
Expand Down

0 comments on commit 2a691af

Please sign in to comment.