-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
74 lines (65 loc) · 1.76 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[build-system]
requires = ["hatchling>=1.18"]
build-backend = "hatchling.build"
[project]
name = "tornado-problem-details"
version = "1.1.0"
description = "RFC-7807 Error Documents for Tornado"
readme = "README.rst"
license = "BSD-3-Clause"
license-files = { paths = ["LICENSE.txt"] }
requires-python = ">=3.7"
authors = [{ name = "Dave Shawley", email = "daveshawley@gmail.com"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
dependencies = [
"tornado>=6",
]
[optional-dependencies]
examples = ["jsonschema", "pyyaml"]
[project.urls]
Homepage = "https://githib.com/dave-shawley/tornado-problem-details"
[tool.hatch.envs.default]
dependencies = [
"coverage[toml]",
"flake8",
"flake8-fixme",
"flake8-print",
"flake8-pyproject",
"pytest>8.1,<8.2", # https://github.com/tornadoweb/tornado/pull/3382
"python-docs-theme",
"readme-renderer",
"sphinx",
"twine",
"wheel",
"yapf==0.26.0",
]
[tool.hatch.envs.default.scripts]
lint = [
"flake8 problemdetails tests.py",
"yapf -dr problemdetails tests.py",
]
test = [
"coverage run -m pytest tests.py",
"coverage report",
"coverage xml -o ./build/coverage.xml",
]
[tool.hatch.build.targets.wheel]
packages = ["problemdetails"]
[tool.coverage.report]
show_missing = true
[tool.coverage.run]
branch = true
source = ["problemdetails"]
[tool.flake8]
exclude = ["build", "dist", "env"]