Skip to content

Commit

Permalink
modernize everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriechi committed Nov 23, 2024
1 parent 131b44c commit f8ee36b
Show file tree
Hide file tree
Showing 396 changed files with 129 additions and 108 deletions.
7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

7 changes: 3 additions & 4 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ dev
- Support for Python 3.11 has been added.
- Support for Python 3.12 has been added.
- Support for Python 3.13 has been added.

**Bugfixes**

-
- Optimization of headers into bytes encoding.
- Added type hints.
- Updated packaging and testing infrastructure.


4.0.0 (2020-08-30)
Expand Down
12 changes: 8 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
graft src/hpack
graft docs
graft test
graft tests

prune bench
prune docs/build
prune utils

exclude tasks.py
exclude test/test_fixtures/*/*.json
exclude test/test_hpack_integration.py
include README.rst LICENSE CHANGELOG.rst CONTRIBUTORS.rst tox.ini
exclude tests/test_fixtures/*/*.json
exclude tests/test_hpack_integration.py

include README.rst LICENSE CHANGELOG.rst CONTRIBUTORS.rst pyproject.toml tox.ini

global-exclude *.pyc *.pyo *.swo *.swp *.map *.yml *.DS_Store
105 changes: 105 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
# https://packaging.python.org/en/latest/specifications/pyproject-toml/

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "hpack"
description = "Pure-Python HPACK header compression"
readme = { file = "README.rst", content-type = "text/x-rst" }
license = { file = "LICENSE" }

authors = [
{ name = "Cory Benfield", email = "[email protected]" }
]
maintainers = [
{ name = "Thomas Kriechbaumer", email = "[email protected]" },
]

requires-python = ">=3.9"
dependencies = []
dynamic = ["version"]

# For a list of valid classifiers, see https://pypi.org/classifiers/
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]

[project.urls]
"Homepage" = "https://github.com/python-hyper/hpack/"
"Bug Reports" = "https://github.com/python-hyper/hpack/issues"
"Source" = "https://github.com/python-hyper/hpack/"
"Documentation" = "https://python-hyper.org/"

[dependency-groups]
testing = [
"pytest>=8.3.3,<9",
"pytest-cov>=6.0.0,<7",
"pytest-xdist>=3.6.1,<4",
"hypothesis>=6.119.4,<7",
]

linting = [
"ruff>=0.8.0,<1",
"mypy>=1.13.0,<2",
]

packaging = [
"check-manifest==0.50",
"readme-renderer==44.0",
"build>=1.2.2,<2",
"twine>=5.1.1,<6",
"wheel>=0.45.0,<1",
]

docs = [
"sphinx>=7.4.7,<9",
]

[tool.setuptools.packages.find]
where = [ "src" ]

[tool.setuptools.package-data]
hpack = [ "py.typed" ]

[tool.setuptools.dynamic]
version = { attr = "hpack.__version__" }

[tool.ruff]
line-length = 140
target-version = "py39"

[tool.pytest.ini_options]
testpaths = [ "tests" ]

[tool.coverage.run]
branch = true
source = [ "hpack" ]

[tool.coverage.report]
fail_under = 100
show_missing = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError()",
]

[tool.coverage.paths]
source = [
"src/",
".tox/**/site-packages/",
]
23 changes: 0 additions & 23 deletions setup.cfg

This file was deleted.

50 changes: 0 additions & 50 deletions setup.py

This file was deleted.

8 changes: 4 additions & 4 deletions test/conftest.py → tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# This pair of generator expressions are pretty lame, but building lists is a
# bad idea as I plan to have a substantial number of tests here.
story_directories = (
os.path.join('test/test_fixtures', d)
for d in os.listdir('test/test_fixtures')
os.path.join('tests/test_fixtures', d)
for d in os.listdir('tests/test_fixtures')
)
story_files = (
os.path.join(storydir, name)
Expand All @@ -20,8 +20,8 @@
if 'raw-data' not in storydir
)
raw_story_files = (
os.path.join('test/test_fixtures/raw-data', name)
for name in os.listdir('test/test_fixtures/raw-data')
os.path.join('tests/test_fixtures/raw-data', name)
for name in os.listdir('tests/test_fixtures/raw-data')
)


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f8ee36b

Please sign in to comment.