diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-12-16 17:00:37 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-12-16 17:38:00 +0100 |
commit | 273eaf4682ba11c1c1fcfdcda31d0c95211599a2 (patch) | |
tree | 78ccea3f95c600f803c4151354d140f6f7823cc9 /manual/conf.py | |
parent | 17c5b950c882221982e89e06de5689e02e2f6fb4 (diff) | |
download | qpdf-273eaf4682ba11c1c1fcfdcda31d0c95211599a2.tar.zst |
Remove hard-coded version from manual/conf.py
Diffstat (limited to 'manual/conf.py')
-rw-r--r-- | manual/conf.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/manual/conf.py b/manual/conf.py index b95eb3c6..9d4eb5ec 100644 --- a/manual/conf.py +++ b/manual/conf.py @@ -15,8 +15,12 @@ sys.path.append(os.path.abspath("./_ext")) project = 'QPDF' copyright = '2005-2023, Jay Berkenbilt' author = 'Jay Berkenbilt' -# make_dist and the CI build lexically find the release version from this file. -release = '11.7.0' +here = os.path.dirname(os.path.realpath(__file__)) +with open(f'{here}/../CMakeLists.txt') as f: + for line in f.readlines(): + if line.strip().startswith('VERSION '): + release = line.replace('VERSION', '').strip() + break version = release extensions = [ 'sphinx_rtd_theme', |