Skip to content

Commit 5450dee

Browse files
authored
Add support for python 3.13 (#169)
1 parent 945c862 commit 5450dee

File tree

5 files changed

+30
-27
lines changed

5 files changed

+30
-27
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
ci-pre-commit:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
16-
- uses: actions/setup-python@v4
16+
- uses: actions/setup-python@v5
1717
with:
18-
python-version: "3.12"
18+
python-version: "3.13"
1919
- name: Install project
2020
run: pip install -e .[dev,test]
2121
- name: run pre-commit
@@ -24,21 +24,18 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
27+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2828
sphinx-version: ["6.*", "7.*", "8.*"]
2929
exclude:
30-
# sphinx 8 does not support python 3.8
31-
- sphinx-version: "8.*"
32-
python-version: "3.8"
3330
# sphinx 8 does not support python 3.9
3431
- sphinx-version: "8.*"
3532
python-version: "3.9"
3633
runs-on: ubuntu-latest
3734
steps:
38-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3936
with:
4037
fetch-depth: 0
41-
- uses: actions/setup-python@v4
38+
- uses: actions/setup-python@v5
4239
with:
4340
python-version: ${{ matrix.python-version }}
4441
- name: Install project

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
contents: write
1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
- name: Setup python
22-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2323
with:
24-
python-version: "3.12"
24+
python-version: "3.13"
2525
- name: Install project
2626
run: pip install -e .
2727
- name: Install libraries
@@ -36,7 +36,7 @@ jobs:
3636
version="${tag:1}"
3737
echo "RELEASE_VERSION=${version}" >> $GITHUB_ENV
3838
- name: Release on GitHub
39-
uses: softprops/action-gh-release@v1
39+
uses: softprops/action-gh-release@v2
4040
with:
4141
files: dist/*
4242
name: Version ${{ env.RELEASE_VERSION }}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 4.0.0
4+
5+
* Add support for python 3.13
6+
* Drop support for python 3.8
7+
38
## 3.6.0
49

510
* Add support for sphinx 8

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "swagger-plugin-for-sphinx"
7-
version = "3.6.0"
7+
version = "4.0.0"
88
description = "Sphinx plugin which renders a OpenAPI specification with Swagger"
99
authors = [{ name = "Kai Mueller", email = "[email protected]" }]
1010
readme = "README.md"
@@ -19,16 +19,16 @@ classifiers = [
1919
"Operating System :: OS Independent",
2020
"Programming Language :: Python :: 3",
2121
"Programming Language :: Python :: 3 :: Only",
22-
"Programming Language :: Python :: 3.8",
2322
"Programming Language :: Python :: 3.9",
2423
"Programming Language :: Python :: 3.10",
2524
"Programming Language :: Python :: 3.11",
2625
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
2727
"Topic :: Documentation",
2828
"Topic :: Documentation :: Sphinx",
2929
"Typing :: Typed",
3030
]
31-
requires-python = ">=3.8,<4"
31+
requires-python = ">=3.9,<4"
3232
dependencies = ["sphinx>=6.0,<9", "jinja2~=3.0", "docutils"]
3333

3434
[project.license]

tests/test_integration.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@ def test() -> None:
2222
options = webdriver.ChromeOptions()
2323
options.add_argument("--ignore-certificate-errors")
2424

25-
with webdriver.Remote(
26-
"http://localhost:4444", options=options
27-
) as browser, subprocess.Popen(
28-
[
29-
"python",
30-
"-m",
31-
"http.server",
32-
"--directory",
33-
"tests/test_data/_build/",
34-
]
35-
) as popen:
25+
with (
26+
webdriver.Remote("http://localhost:4444", options=options) as browser,
27+
subprocess.Popen(
28+
[
29+
"python",
30+
"-m",
31+
"http.server",
32+
"--directory",
33+
"tests/test_data/_build/",
34+
]
35+
) as popen,
36+
):
3637
time.sleep(5)
3738
browser.get("http://localhost:8000/openapi.html")
3839
title = browser.find_element(By.CLASS_NAME, "title")

0 commit comments

Comments
 (0)