Skip to content

Commit 787dcfc

Browse files
committed
🎨 Do not rebuild MQT Core in tests
1 parent d693d08 commit 787dcfc

2 files changed

Lines changed: 12 additions & 27 deletions

File tree

.readthedocs.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
version: 2
22

33
formats:
4-
# - pdf
54
- htmlzip
5+
# - pdf
6+
7+
sphinx:
8+
configuration: docs/conf.py
69

710
build:
811
os: ubuntu-24.04
@@ -30,9 +33,9 @@ build:
3033
- asdf global uv latest
3134
- wget https://github.com/Z3Prover/z3/releases/download/z3-4.13.4/z3-4.13.4-x64-glibc-2.35.zip
3235
- unzip z3-4.13.4-x64-glibc-2.35.zip -d ~/
33-
# Set up build time dependencies including a source distribution of mqt-core.
34-
- uv sync --only-group build --only-group docs --no-binary-package mqt-core
35-
# The default version of CMake on Ubuntu 24.04 is too old, so we need to install a newer version.
36+
# Set up build-time dependencies
37+
- uv sync --only-group build --only-group docs
38+
# Install CMake because the default version on Ubuntu 24.04 is too old
3639
- uv pip install cmake
3740
build:
3841
html:
@@ -41,11 +44,8 @@ build:
4144
- Z3_ROOT=~/z3-4.13.4-x64-glibc-2.35 uv run --frozen --no-dev --no-build-isolation-package mqt-qmap -m sphinx -T -b dirhtml -d docs/_build/doctrees -D language=en docs docs/_build/dirhtml
4245
- mkdir -p $READTHEDOCS_OUTPUT/htmlzip
4346
- zip -r $READTHEDOCS_OUTPUT/htmlzip/html.zip docs/_build/dirhtml/*
44-
# pdf:
45-
# - Z3_ROOT=~/z3-4.13.4-x64-glibc-2.35 uv run --frozen --no-dev --no-build-isolation-package mqt-qmap -m sphinx -T -b latex -d docs/_build/doctrees -D language=en docs docs/_build/latex
46-
# - cd docs/_build/latex && latexmk -pdf -f -dvi- -ps- -interaction=nonstopmode -jobname=$READTHEDOCS_PROJECT
47-
# - mkdir -p $READTHEDOCS_OUTPUT/pdf
48-
# - cp docs/_build/latex/$READTHEDOCS_PROJECT.pdf $READTHEDOCS_OUTPUT/pdf/$READTHEDOCS_PROJECT.pdf
49-
50-
sphinx:
51-
configuration: docs/conf.py
47+
# pdf:
48+
# - Z3_ROOT=~/z3-4.13.4-x64-glibc-2.35 uv run --frozen --no-dev --no-build-isolation-package mqt-qmap -m sphinx -T -b latex -d docs/_build/doctrees -D language=en docs docs/_build/latex
49+
# - cd docs/_build/latex && latexmk -pdf -f -dvi- -ps- -interaction=nonstopmode -jobname=$READTHEDOCS_PROJECT
50+
# - mkdir -p $READTHEDOCS_OUTPUT/pdf
51+
# - cp docs/_build/latex/$READTHEDOCS_PROJECT.pdf $READTHEDOCS_OUTPUT/pdf/$READTHEDOCS_PROJECT.pdf

noxfile.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,6 @@ def _run_tests(
6666
"build",
6767
"--only-group",
6868
"test",
69-
# Build mqt-core from source to work around pybind believing that two
70-
# compiled extensions might not be binary compatible.
71-
# This will be fixed in a new pybind11 release that includes https://github.com/pybind/pybind11/pull/5439.
72-
"--no-binary-package",
73-
"mqt-core",
74-
# Similarly to above, build mqt-qcec from source because otherwise there
75-
# might be binary compatibility issues with the compiled extensions.
76-
# This can be removed once the above is no longer necessary.
77-
"--no-binary-package",
78-
"mqt-qcec",
7969
*install_args,
8070
env=env,
8171
)
@@ -158,11 +148,6 @@ def docs(session: nox.Session) -> None:
158148
"build",
159149
"--only-group",
160150
"docs",
161-
# Build mqt-core from source to work around pybind believing that two
162-
# compiled extensions might not be binary compatible.
163-
# This will be fixed in a new pybind11 release that includes https://github.com/pybind/pybind11/pull/5439.
164-
"--no-binary-package",
165-
"mqt-core",
166151
env=env,
167152
)
168153

0 commit comments

Comments
 (0)