-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
145 lines (132 loc) · 3.54 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
144
145
[project]
name = "apitally"
description = "Simple API monitoring & analytics for REST APIs built with FastAPI, Flask, Django, Starlette and Litestar."
authors = [
{ name = "Apitally", email = "[email protected]" },
]
readme = "README.md"
license = { text = "MIT License" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: FastAPI",
"Framework :: Flask",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
"Topic :: Software Development",
"Topic :: System :: Monitoring",
"Typing :: Typed",
]
requires-python = ">=3.8,<4.0"
dependencies = [
"backoff>=2.0.0",
]
dynamic = ["version"]
[project.optional-dependencies]
django_ninja = [
"django>=2.2,<5; python_version<'3.10'",
"django>=2.2; python_version>='3.10'",
"django-ninja>=0.18.0",
"requests>=2.26.0",
]
django_rest_framework = [
"django>=2.2,<5; python_version<'3.10'",
"django>=2.2; python_version>='3.10'",
"djangorestframework>=3.10.0",
"uritemplate>=3.0.0", # required for schema generation
"inflection>=0.5.1", # required for schema generation
"requests>=2.26.0",
]
fastapi = [
"fastapi>=0.88.0",
"starlette>=0.22.0,<1.0.0",
"httpx>=0.22.0",
]
flask = [
"flask>=2.0.0",
"requests>=2.26.0",
]
litestar = [
"litestar>=2.0.0",
"httpx>=0.22.0",
]
sentry = [
"sentry-sdk>=2.2.0",
]
starlette = [
"starlette>=0.21.0,<1.0.0",
"httpx>=0.22.0",
]
[project.urls]
Homepage = "https://apitally.io"
Documentation = "https://docs.apitally.io"
Repository = "https://github.com/apitally/apitally-py"
[dependency-groups]
dev = [
"ipykernel~=6.29.0",
"mypy~=1.13.0",
"pre-commit~=3.5.0; python_version<'3.9'",
"pre-commit~=4.0.1; python_version>='3.9'",
"ruff~=0.7.0",
]
test = [
"pytest~=7.4.4; python_version<'3.9'",
"pytest~=8.3.3; python_version>='3.9'",
"pytest-asyncio~=0.21.2",
"pytest-cov~=5.0.0; python_version<'3.9'",
"pytest-cov~=6.0.0; python_version>='3.9'",
"pytest-httpx~=0.22.0; python_version<'3.9'",
"pytest-httpx~=0.33.0; python_version>='3.9'",
"pytest-mock~=3.14.0",
"requests-mock~=1.12.1",
]
types = [
"django-types",
"djangorestframework-types",
"types-colorama",
"types-docutils",
"types-pygments",
"types-pyyaml",
"types-requests",
"types-setuptools",
"types-six",
"types-ujson",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.uv]
default-groups = ["dev", "test", "types"]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
ignore = ["E501"]
select = ["E", "F", "W", "I"]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.coverage.run]
source = ["apitally"]
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"]