Merge pull request #1211 from moreati/issue1209

docs: Read release version from changelog
pull/1212/head
Alex Willmer 11 months ago committed by GitHub
commit 5ef8db92b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,8 +1,21 @@
import re
import sys import sys
sys.path.append('.') sys.path.append('.')
VERSION = '0.3.9'
def changelog_version(path, encoding='utf-8'):
version_pattern = re.compile(
r'^v(?P<version>[0-9]+\.[0-9]+\.[0-9]+)',
re.MULTILINE,
)
with open(path, encoding=encoding) as f:
match = version_pattern.search(f.read())
return match.group('version')
VERSION = changelog_version('changelog.rst')
author = u'Network Genomics' author = u'Network Genomics'
copyright = u'2021, the Mitogen authors' copyright = u'2021, the Mitogen authors'

Loading…
Cancel
Save