Skip to content

Commit f8ee36b

Browse files
committed
modernize everything
1 parent 131b44c commit f8ee36b

File tree

396 files changed

+129
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

396 files changed

+129
-108
lines changed

.github/dependabot.yml

-7
This file was deleted.

CHANGELOG.rst

+3-4

MANIFEST.in

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
graft src/hpack
22
graft docs
3-
graft test
3+
graft tests
4+
45
prune bench
56
prune docs/build
67
prune utils
8+
79
exclude tasks.py
8-
exclude test/test_fixtures/*/*.json
9-
exclude test/test_hpack_integration.py
10-
include README.rst LICENSE CHANGELOG.rst CONTRIBUTORS.rst tox.ini
10+
exclude tests/test_fixtures/*/*.json
11+
exclude tests/test_hpack_integration.py
12+
13+
include README.rst LICENSE CHANGELOG.rst CONTRIBUTORS.rst pyproject.toml tox.ini
14+
1115
global-exclude *.pyc *.pyo *.swo *.swp *.map *.yml *.DS_Store

pyproject.toml

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
2+
# https://packaging.python.org/en/latest/specifications/pyproject-toml/
3+
4+
[build-system]
5+
requires = ["setuptools"]
6+
build-backend = "setuptools.build_meta"
7+
8+
[project]
9+
name = "hpack"
10+
description = "Pure-Python HPACK header compression"
11+
readme = { file = "README.rst", content-type = "text/x-rst" }
12+
license = { file = "LICENSE" }
13+
14+
authors = [
15+
{ name = "Cory Benfield", email = "[email protected]" }
16+
]
17+
maintainers = [
18+
{ name = "Thomas Kriechbaumer", email = "[email protected]" },
19+
]
20+
21+
requires-python = ">=3.9"
22+
dependencies = []
23+
dynamic = ["version"]
24+
25+
# For a list of valid classifiers, see https://pypi.org/classifiers/
26+
classifiers = [
27+
"Development Status :: 5 - Production/Stable",
28+
"Intended Audience :: Developers",
29+
"License :: OSI Approved :: MIT License",
30+
"Programming Language :: Python",
31+
"Programming Language :: Python :: 3 :: Only",
32+
"Programming Language :: Python :: 3",
33+
"Programming Language :: Python :: 3.9",
34+
"Programming Language :: Python :: 3.10",
35+
"Programming Language :: Python :: 3.11",
36+
"Programming Language :: Python :: 3.12",
37+
"Programming Language :: Python :: 3.13",
38+
"Programming Language :: Python :: Implementation :: CPython",
39+
"Programming Language :: Python :: Implementation :: PyPy",
40+
]
41+
42+
[project.urls]
43+
"Homepage" = "https://github.com/python-hyper/hpack/"
44+
"Bug Reports" = "https://github.com/python-hyper/hpack/issues"
45+
"Source" = "https://github.com/python-hyper/hpack/"
46+
"Documentation" = "https://python-hyper.org/"
47+
48+
[dependency-groups]
49+
testing = [
50+
"pytest>=8.3.3,<9",
51+
"pytest-cov>=6.0.0,<7",
52+
"pytest-xdist>=3.6.1,<4",
53+
"hypothesis>=6.119.4,<7",
54+
]
55+
56+
linting = [
57+
"ruff>=0.8.0,<1",
58+
"mypy>=1.13.0,<2",
59+
]
60+
61+
packaging = [
62+
"check-manifest==0.50",
63+
"readme-renderer==44.0",
64+
"build>=1.2.2,<2",
65+
"twine>=5.1.1,<6",
66+
"wheel>=0.45.0,<1",
67+
]
68+
69+
docs = [
70+
"sphinx>=7.4.7,<9",
71+
]
72+
73+
[tool.setuptools.packages.find]
74+
where = [ "src" ]
75+
76+
[tool.setuptools.package-data]
77+
hpack = [ "py.typed" ]
78+
79+
[tool.setuptools.dynamic]
80+
version = { attr = "hpack.__version__" }
81+
82+
[tool.ruff]
83+
line-length = 140
84+
target-version = "py39"
85+
86+
[tool.pytest.ini_options]
87+
testpaths = [ "tests" ]
88+
89+
[tool.coverage.run]
90+
branch = true
91+
source = [ "hpack" ]
92+
93+
[tool.coverage.report]
94+
fail_under = 100
95+
show_missing = true
96+
exclude_lines = [
97+
"pragma: no cover",
98+
"raise NotImplementedError()",
99+
]
100+
101+
[tool.coverage.paths]
102+
source = [
103+
"src/",
104+
".tox/**/site-packages/",
105+
]

setup.cfg

-23
This file was deleted.

setup.py

-50
This file was deleted.

test/conftest.py tests/conftest.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# This pair of generator expressions are pretty lame, but building lists is a
1111
# bad idea as I plan to have a substantial number of tests here.
1212
story_directories = (
13-
os.path.join('test/test_fixtures', d)
14-
for d in os.listdir('test/test_fixtures')
13+
os.path.join('tests/test_fixtures', d)
14+
for d in os.listdir('tests/test_fixtures')
1515
)
1616
story_files = (
1717
os.path.join(storydir, name)
@@ -20,8 +20,8 @@
2020
if 'raw-data' not in storydir
2121
)
2222
raw_story_files = (
23-
os.path.join('test/test_fixtures/raw-data', name)
24-
for name in os.listdir('test/test_fixtures/raw-data')
23+
os.path.join('tests/test_fixtures/raw-data', name)
24+
for name in os.listdir('tests/test_fixtures/raw-data')
2525
)
2626

2727

File renamed without changes.

0 commit comments

Comments
 (0)