Skip to content

Commit

Permalink
make sphinx build work without installed kraken
Browse files Browse the repository at this point in the history
  • Loading branch information
mittagessen committed Apr 20, 2024
1 parent 24db36b commit 1c6186a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

import importlib.metadata

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'kraken'
copyright = '2015-2024, Benjamin Kiessling'
author = 'Benjamin Kiessling'
release = importlib.metadata.version('kraken')

from subprocess import Popen, PIPE
pipe = Popen('git describe --tags --always main', stdout=PIPE, shell=True)
release = pipe.stdout.read().decode('utf-8')

extensions = [
'sphinx.ext.autodoc',
Expand Down

0 comments on commit 1c6186a

Please sign in to comment.