-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
195 lines (166 loc) · 4.82 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "asyncz"
description = "The scheduler that nobody wants but every application needs."
long_description = "The scheduler that nobody wants but every application needs."
readme = "README.md"
requires-python = ">=3.9"
dynamic = ['version']
authors = [{ name = "Tiago Silva", email = "[email protected]" }]
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Typing :: Typed",
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Framework :: AnyIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"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 :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"cryptography",
"pydantic>=2.5.3,<3.0.0",
]
keywords = [
"asgi",
"asyncz",
"pydantic",
"starlette",
"fastapi",
"apscheduler",
"framework",
"scheduler",
"cron",
]
[project.urls]
Homepage = "https://github.com/dymmond/asyncz"
Documentation = "https://asyncz.dymmond.com/"
Changelog = "https://asyncz.dymmond.com/release-notes/"
Funding = "https://github.com/sponsors/tarsil"
Source = "https://github.com/dymmond/asyncz"
[tool.hatch.envs.default]
dependencies = ["pre-commit>=3.0.0,<5.0.0", "ipdb", "types-tzlocal"]
[project.optional-dependencies]
localtime=["tzlocal"]
loguru=["loguru>=0.7.0,<0.8.0"]
testing = [
"asyncz[localtime,loguru]",
"pymongo>=4.3.3,<5.0.0",
"pytest>=7.1.3,<9.0.0",
"pytest-cov >=2.12.0,<7.0.0",
"pytest-asyncio >=0.23.0,<1.0.0",
"pytest-loguru>=0.2.0,<1",
"redis>=4.4.0,<6.0.0",
"mypy>=0.982,<2.0.0",
"esmerald",
"starlette",
"lilya",
"sqlalchemy",
"httpx",
"pytz>=2022.6",
]
[tool.hatch.envs.default.scripts]
clean_pyc = "find . -type f -name \"*.pyc\" -delete"
clean_pycache = "find . -type d -name \"*__pycache__*\" -delete"
[tool.hatch.envs.test]
features = ["testing"]
[tool.hatch.envs.test.scripts]
# needs docker services running
check_types = "mypy -p asyncz"
[tool.hatch.envs.hatch-test]
features = ["testing"]
[tool.hatch.envs.hatch-test.env-vars]
ASYNCZ_STORE_ENCRYPTION_KEY = "{matrix:key:''}"
[[tool.hatch.envs.hatch-test.matrix]]
key = ["89389432893482832agasfsasdafjkdfasjkfdajkadsffdsiasiofsdifdlkalkdkfaskjfdfsakj"]
[[tool.hatch.envs.hatch-test.matrix]]
a = ["a"]
[tool.hatch.envs.docs]
dependencies = [
"mkautodoc >=0.2.0,<0.3.0",
"mkdocs >=1.1.2,<2.0.0",
"mkdocs-material >=9.0.13,<10.0.0",
"mdx-include >=1.4.2,<2.0.0",
"mkdocs-macros-plugin >=1.0.0,<2.0.0",
"mkdocstrings>=0.20.0,<0.30.0",
"pyyaml >=6.0,<7.0.0",
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build"
serve = "mkdocs serve --dev-addr localhost:8000"
[tool.hatch.version]
path = "asyncz/__init__.py"
[tool.mypy]
plugins = [
"pydantic.mypy"
]
warn_unused_configs = true
warn_unreachable = true
warn_return_any = true
strict = true
disallow_untyped_decorators = true
disallow_any_generics = false
implicit_reexport = false
show_error_codes = true
disallow_incomplete_defs = true
disable_error_code = "attr-defined"
warn_unused_ignores = true
warn_redundant_casts = true
[tool.ruff]
line-length=99
[tool.ruff.lint]
select = ["E", "W", "F", "C", "B", "I", "UP", "SIM"]
ignore = ["E501", "B008", "C901", "B026"]
exclude = ["docs_src/*", ".pdbrc"]
[tool.ruff.lint.isort]
known-third-party = ["esmerald", "pydantic", "starlette"]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.lint.pycodestyle]
max-line-length = 99
max-doc-length = 120
[[tool.mypy.overrides]]
module = "asyncz.tests.*"
ignore_missing_imports = true
check_untyped_defs = true
ignore_errors = true
[[tool.mypy.overrides]]
module = "docs_src.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"sqlalchemy.*",
"asyncpg",
"alembic",
"sqlalchemy_utils.*",
"slugify",
"pytz",
"backports.*"
]
ignore_missing_imports = true
ignore_errors = true
[tool.pytest.ini_options]
addopts = ["--strict-config", "--strict-markers"]
xfail_strict = true
junit_family = "xunit2"
[tool.hatch.build.targets.sdist]
include = ["/asyncz"]