|
| 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 = "hyperframe" |
| 10 | +description = "HTTP/2 framing layer for Python" |
| 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/hyperframe/" |
| 44 | +"Bug Reports" = "https://github.com/python-hyper/hyperframe/issues" |
| 45 | +"Source" = "https://github.com/python-hyper/hyperframe/" |
| 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 | +] |
| 54 | + |
| 55 | +linting = [ |
| 56 | + "ruff>=0.8.0,<1", |
| 57 | + "mypy>=1.13.0,<2", |
| 58 | +] |
| 59 | + |
| 60 | +packaging = [ |
| 61 | + "check-manifest==0.50", |
| 62 | + "readme-renderer==44.0", |
| 63 | + "build>=1.2.2,<2", |
| 64 | + "twine>=5.1.1,<6", |
| 65 | + "wheel>=0.45.0,<1", |
| 66 | +] |
| 67 | + |
| 68 | +docs = [ |
| 69 | + "sphinx>=7.4.7,<9", |
| 70 | +] |
| 71 | + |
| 72 | +[tool.setuptools.packages.find] |
| 73 | +where = [ "src" ] |
| 74 | + |
| 75 | +[tool.setuptools.package-data] |
| 76 | +hyperframe = [ "py.typed" ] |
| 77 | + |
| 78 | +[tool.setuptools.dynamic] |
| 79 | +version = { attr = "hyperframe.__version__" } |
| 80 | + |
| 81 | +[tool.check-manifest] |
| 82 | +ignore = [ |
| 83 | + "Makefile", |
| 84 | + "tests/http2-frame-test-case", |
| 85 | +] |
| 86 | + |
| 87 | +[tool.ruff] |
| 88 | +line-length = 140 |
| 89 | +target-version = "py39" |
| 90 | + |
| 91 | +[tool.coverage.run] |
| 92 | +branch = true |
| 93 | +source = [ "hyperframe" ] |
| 94 | + |
| 95 | +[tool.coverage.report] |
| 96 | +fail_under = 100 |
| 97 | +show_missing = true |
| 98 | +exclude_lines = [ |
| 99 | + "pragma: no cover", |
| 100 | + "raise NotImplementedError()", |
| 101 | +] |
0 commit comments