Skip to content

Commit 819ce6b

Browse files
authored
Merge branch 'sphinx-toolbox:master' into feature/query_homepage
2 parents 90217a8 + a225b90 commit 819ce6b

25 files changed

+149
-97
lines changed

.github/workflows/cleanup.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/conda_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python -VV
2929
python -m site
3030
python -m pip install --upgrade pip setuptools wheel
31-
python -m pip install --upgrade whey-conda
31+
python -m pip install --upgrade "whey-conda" "whey"
3232
# $CONDA is an environment variable pointing to the root of the miniconda directory
3333
$CONDA/bin/conda update -q conda
3434
$CONDA/bin/conda install conda-build=3.21.0

.github/workflows/docs_test_action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout 🛎️
20-
uses: "actions/checkout@v1"
20+
uses: "actions/checkout@v2"
2121

2222
- name: Check for changed files
2323
uses: dorny/paths-filter@v2

.github/workflows/python_ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: "windows-2019"
2222
continue-on-error: ${{ matrix.config.experimental }}
2323
env:
24-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-rc.2,pypy-3.6,pypy-3.7'
24+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.4,pypy-3.6,pypy-3.7,pypy-3.8'
2525

2626
strategy:
2727
fail-fast: False
@@ -31,9 +31,11 @@ jobs:
3131
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
3232
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3333
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
34-
- {python-version: "3.10.0-rc.2", testenvs: "py310-dev,build", experimental: True}
34+
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
35+
- {python-version: "3.11.0-alpha.4", testenvs: "py311-dev,build", experimental: True}
3536
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3637
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
38+
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
3739

3840
steps:
3941
- name: Checkout 🛎️

.github/workflows/python_ci_linux.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "ubuntu-20.04"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-rc.2,pypy-3.6,pypy-3.7'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.4,pypy-3.6,pypy-3.7,pypy-3.8'
2626

2727
strategy:
2828
fail-fast: False
@@ -32,9 +32,11 @@ jobs:
3232
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
35-
- {python-version: "3.10.0-rc.2", testenvs: "py310-dev,build", experimental: True}
35+
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36+
- {python-version: "3.11.0-alpha.4", testenvs: "py311-dev,build", experimental: True}
3637
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3738
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
39+
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
3840

3941
steps:
4042
- name: Checkout 🛎️
@@ -101,21 +103,26 @@ jobs:
101103
path: coverage
102104

103105
- name: Display structure of downloaded files
106+
id: show
104107
run: ls -R
105108
working-directory: coverage
109+
continue-on-error: true
106110

107111
- name: Combine Coverage 👷
112+
if: ${{ steps.show.outcome != 'failure' }}
108113
run: |
109114
shopt -s globstar
110115
python -m coverage combine coverage/**/.coverage
111116
112117
- name: "Upload Combined Coverage Artefact 🚀"
118+
if: ${{ steps.show.outcome != 'failure' }}
113119
uses: actions/upload-artifact@v2
114120
with:
115121
name: "combined-coverage"
116122
path: .coverage
117123

118124
- name: "Upload Combined Coverage to Coveralls"
125+
if: ${{ steps.show.outcome != 'failure' }}
119126
env:
120127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121128
run: |
@@ -173,7 +180,7 @@ jobs:
173180
- name: Install dependencies 🔧
174181
run: |
175182
python -m pip install --upgrade pip setuptools wheel
176-
python -m pip install --upgrade mkrecipe
183+
python -m pip install --upgrade "mkrecipe" "whey"
177184
178185
wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh -O miniconda.sh
179186
bash miniconda.sh -b -p $HOME/miniconda

.github/workflows/python_ci_macos.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: "macos-latest"
2222
continue-on-error: ${{ matrix.config.experimental }}
2323
env:
24-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-rc.2,pypy-3.6,pypy-3.7'
24+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.4,pypy-3.7,pypy-3.8'
2525

2626
strategy:
2727
fail-fast: False
@@ -31,9 +31,10 @@ jobs:
3131
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
3232
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3333
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
34-
- {python-version: "3.10.0-rc.2", testenvs: "py310-dev,build", experimental: True}
35-
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
34+
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
35+
- {python-version: "3.11.0-alpha.4", testenvs: "py311-dev,build", experimental: True}
3636
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
37+
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
3738

3839
steps:
3940
- name: Checkout 🛎️

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ repos:
3030
- id: end-of-file-fixer
3131

3232
- repo: https://github.com/domdfcoding/pre-commit-hooks
33-
rev: v0.2.1
33+
rev: v0.3.0
3434
hooks:
3535
- id: requirements-txt-sorter
3636
args:
@@ -40,7 +40,7 @@ repos:
4040
- id: bind-requirements
4141

4242
- repo: https://github.com/domdfcoding/flake8-dunder-all
43-
rev: v0.1.7
43+
rev: v0.1.8
4444
hooks:
4545
- id: ensure-dunder-all
4646
files: ^seed_intersphinx_mapping/.*\.py$
@@ -73,7 +73,7 @@ repos:
7373
- id: forbid-crlf
7474

