Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start testing against 3.13 #860

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/lsp-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest]

steps:
Expand All @@ -55,6 +55,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: pip cache
uses: actions/cache@v4
Expand Down
1 change: 1 addition & 0 deletions code/changes/859.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for Python 3.13
1 change: 1 addition & 0 deletions lib/esbonio/changes/859.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for Python 3.13
7 changes: 6 additions & 1 deletion lib/esbonio/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@ extra-dependencies = ["pytest-lsp>=0.3.1,<1"]
matrix-name-format = "{variable}{value}"

[[envs.hatch-test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]

[[envs.hatch-test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
sphinx = ["5", "6", "7"]

[[envs.hatch-test.matrix]]
python = ["3.13"]
sphinx = ["6", "7"]
Copy link
Member Author

@alcarney alcarney Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sphinx v5 fails with the following error Could not import extension sphinx.builders.epub3 (exception: No module named 'imghdr')

imghdr was removed in Python 3.13



[envs.hatch-test.overrides]
matrix.sphinx.dependencies = [
"furo",
Expand Down
4 changes: 2 additions & 2 deletions lib/esbonio/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ requires-python = ">=3.9"
license = { text = "MIT" }
authors = [{ name = "Alex Carney", email = "[email protected]" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand All @@ -20,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Documentation",
"Topic :: Documentation :: Sphinx",
]
Expand All @@ -42,7 +43,6 @@ esbonio = "esbonio.server.cli:main"

[project.optional-dependencies]
typecheck = ["mypy", "pytest-lsp>=0.3.1", "types-docutils", "types-pygments"]
dev = ["black", "flake8", "pre-commit", "tox"]

[tool.coverage.run]
parallel = true
Expand Down