Skip to content

Commit 44193d8

Browse files
committed
project cleanup
1 parent e0497f9 commit 44193d8

File tree

4 files changed

+26
-30
lines changed

4 files changed

+26
-30
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,17 @@ jobs:
1010
tox:
1111
runs-on: ubuntu-latest
1212
strategy:
13-
max-parallel: 5
1413
matrix:
1514
python-version:
1615
- "3.10"
1716
- "3.11"
1817
- "3.12"
1918
- "3.13"
2019
- "3.14"
21-
- "pypy3.11"
2220

2321
steps:
24-
- uses: actions/checkout@v2
25-
- uses: actions/setup-python@v5
22+
- uses: actions/checkout@v6
23+
- uses: actions/setup-python@v6
2624
with:
2725
python-version: ${{ matrix.python-version }}
2826
- name: Install tox
@@ -35,7 +33,7 @@ jobs:
3533
- name: Test with tox
3634
run: |
3735
tox --parallel 0
38-
- uses: codecov/codecov-action@v5
36+
- uses: codecov/codecov-action@v6
3937
with:
4038
token: ${{ secrets.CODECOV_TOKEN }}
4139
files: ./coverage.xml

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ dev
1212
**API Changes (Backward Compatible)**
1313

1414
- Support for Python 3.14 has been added.
15-
- Support for PyPy 3.11 has been added.
1615

1716
**Bugfixes**
1817

1918
- Headers marked as `sensitive` will no longer log their value at DEBUG level. Instead a placeholder value of `SENSITIVE_REDACTED` is logged.
2019
- Fixed perfect match missed for headers with empty values.
2120

21+
2222
4.1.0 (2025-01-22)
2323
------------------
2424

pyproject.toml

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://packaging.python.org/en/latest/specifications/pyproject-toml/
33

44
[build-system]
5-
requires = ["setuptools"]
5+
requires = ["setuptools>=82", "wheel>=0.46.3"]
66
build-backend = "setuptools.build_meta"
77

88
[project]
@@ -37,7 +37,6 @@ classifiers = [
3737
"Programming Language :: Python :: 3.13",
3838
"Programming Language :: Python :: 3.14",
3939
"Programming Language :: Python :: Implementation :: CPython",
40-
"Programming Language :: Python :: Implementation :: PyPy",
4140
]
4241

4342
[project.urls]
@@ -53,29 +52,29 @@ dev = [
5352
{ include-group = "packaging" },
5453
{ include-group = "docs" },
5554
]
55+
5656
testing = [
57-
"pytest>=8.3.3,<9",
58-
"pytest-cov>=6.0.0,<7",
59-
"pytest-xdist>=3.6.1,<4",
60-
"hypothesis>=6.119.4,<7",
57+
"pytest>=9.0.3,<10",
58+
"pytest-cov>=7.1.0,<8",
59+
"pytest-xdist>=3.8.0,<4",
60+
"hypothesis>=6.152.1,<7",
6161
]
6262

6363
linting = [
64-
"ruff>=0.8.0,<1",
65-
"mypy>=1.13.0,<2",
66-
"typing_extensions>=4.12.2",
64+
"ruff>=0.15.11,<1",
65+
"mypy>=1.20.1,<2",
66+
"typing_extensions>=4.15.0,<5",
6767
]
6868

6969
packaging = [
70-
"check-manifest==0.50",
71-
"readme-renderer==44.0",
72-
"build>=1.3.0,<2",
70+
"check-manifest==0.51",
71+
"build>=1.4.2,<2",
7372
"twine>=6.2.0,<7",
74-
"wheel>=0.45.1,<1",
73+
"wheel>=0.46.3,<1",
7574
]
7675

7776
docs = [
78-
"sphinx>=7.4.7,<9",
77+
"sphinx>=9.1.0,<10",
7978
]
8079

8180
[tool.setuptools.packages.find]
@@ -89,7 +88,7 @@ version = { attr = "hpack.__version__" }
8988

9089
[tool.ruff]
9190
line-length = 150
92-
target-version = "py39"
91+
target-version = "py310"
9392
format.preview = true
9493
format.docstring-code-line-length = 100
9594
format.docstring-code-format = true
@@ -123,13 +122,13 @@ lint.ignore = [
123122
]
124123
lint.isort.required-imports = [ "from __future__ import annotations" ]
125124

125+
[tool.pytest]
126+
testpaths = [ "tests" ]
127+
126128
[tool.mypy]
127129
show_error_codes = true
128130
strict = true
129131

130-
[tool.pytest.ini_options]
131-
testpaths = [ "tests" ]
132-
133132
[tool.coverage.run]
134133
branch = true
135134
source = [ "hpack" ]
@@ -150,16 +149,15 @@ source = [
150149

151150
[tool.tox]
152151
min_version = "4.23.2"
153-
env_list = [ "py310", "py311", "py312", "py313", "py314", "pypy311", "lint", "docs", "packaging" ]
152+
env_list = [ "py310", "py311", "py312", "py313", "py314", "lint", "docs", "packaging" ]
154153

155154
[tool.tox.gh-actions]
156155
python = """
157-
3.10: py310, h2spec, lint, docs, packaging
156+
3.10: py310, h2spec, lint, packaging
158157
3.11: py311
159158
3.12: py312
160-
3.13: py313
159+
3.13: py313, docs
161160
3.14: py314
162-
pypy3.11: pypy311
163161
"""
164162

165163
[tool.tox.env_run_base]
@@ -209,7 +207,7 @@ commands = [
209207
[tool.tox.env.bench]
210208
deps = [
211209
"{[tool.tox.env]deps}",
212-
"pytest-benchmark==3.2.3",
210+
"pytest-benchmark==5.2.3",
213211
]
214212
commands = [
215213
["pytest {toxinidir}/bench/ --benchmark-only --benchmark-group-by=name --benchmark-autosave --benchmark-compare --benchmark-min-rounds=500000"],

src/hpack/struct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing import TYPE_CHECKING, Any
77

88
if TYPE_CHECKING:
9-
from typing_extensions import Self, TypeAlias # pragma: no cover
9+
from typing import Self, TypeAlias # pragma: no cover
1010

1111

1212
class HeaderTuple(tuple[bytes, bytes]):

0 commit comments

Comments
 (0)