-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Compatibility with docutils>=0.18 (from support with sphinx>=5) (#…
…60) * pre-commit file update * removing python 3.6 * removing python 3.6 * updated tests * sphinx version * sphinx versions * specific test files for sphinx4 * remove py37 support * update CI * removing python3.7 * updating tests for sphinx5 Co-authored-by: mmcky <[email protected]>
- Loading branch information
1 parent
f555d72
commit 9e09fbb
Showing
46 changed files
with
854 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,17 +13,17 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.9 | ||
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
python-version: [3.8, 3.9] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -40,10 +40,10 @@ jobs: | |
- name: Create cov | ||
run: coverage xml | ||
- name: Upload to Codecov | ||
if: matrix.python-version == 3.7 | ||
if: matrix.python-version == 3.8 | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: sphinx-exercise-pytest-py3.7 | ||
name: sphinx-exercise-pytest-py3.8 | ||
flags: pytests | ||
file: ./coverage.xml | ||
fail_ci_if_error: true | ||
|
@@ -53,10 +53,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
|
@@ -75,10 +75,10 @@ jobs: | |
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.9 | ||
- name: Build package | ||
run: | | ||
pip install wheel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
sphinx>=3.0 | ||
sphinx>=4,<6 | ||
sphinx-book-theme | ||
myst-nb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.7 | ||
3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,21 +18,23 @@ | |
|
||
# Define all extras | ||
extras = { | ||
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit==1.17.0"], | ||
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit"], | ||
"testing": [ | ||
"coverage", | ||
"pytest>=3.6,<4", | ||
"pytest-cov", | ||
"pytest-regressions", | ||
"beautifulsoup4", | ||
"myst-nb", | ||
"myst-nb~=0.17.1", | ||
"sphinx>=4,<6", | ||
"docutils>=0.15,<0.19", | ||
"texsoup", | ||
"matplotlib", | ||
], | ||
"rtd": [ | ||
"sphinx>=3.0", | ||
"sphinx>=4,<6", | ||
"sphinx-book-theme", | ||
"myst-nb", | ||
"myst-nb~=0.17.1", | ||
], | ||
} | ||
|
||
|
@@ -41,7 +43,7 @@ | |
setup( | ||
name="sphinx-exercise", | ||
version=VERSION, | ||
python_requires=">=3.6", | ||
python_requires=">=3.8", | ||
author="QuantEcon", | ||
author_email="[email protected]", | ||
url=BASE_URL, | ||
|
@@ -55,7 +57,7 @@ | |
long_description_content_type="text/markdown", | ||
license="BSD", | ||
packages=find_packages(), | ||
install_requires=["docutils>=0.15", "sphinx", "sphinx-book-theme"], | ||
install_requires=["sphinx>=4", "sphinx-book-theme"], | ||
extras_require=extras, | ||
include_package_data=True, | ||
classifiers=[ | ||
|
@@ -67,9 +69,8 @@ | |
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python", | ||
"Topic :: Documentation :: Sphinx", | ||
"Topic :: Documentation", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="exercise admonition" id="test-exc-label-math"> | ||
<p class="admonition-title"><span class="caption-number">Exercise 1 </span> (Test <span class="math notranslate nohighlight">\(\mathbb{R}\)</span>)</p> | ||
<div class="section" id="exercise-content"> | ||
<section id="exercise-content"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> | ||
</div> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="exercise admonition" id="text-exc-notitle"> | ||
<p class="admonition-title"><span class="caption-number">Exercise 2 </span></p> | ||
<div class="section" id="exercise-content"> | ||
<section id="exercise-content"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> | ||
</div> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="exercise test-exc admonition" id="test-exc-label"> | ||
<p class="admonition-title"><span class="caption-number">Exercise 3 </span> (Test exercise directive)</p> | ||
<div class="section" id="exercise-content"> | ||
<section id="exercise-content"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> | ||
</div> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="exercise admonition" id="exercise/_enum_title_nolabel-exercise-0"> | ||
<p class="admonition-title"><span class="caption-number">Exercise 4 </span> (Test exercise directive)</p> | ||
<div class="section" id="exercise-content"> | ||
<section id="exercise-content"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> | ||
</div> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="exercise admonition" id="unen-exc-label-math"> | ||
<p class="admonition-title">Exercise (Test <span class="math notranslate nohighlight">\(\mathbb{R}\)</span>)</p> | ||
<div class="section" id="exercise-content"> | ||
<section id="exercise-content"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> | ||
</div> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="exercise admonition" id="unen-exc-notitle"> | ||
<p class="admonition-title">Exercise</p> | ||
<div class="section" id="exercise-content"> | ||
<section id="exercise-content"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> | ||
</div> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="exercise unen-exc admonition" id="unen-exc-label"> | ||
<p class="admonition-title">Exercise (Test exercise directive)</p> | ||
<div class="section" id="exercise-content"> | ||
<section id="exercise-content"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> | ||
</div> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="exercise admonition" id="exercise/_unenum_title_nolabel-exercise-0"> | ||
<p class="admonition-title">Exercise (Test exercise directive)</p> | ||
<div class="section" id="exercise-content"> | ||
<section id="exercise-content"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> | ||
</div> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<div class="exercise admonition" id="gated-exercise-1"> | ||
<p class="admonition-title"><span class="caption-number">Exercise 3 </span></p> | ||
<div class="section" id="exercise-content"> | ||
<section id="exercise-content"> | ||
<p>Replicate this figure using matplotlib</p> | ||
<div class="figure align-default"> | ||
<figure class="align-default"> | ||
<img alt="_images/sphx_glr_cohere_001_2_0x.png" src="_images/sphx_glr_cohere_001_2_0x.png"/> | ||
</div> | ||
</div> | ||
</figure> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div class="exercise admonition" id="gated-exercise-2"> | ||
<p class="admonition-title"><span class="caption-number">Exercise 4 </span> (Replicate Matplotlib Plot)</p> | ||
<div class="section" id="exercise-content"> | ||
<div class="figure align-default"> | ||
<section id="exercise-content"> | ||
<figure class="align-default"> | ||
<img alt="_images/sphx_glr_cohere_001_2_0x.png" src="_images/sphx_glr_cohere_001_2_0x.png"/> | ||
</div> | ||
</div> | ||
</figure> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.