7575
- repo: https://github.com/python-formate/snippet-fmt
76-
rev: v0.1.3
76+
rev: v0.1.4
7777
hooks:
7878
- id: snippet-fmt
7979

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ seed_intersphinx_mapping
109109
:target: https://github.com/sphinx-toolbox/seed_intersphinx_mapping/commit/master
110110
:alt: GitHub last commit
111111

112-
.. |maintained| image:: https://img.shields.io/maintenance/yes/2021
112+
.. |maintained| image:: https://img.shields.io/maintenance/yes/2022
113113
:alt: Maintenance
114114

115115
.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/seed_intersphinx_mapping

__pkginfo__.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

doc-source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ seed_intersphinx_mapping
114114
:last-commit:
115115
:alt: GitHub last commit
116116

117-
.. |maintained| maintained-shield:: 2021
117+
.. |maintained| maintained-shield:: 2022
118118
:alt: Maintenance
119119

120120
.. |pypi-downloads| pypi-shield::

doc-source/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ git+https://github.com/sphinx-toolbox/sphinx-toolbox-experimental.git
22
default-values>=0.5.0b1
33
extras-require>=0.2.0
44
furo>=2020.11.19b18
5+
html-section>=0.1.0
56
seed-intersphinx-mapping>=0.3.1
67
sphinx-copybutton>=0.2.12
78
sphinx-debuginfo>=0.1.0

