Skip to content

Commit 3125ecd

Browse files
Include python 3.13 in tests (#187)
* Include python 3.13 in tests * Add configuration to readthedocs.yml * Add readthedocs canonical url, language spec to conf.py * Bump pypa/cibuildwheel from 2.21.3 to 2.22.0 (#180) Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.21.3 to 2.22.0. - [Release notes](https://github.com/pypa/cibuildwheel/releases) - [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md) - [Commits](pypa/cibuildwheel@v2.21.3...v2.22.0) --- updated-dependencies: - dependency-name: pypa/cibuildwheel dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Include python 3.13 in tests Add configuration to readthedocs.yml Add readthedocs canonical url, language spec to conf.py Pin sphinx in requirements Pin sphinx in docs/requirements Add html_context to globals Strict inequality in sphinx pin --------- Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent f0b8a83 commit 3125ecd

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

.github/workflows/python-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
test:
1515
strategy:
1616
matrix:
17-
python-version: ["3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818
os: ["ubuntu-latest", "macos-latest"]
1919
runs-on: ${{ matrix.os }}
2020

@@ -48,7 +48,7 @@ jobs:
4848
strategy:
4949
fail-fast: false
5050
matrix:
51-
python-version: ["3.9", "3.10", "3.11", "3.12"]
51+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
5252

5353
steps:
5454
- uses: actions/checkout@v4
@@ -73,7 +73,7 @@ jobs:
7373
strategy:
7474
fail-fast: false
7575
matrix:
76-
python-version: ["3.9", "3.10", "3.11", "3.12"]
76+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
7777

7878
steps:
7979
- uses: actions/checkout@v4

.readthedocs.yml

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

3+
sphinx:
4+
configuration: docs/conf.py
5+
36
build:
47
os: "ubuntu-22.04"
58
tools:

docs/conf.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
author = u'Christopher Tralie and Nathaniel Saul'
1111
version = __version__
1212
release = __version__
13+
language = 'en'
1314

1415
html_theme_options.update({
1516
# Google Analytics info
@@ -19,4 +20,13 @@
1920
})
2021

2122
html_short_title = project
22-
htmlhelp_basename = 'ripserdoc'
23+
htmlhelp_basename = 'ripserdoc'
24+
25+
# Set canonical URL from the Read the Docs Domain
26+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
27+
28+
# Tell Jinja2 templates the build is running on Read the Docs
29+
if os.environ.get("READTHEDOCS", "") == "True":
30+
if "html_context" not in globals():
31+
html_context = {}
32+
html_context["READTHEDOCS"] = True

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
cython
1+
cython
2+
sphinx<8.2.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ keywords = [
4343
[project.optional-dependencies]
4444
testing = ["pytest", "pytest-cov"]
4545

46-
docs = ["sktda_docs_config"]
46+
docs = ["sktda_docs_config", "sphinx<8.2.0"]
4747

4848
examples = ["tadasets", "jupyter", "pillow"]
4949

0 commit comments

Comments
 (0)