Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing ReadtheDocs #247

Merged
merged 13 commits into from
Sep 27, 2023
23 changes: 10 additions & 13 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,17 @@


try:
from mqt.bench import __version__ as version
version = metadata.version("mqt.bench")
except ModuleNotFoundError:
try:
version = metadata.version("mqt.bench")
except ModuleNotFoundError:
msg = (
"Package should be installed to produce documentation! "
"Assuming a modern git archive was used for version discovery."
)
warnings.warn(msg, stacklevel=1)

from setuptools_scm import get_version

version = get_version(root=str(ROOT), fallback_root=ROOT)
msg = (
"Package should be installed to produce documentation! "
"Assuming a modern git archive was used for version discovery."
)
warnings.warn(msg, stacklevel=1)

from setuptools_scm import get_version

version = get_version(root=str(ROOT), fallback_root=ROOT)

# Filter git details from version
release = version.split("+")[0]
Expand Down
2 changes: 2 additions & 0 deletions src/mqt/bench/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from mqt.bench.benchmark_generator import (
generate,
get_benchmark,
Expand Down
Loading