-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
165 lines (138 loc) · 4.34 KB
/
pyproject.toml
File metadata and controls
165 lines (138 loc) · 4.34 KB
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
[build-system]
requires = ["maturin>=1.5,<2.0"]
build-backend = "maturin"
[project]
name = "taskito"
version = "0.12.3"
description = "Rust-powered task queue for Python. No broker required."
requires-python = ">=3.10"
license = { file = "LICENSE" }
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Rust",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Distributed Computing",
]
dependencies = [
"cloudpickle>=3.0",
'tzdata; platform_system == "Windows"',
]
[project.urls]
Homepage = "https://github.com/ByteVeda/taskito"
Documentation = "https://docs.byteveda.org/taskito"
Repository = "https://github.com/ByteVeda/taskito"
Changelog = "https://docs.byteveda.org/taskito/docs/more/changelog"
Issues = "https://github.com/ByteVeda/taskito/issues"
[project.optional-dependencies]
dev = ["pytest>=8.0", "pytest-asyncio>=0.24", "pytest-cov>=5.0", "ruff>=0.11", "mypy>=1.15"]
fastapi = ["fastapi>=0.110.0", "pydantic>=2.5"]
django = ["django>=4.2"]
postgres = [] # PG driver is bundled in the Rust binary; extra exists for discoverability
redis = [] # Redis driver is bundled in the Rust binary; extra exists for discoverability
otel = ["opentelemetry-api", "opentelemetry-sdk"]
prometheus = ["prometheus-client"]
sentry = ["sentry-sdk"]
msgpack = ["msgpack"]
encryption = ["cryptography"]
flask = ["flask>=3.0"]
aws = ["boto3>=1.34"]
gcs = ["google-cloud-storage>=2.10"]
docs = ["playwright>=1.59"]
oauth = ["authlib>=1.7,<2", "requests>=2.31"]
[tool.maturin]
manifest-path = "crates/taskito-python/Cargo.toml"
python-source = "py_src"
module-name = "taskito._taskito"
features = ["extension-module", "postgres", "redis", "workflows"]
# Maturin's `python-source` only auto-packages Python sources (`.py`, `.pyi`,
# `py.typed`). The compiled dashboard SPA must be opted in explicitly so it
# ships in both the wheel and the sdist.
include = [
{ path = "py_src/taskito/static/dashboard/**/*", format = ["wheel", "sdist"] },
]
[project.scripts]
taskito = "taskito.cli:main"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
# -- Ruff --
[tool.ruff]
target-version = "py310"
line-length = 99
exclude = [".venv", "target", "dist", "build", "*.egg-info"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # bugbear
"SIM", # simplify
"RUF", # ruff-specific rules
]
[tool.ruff.lint.per-file-ignores]
"py_src/taskito/dashboard.py" = ["E501"] # embedded HTML/JS strings
[tool.ruff.lint.isort]
known-first-party = ["taskito"]
# -- Mypy --
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
check_untyped_defs = true
no_implicit_optional = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "taskito._taskito"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "cloudpickle"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["opentelemetry", "opentelemetry.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["fastapi", "fastapi.*", "pydantic"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "django.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "prometheus_client"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "sentry_sdk"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "msgpack"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "cryptography.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "flask"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "click"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["authlib", "authlib.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["joserfc", "joserfc.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["requests", "requests.*"]
ignore_missing_imports = true