Consolidate version strings in pyproject.toml

Storing the current version in a single place greatly simplifies
issuing new package releases.
This commit is contained in:
Justin Mayer 2019-07-03 23:31:38 +02:00
commit 54911fff39
3 changed files with 26 additions and 3 deletions

View file

@ -22,7 +22,7 @@ copyright = '2010 present, Alexis Metaireau and contributors'
exclude_patterns = ['_build']
release = __version__
version = '.'.join(release.split('.')[:1])
last_stable = '4.0.1'
last_stable = __version__
rst_prolog = '''
.. |last_stable| replace:: :pelican-doc:`{0}`
'''.format(last_stable)