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

Support Python 3.13 #272

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ jobs:
fail-fast: false
matrix:
include:
- {name: '3.13', python: '3.13', tox: py313}
- {name: '3.12', python: '3.12', tox: py312}
- {name: '3.11', python: '3.11', tox: py311}
- {name: '3.10', python: '3.10', tox: py310}
- {name: '3.9', python: '3.9', tox: py39}
- {name: '3.8', python: '3.8', tox: py38}
- {name: 'format', python: '3.12', tox: format}
- {name: 'mypy', python: '3.12', tox: mypy}
- {name: 'pep8', python: '3.12', tox: pep8}
- {name: 'package', python: '3.12', tox: package}
- {name: 'format', python: '3.13', tox: format}
- {name: 'mypy', python: '3.13', tox: mypy}
- {name: 'pep8', python: '3.13', tox: pep8}
- {name: 'package', python: '3.13', tox: package}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -56,7 +57,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"

- name: update pip
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- uses: actions/setup-python@v3
with:
python-version: 3.12
python-version: 3.13

- run: |
pip install poetry
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
]
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = docs,format,mypy,py38,py39,py310,py311,py312,package,pep8
envlist = docs,format,mypy,py38,py39,py310,py311,py312,py313,package,pep8
minversion = 3.3
isolated_build = true

Expand All @@ -16,7 +16,7 @@ deps =
commands = pytest --cov=hypercorn {posargs}

[testenv:docs]
basepython = python3.12
basepython = python3.13
deps =
pydata-sphinx-theme
sphinx
Expand All @@ -27,7 +27,7 @@ commands =
sphinx-build -W --keep-going -b html -d {envtmpdir}/doctrees docs/ docs/_build/html/

[testenv:format]
basepython = python3.12
basepython = python3.13
deps =
black
isort
Expand All @@ -36,7 +36,7 @@ commands =
isort --check --diff src/hypercorn tests

[testenv:pep8]
basepython = python3.12
basepython = python3.13
deps =
flake8
pep8-naming
Expand All @@ -45,7 +45,7 @@ deps =
commands = flake8 src/hypercorn/ tests/

[testenv:mypy]
basepython = python3.12
basepython = python3.13
deps =
mypy
pytest
Expand All @@ -54,7 +54,7 @@ commands =
mypy src/hypercorn/ tests/

[testenv:package]
basepython = python3.12
basepython = python3.13
deps =
poetry
twine
Expand Down