diff --git a/doc/conf.py b/doc/conf.py index 65ec563..18cb8c6 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -20,11 +20,21 @@ # -- Project information ----------------------------------------------------- project = 'PyLTSpice' -copyright = '2023, Nuno Brum' +copyright = '2024, Nuno Brum' author = 'Nuno Brum' -# The full version, including alpha/beta/rc tags -release = '5.0' +release = '5.3.0' + +try: + # Read the version from the .toml file + from toml import load + with open('../pyproject.toml') as f: + pyproject = load(f) + project = pyproject['project']['name'] + release = pyproject['project']['version'] + author = pyproject['project']['authors'][0]['name'] +except: + pass # -- General configuration ---------------------------------------------------