Skip to content

Commit

Permalink
Trying to generate documentation from the project.toml information
Browse files Browse the repository at this point in the history
  • Loading branch information
nunobrum committed May 5, 2024
1 parent e6cf14d commit 1e3d74f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------------------------------------------
Expand Down

0 comments on commit 1e3d74f

Please sign in to comment.