-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathpyproject.toml
167 lines (148 loc) · 4.36 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
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv-dynamic-versioning]
pattern = "default-unprefixed"
[tool.hatch.build.targets.sdist]
exclude = ["procrastinate/demos"]
[tool.hatch.build.targets.wheel]
exclude = ["procrastinate/demos"]
[project]
name = "procrastinate"
dynamic = ["version"]
description = "Postgres-based distributed task processing library"
license = { file = "LICENSE.md" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
]
authors = [
{ name = "Joachim Jablon", email = "[email protected]" },
{ name = "Eric Lemoine" },
{ name = "Kai Schlamp" },
]
readme = "README.md"
keywords = ["postgres", "task-queue"]
requires-python = ">=3.9"
dependencies = [
"psycopg[pool]",
"asgiref",
"attrs",
"contextlib2; python_version < '3.10'",
"croniter",
"python-dateutil",
"typing-extensions",
]
[project.optional-dependencies]
django = ["django>=2.2"]
sqlalchemy = ["sqlalchemy~=2.0"]
aiopg = ["aiopg", "psycopg2-binary"]
psycopg2 = ["psycopg2-binary"]
sphinx = ["sphinx"]
[project.urls]
homepage = "https://procrastinate.readthedocs.io/"
source = "https://github.com/procrastinate-org/procrastinate/"
documentation = "https://procrastinate.readthedocs.io/"
issues = "https://github.com/procrastinate-org/procrastinate/issues"
changelog = "https://github.com/procrastinate-org/procrastinate/releases"
[project.scripts]
procrastinate = 'procrastinate.cli:main'
[tool.uv]
cache-keys = [{ git = { commit = true, tags = true } }]
required-version = ">=0.5.21"
default-groups = ["release", "lint_format", "pg_implem", "test", "docs"]
[dependency-groups]
types = ["django-stubs"]
release = ["dunamai"]
lint_format = ["ruff"]
pg_implem = [
"aiopg",
"sqlalchemy",
"psycopg2-binary",
"psycopg[binary,pool]; sys_platform != 'darwin' or platform_machine != 'arm64'",
"psycopg[binary,pool]; sys_platform == 'darwin' and platform_machine == 'arm64' and python_version >= '3.10'",
"psycopg[pool]; sys_platform == 'darwin' and platform_machine == 'arm64' and python_version < '3.10'",
]
test = [
"pytest-asyncio",
"pytest-cov",
"pytest-django",
"pytest-mock",
"migra",
# migra depends on schemainspect, which has an implicit dependency on setuptools
# (pkg_resources).
"setuptools",
]
docs = [
"django>=2.2",
"furo",
"Sphinx",
"sphinx-copybutton",
"sphinx-github-changelog",
"sphinxcontrib-programoutput",
"sphinxcontrib-mermaid",
"myst-parser",
]
dev = ["ruff", "pyright", "doc8"]
[tool.pytest.ini_options]
addopts = ["-vv", "--strict-markers", "-rfE", "--reuse-db"]
testpaths = [
"tests/unit",
"tests/integration",
"tests/acceptance",
"tests/migration",
]
# https://adamj.eu/tech/2025/01/08/django-silence-exception-ignored-outputwrapper/
# https://code.djangoproject.com/ticket/36056
filterwarnings = """
error
ignore:.+django.core.management.base.OutputWrapper:pytest.PytestUnraisableExceptionWarning
ignore:unclosed.+:ResourceWarning
"""
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
django_find_project = false
DJANGO_SETTINGS_MODULE = "tests.acceptance.django_settings"
pythonpath = ["."]
[tool.coverage.run]
relative_files = true
omit = [
"procrastinate/contrib/django/migrations/*",
# It really wouldn't make sense to test the admin config, I guess ?
"procrastinate/contrib/django/admin.py",
]
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"coverage: exclude",
"if TYPE_CHECKING:",
"[ ]+\\.\\.\\.$",
]
[tool.pyright]
exclude = ["tests", ".venv", "scripts"]
[tool.ruff]
target-version = "py39"
extend-exclude = [".venv"]
[tool.ruff.lint]
extend-select = [
"UP", # pyupgrade
"I", # isort
"E", # pycodestyle errors
"W", # pycodestyle warnings
"RUF", # ruff
]
fixable = ["ALL"]
extend-ignore = [
"E501", # line too long
# It's not exactly false but it's not supported enough by our dependencies,
# so ruff is fighting with Pyright on this.
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.doc8]
max-line-length = 88
ignore-path = "docs/_build,.venv"