Skip to content

Commit 04a6d07

Browse files
committed
Prepare 2.5.0 release.
Fixes: google#40
1 parent 913f103 commit 04a6d07

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,11 @@ def get_readme_lines():
129129
yield '\n'
130130

131131
with codecs.open('version-history.rst', 'r', 'utf-8') as fd:
132-
min_major_version = 2
133-
version_re = re.compile(r'^([0-9]+)\.[0-9.]+:')
132+
version_re = re.compile(r'^([0-9]+)\.([0-9.]+):')
134133
cleanup_re = re.compile(r':(?:class|func|const):`([^`]*)`')
135134
for line in fd:
136135
m = version_re.search(line)
137-
if m and int(m.group(1)) < min_major_version:
136+
if m and (int(m.group(1)), int(m.group(2))) < (2, 3):
138137
break
139138
line, _ = cleanup_re.subn(r'``\1``', line)
140139
yield line

version-history.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Version History
22
---------------
33

4-
2.5.0: TBD
4+
2.5: TBD
55

66
- Add :func:`pygtrie.Trie.merge` method which merges structures of two
77
tries.

0 commit comments

Comments
 (0)