Merge pull request #1277 from moreati/docs-version-stable-only

docs: Fix website download link when there is a pre-release
pull/1279/head
Alex Willmer 7 months ago committed by GitHub
commit 0e6d795db0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -7,8 +7,9 @@ sys.path.append('.')
def changelog_version(path, encoding='utf-8'):
"Return the 1st *stable* (not pre, dev) version in the changelog"
# See also grep_version() in setup.py
# e.g. "0.1.2, (1999-12-31)\n"
version_pattern = re.compile(
r'^v(?P<version>[0-9]+\.[0-9]+\.[0-9]+)',
r'^v(?P<version>\d+\.\d+\.\d+) \((?P<date>\d\d\d\d-\d\d-\d\d)\)$',
re.MULTILINE,
)

Loading…
Cancel
Save