formate.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ known_third_party = [
4545
"html5lib",
4646
"importlib_metadata",
4747
"importlib_resources",
48+
"numpy",
4849
"packaging",
4950
"pypi_json",
5051
"pytest",

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ base-classifiers = [
3434
"Topic :: Software Development :: Documentation",
3535
"Typing :: Typed",
3636
]
37-
python-versions = [ "3.6", "3.7", "3.8", "3.9",]
37+
python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10",]
3838
python-implementations = [ "CPython", "PyPy",]
3939
platforms = [ "Windows", "macOS", "Linux",]
4040
license-key = "MIT"
@@ -72,7 +72,7 @@ extensions = [
7272
"sphinx_debuginfo",
7373
"sphinx_licenseinfo",
7474
"seed_intersphinx_mapping",
75-
"sphinx_toolbox_experimental.html_section",
75+
"html_section",
7676
"sphinx_toolbox_experimental.autosummary_widths",
7777
"sphinx_toolbox_experimental.needspace",
7878
"sphinx_toolbox_experimental.peps",

repo_helper.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ python_versions:
2525
- '3.7'
2626
- '3.8'
2727
- '3.9'
28-
- 3.10-dev
28+
- "3.10"
29+
- 3.11-dev
2930
- pypy36
3031
- pypy37
32+
- pypy38
3133

3234
manifest_additional:
3335
- "include seed_intersphinx_mapping/fallback_mapping.json"
@@ -51,11 +53,13 @@ exclude_files:
5153
preserve_custom_theme: true
5254

5355
extra_sphinx_extensions:
54-
- sphinx_toolbox_experimental.html_section
5556
- sphinx_toolbox_experimental.autosummary_widths
5657
- sphinx_toolbox_experimental.needspace
5758
- sphinx_toolbox_experimental.peps
5859

5960
sphinx_conf_epilogue:
6061
- " from sphinx_toolbox.latex import replace_unknown_unicode"
6162
- ' app.connect("build-finished", replace_unknown_unicode)'
63+
64+
tox_unmanaged:
65+
- testenv
Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
11
{
2-
"slumber": "https://slumber.readthedocs.io/en/v0.6.0/",
3-
"packaging": "https://packaging.pypa.io/en/latest/",
4-
"importlib_resources": "https://importlib-resources.readthedocs.io/en/latest/",
5-
"importlib-resources": "https://importlib-resources.readthedocs.io/en/latest/",
6-
"sphinx": "https://www.sphinx-doc.org/en/3.x/",
7-
"typing_extensions": "https://docs.python.org/3/",
8-
"typing-extensions": "https://docs.python.org/3/",
9-
"pandas": "https://pandas.pydata.org/docs/",
10-
"pytest": "https://docs.pytest.org/en/stable",
11-
"natsort": "https://natsort.readthedocs.io/en/master/",
12-
"pydash": "https://pydash.readthedocs.io/en/latest/",
13-
"pytest-regressions": "https://pytest-regressions.readthedocs.io/en/latest/",
2+
"babel": "https://babel.readthedocs.io/en/latest/",
143
"boto3": "https://boto3.amazonaws.com/v1/documentation/api/latest/",
15-
"chardet": "https://chardet.readthedocs.io/en/latest",
16-
"six": "https://six.readthedocs.io/",
4+
"cachetools": "https://cachetools.readthedocs.io/en/latest/",
175
"cffi": "https://cffi.readthedocs.io/en/latest/",
6+
"chardet": "https://chardet.readthedocs.io/en/latest",
187
"cryptography": "https://cryptography.io/en/latest/",
19-
"python-dateutil": "https://dateutil.readthedocs.io/en/stable/",
20-
"pyparsing": "https://pyparsing-docs.readthedocs.io/en/latest/",
21-
"requests-oauthlib": "https://requests-oauthlib.readthedocs.io/en/latest/",
22-
"oauthlib": "https://oauthlib.readthedocs.io/en/latest/",
23-
"pyopenssl": "https://www.pyopenssl.org/en/latest/",
8+
"dnspython": "https://dnspython.readthedocs.io/en/latest/",
249
"importlib-metadata": "https://importlib-metadata.readthedocs.io/en/latest/",
10+
"importlib-resources": "https://importlib-resources.readthedocs.io/en/latest/",
2511
"importlib_metadata": "https://importlib-metadata.readthedocs.io/en/latest/",
12+
"importlib_resources": "https://importlib-resources.readthedocs.io/en/latest/",
13+
"natsort": "https://natsort.readthedocs.io/en/master/",
14+
"numpy": "https://numpy.org/doc/stable/",
15+
"oauthlib": "https://oauthlib.readthedocs.io/en/latest/",
16+
"packaging": "https://packaging.pypa.io/en/latest/",
17+
"pandas": "https://pandas.pydata.org/docs/",
2618
"psutil": "https://psutil.readthedocs.io/en/latest/",
27-
"zipp": "https://zipp.readthedocs.io/en/latest/",
28-
"yarl": "https://yarl.readthedocs.io/en/latest/",
29-
"cachetools": "https://cachetools.readthedocs.io/en/latest/",
19+
"pydash": "https://pydash.readthedocs.io/en/latest/",
3020
"pyjwt": "https://pyjwt.readthedocs.io/en/latest/",
31-
"dnspython": "https://dnspython.readthedocs.io/en/latest/",
32-
"babel": "https://babel.readthedocs.io/en/latest/",
21+
"pyopenssl": "https://www.pyopenssl.org/en/latest/",
22+
"pyparsing": "https://pyparsing-docs.readthedocs.io/en/latest/",
3323
"pyrsistent": "https://pyrsistent.readthedocs.io/en/latest/",
34-
"scikit-learn": "https://scikit-learn.org/stable/"
24+
"pytest": "https://docs.pytest.org/en/stable",
25+
"pytest-regressions": "https://pytest-regressions.readthedocs.io/en/latest/",
26+
"python-dateutil": "https://dateutil.readthedocs.io/en/stable/",
27+
"requests-oauthlib": "https://requests-oauthlib.readthedocs.io/en/latest/",
28+
"scikit-learn": "https://scikit-learn.org/stable/",
29+
"six": "https://six.readthedocs.io/",
30+
"slumber": "https://slumber.readthedocs.io/en/v0.6.0/",
31+
"sphinx": "https://www.sphinx-doc.org/en/3.x/",
32+
"typing": "https://docs.python.org/3/",
33+
"typing-extensions": "https://docs.python.org/3/",
34+
"typing_extensions": "https://docs.python.org/3/",
35+
"yarl": "https://yarl.readthedocs.io/en/latest/",
36+
"zipp": "https://zipp.readthedocs.io/en/latest/"
3537
}

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ coverage>=5.1
33
coverage-pyver-pragma>=0.2.1
44
html5lib>=1.1
55
importlib-metadata>=3.6.0
6+
numpy~=1.22.0; python_version >= "3.8"
67
pytest>=6.0.0
78
pytest-cov>=2.8.1
89
pytest-datafiles>=2.0

tests/test_core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def test_get_sphinx_doc_url():
3131
with pytest.raises(ValueError, match="Documentation URL not found in data from PyPI."):
3232
get_sphinx_doc_url("sphinx-prompt")
3333

34+
assert get_sphinx_doc_url("numpy") in {"https://numpy.org/doc/1.22/", "https://numpy.org/doc/1.21/"}
35+
3436

3537
def test_get_sphinx_doc_url_wrapping():
3638
assert get_sphinx_doc_url.__name__ == "get_sphinx_doc_url"

tests/test_integration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
@pytest.fixture()
7-
def requirements(tmp_pathplus):
7+
def requirements(tmp_pathplus: PathPlus) -> None:
88
fake_repo_root = tmp_pathplus.parent
99

1010
(fake_repo_root / "requirements.txt").write_text("""\
@@ -16,7 +16,8 @@ def requirements(tmp_pathplus):
1616
""")
1717

1818

19-
def test_integration(requirements, the_app):
19+
@pytest.mark.usefixtures("requirements")
20+
def test_integration(the_app):
2021
# app is a Sphinx application object for default sphinx project (`tests/doc-test/test-root`).
2122
the_app.build()
2223

0 commit comments

Comments
 (0)