-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
143 lines (125 loc) · 3.41 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "apiron"
version = "8.0.0-post.1"
description = "apiron helps you cook a tasty client for RESTful APIs. Just don't wash it with SOAP."
authors = [
{ name = "Ithaka Harbors, Inc.", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
"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 :: 3",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT License",
]
license = { file = "LICENSE" }
dynamic = ["readme"]
dependencies = [
"requests>=2.11.1",
"urllib3>=1.26.13",
]
[project.optional-dependencies]
docs = [
"sphinx>=7.2.2",
"sphinx-autobuild>=2021.3.14",
]
[project.urls]
Repository = "https://github.com/ithaka/apiron"
Changelog = "https://github.com/ithaka/apiron/blob/main/CHANGELOG.md"
Documentation = "https://apiron.readthedocs.io"
Issues = "https://github.com/ithaka/apiron/issues"
[tool.setuptools.dynamic]
readme = { file = "README.md", content-type = "text/markdown" }
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*"]
######################
# Tool configuration #
######################
[tool.black]
line-length = 120
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.9"
warn_unused_configs = true
show_error_context = true
pretty = true
namespace_packages = true
check_untyped_defs = true
[tool.coverage.run]
branch = true
source = ["apiron"]
omit = [
"tests/*",
]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = true
[tool.coverage.paths]
source = [
"src",
".tox/**/site-packages",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["-ra", "--strict-markers", "--cov"]
xfail_strict = true
[tool.tox]
envlist = ["py39", "py310", "py311", "py312", "py313"]
isolated_build = true
[tool.tox.env_run_base]
package = "wheel"
wheel_build_env = ".pkg"
deps = [
"pytest>=7.0.0",
"pytest-cov>=4.1.0",
"pytest-randomly>=3.15.0",
]
commands = [
["pytest", { replace = "posargs", default = [], extend = true }],
]
[tool.tox.env.docs]
extras = [
"docs",
]
commands = [
["sphinx-build", "-b", "html", "docs", "{envtmpdir}/docs"]
]
[tool.tox.env.lint]
skip_install = true
deps = [
"black",
"isort",
"ruff",
]
commands = [
["ruff", "check", { replace = "posargs", default = ["src", "tests"], extend = true }],
["black", { replace = "posargs", default = ["--check", "--diff", "src", "tests"], extend = true }],
["isort", { replace = "posargs", default = ["--check", "--diff", "src", "tests"], extend = true }],
]
[tool.tox.env.typecheck]
deps = [
{ replace = "ref", of = ["tool", "tox", "env_run_base", "deps"], extend = true },
"mypy<1.12.0", # https://github.com/python/mypy/issues/17960
"typing_extensions",
"types-requests",
"types-urllib3",
]
commands = [
["mypy", { replace = "posargs", default = ["src", "tests"], extend = true }],
]
passenv = ["TERM"]