Skip to content

Commit

Permalink
MAINT: pin matplotlib to 3.7.* for testing (#66)
Browse files Browse the repository at this point in the history
* test: pin

* test: update regression tests

* docs: update doc dependencies

* test: update snapshot

* fix: set admonition style in after

* chore: drop requirements.txt
  • Loading branch information
agoose77 authored Apr 14, 2024
1 parent 8cd4d6e commit fca0c61
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 25 deletions.
3 changes: 0 additions & 3 deletions docs/requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion docs/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8
3.11
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -- Project information -----------------------------------------------------

project = "sphinx-exercise"
copyright = "2020-2021, Exectuable Book Developers"
copyright = "2020-2021, Executable Book Developers"
author = "Executable Book Developers"
master_doc = "index"

Expand All @@ -11,7 +11,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named "sphinx.ext.*") or your custom
# ones.
extensions = ["sphinx_exercise", "myst_nb"]
extensions = ["sphinx_exercise", "myst_nb", "sphinx_togglebutton"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ code_style = [
rtd = [
"myst-nb~=1.0.0",
"sphinx-book-theme",
"sphinx_togglebutton",
"sphinx>=5,<8",
]
testing = [
"beautifulsoup4",
"coverage",
"matplotlib",
"matplotlib==3.8.*",
"myst-nb~=1.0.0",
"pytest-cov",
"pytest-regressions",
Expand Down
4 changes: 2 additions & 2 deletions sphinx_exercise/assets/html/exercise.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ div.exercise p.admonition-title {
}

/* Remove content box */
div.exercise p.admonition-title::before {
div.exercise p.admonition-title::after {
content: "\f303";
}

Expand All @@ -38,6 +38,6 @@ div.solution p.admonition-title {
}

/* Remove content box */
div.solution p.admonition-title::before {
div.solution p.admonition-title::after {
content: none;
}
4 changes: 2 additions & 2 deletions tests/test_gateddirective/solution-exercise-0.sphinx7.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
</div>
</div>
<div class="cell_output docutils container">
<img alt="_images/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png" src="_images/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png"/>
<img alt="_images/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png" src="_images/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png"/>
</div>
</div>
<p>With some follow up text to the solution</p>
</section>
</div>
</div>
4 changes: 2 additions & 2 deletions tests/test_gateddirective/solution-exercise-1.sphinx7.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
</div>
</div>
<div class="cell_output docutils container">
<img alt="_images/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png" src="_images/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png"/>
<img alt="_images/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png" src="_images/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png"/>
</div>
</div>
<p>With some follow up text to the solution</p>
</section>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
</div>
</div>
<div class="cell_output docutils container">
<img alt="_images/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png" src="_images/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png"/>
<img alt="_images/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png" src="_images/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png"/>
</div>
</div>
<p>With some follow up text to the solution</p>
</section>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
</div>
</div>
<div class="cell_output docutils container">
<img alt="_images/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png" src="_images/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png"/>
<img alt="_images/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png" src="_images/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png"/>
</div>
</div>
<p>With some follow up text to the solution</p>
</section>
</div>
</div>
4 changes: 2 additions & 2 deletions tests/test_gateddirective/solution-exercise-gated.sphinx7.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve">
<Figure size 640x480 with 2 Axes>
<container mime_type="image/png">
<image candidates="{'*': '_build/jupyter_execute/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png'}" uri="_build/jupyter_execute/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png">
<image candidates="{'*': '_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png'}" uri="_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png">
<paragraph>
With some follow up text to the solution
<paragraph>
Expand Down Expand Up @@ -98,7 +98,7 @@
<literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve">
<Figure size 640x480 with 2 Axes>
<container mime_type="image/png">
<image candidates="{'*': '_build/jupyter_execute/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png'}" uri="_build/jupyter_execute/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png">
<image candidates="{'*': '_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png'}" uri="_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png">
<paragraph>
With some follow up text to the solution
<section ids="references-to-solutions" names="references\ to\ solutions">
Expand Down
4 changes: 2 additions & 2 deletions tests/test_gateddirective/solution-exercise.sphinx7.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve">
<Figure size 640x480 with 2 Axes>
<container mime_type="image/png">
<image candidates="{'*': '_build/jupyter_execute/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png'}" uri="_build/jupyter_execute/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png">
<image candidates="{'*': '_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png'}" uri="_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png">
<paragraph>
With some follow up text to the solution
<paragraph>
Expand Down Expand Up @@ -96,7 +96,7 @@
<literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve">
<Figure size 640x480 with 2 Axes>
<container mime_type="image/png">
<image candidates="{'*': '_build/jupyter_execute/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png'}" uri="_build/jupyter_execute/5c3763e4602ed5d37252a09ed1d3b109e1e9c5ee20255a5d4c0d436f43743816.png">
<image candidates="{'*': '_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png'}" uri="_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png">
<paragraph>
With some follow up text to the solution
<section ids="references" names="references">
Expand Down
8 changes: 4 additions & 4 deletions tests/test_gateddirective/solution-exercise.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
<container nb_element="mime_bundle">
<container mime_type="text/plain">
<literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve">
<Figure size 432x288 with 2 Axes>
<Figure size 640x480 with 2 Axes>
<container mime_type="image/png">
<image candidates="{'*': '_build/jupyter_execute/59d5daa1f6a4a408595ce4674d8b8d720ff4281f9aaec5eedeabe6520af704f2.png'}" uri="_build/jupyter_execute/59d5daa1f6a4a408595ce4674d8b8d720ff4281f9aaec5eedeabe6520af704f2.png">
<image candidates="{'*': '_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png'}" uri="_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png">
<paragraph>
With some follow up text to the solution
<paragraph>
Expand Down Expand Up @@ -94,9 +94,9 @@
<container nb_element="mime_bundle">
<container mime_type="text/plain">
<literal_block classes="output text_plain" language="myst-ansi" xml:space="preserve">
<Figure size 432x288 with 2 Axes>
<Figure size 640x480 with 2 Axes>
<container mime_type="image/png">
<image candidates="{'*': '_build/jupyter_execute/59d5daa1f6a4a408595ce4674d8b8d720ff4281f9aaec5eedeabe6520af704f2.png'}" uri="_build/jupyter_execute/59d5daa1f6a4a408595ce4674d8b8d720ff4281f9aaec5eedeabe6520af704f2.png">
<image candidates="{'*': '_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png'}" uri="_build/jupyter_execute/e54e180c35e94dd0df219d42c2477d4c5763db55da00a21803bd9ce8f9859cb2.png">
<paragraph>
With some follow up text to the solution
<section ids="references" names="references">
Expand Down

0 comments on commit fca0c61

Please sign in to comment.