-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
215 lines (193 loc) · 6.04 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[project]
name = "django-typer"
version = "3.0.0"
requires-python = ">=3.9,<4.0"
description = "Use Typer to define the CLI for your Django management commands."
authors = [
{name = "Brian Kohan", email = "bckohan@gmail.com"},
]
license = "MIT"
license-files = [ "LICENSE" ]
readme = "README.md"
repository = "https://github.com/django-commons/django-typer"
homepage = "https://django-typer.readthedocs.io"
keywords = ["django", "CLI", "management", "Typer", "commands"]
packages = [
{ include = "django_typer" }
]
dependencies = [
"Django>=3.2,<6.0",
"click>=8.1.8,<8.2",
# typer's release history is full of breaking changes for minor versions
# given the reliance on some of its private internals we peg the typer
# version very strictly to bug fix releases for specific minor lines.
"typer-slim>=0.14.0,<0.16.0",
"shellingham>=1.5.4,<2.0",
# we need this on 3.9 for ParamSpec
"typing-extensions>=3.7.4.3; python_version < '3.10'"
]
classifiers = [
"Environment :: Console",
"Framework :: Django",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 5 - Production/Stable",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"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",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Site Management",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"
]
[project.optional-dependencies]
# this should track typer's rich dependency, so long as our console
# patches still work - so be sure to test on the low end of the range
rich = ["rich>=10.11.0,<14.0.0"]
[project.urls]
"Homepage" = "https://django-typer.readthedocs.io"
"Documentation" = "https://django-typer.readthedocs.io"
"Repository" = "https://github.com/django-commons/django-typer"
"Issues" = "https://github.com/django-commons/django-typer/issues"
"Changelog" = "https://django-typer.readthedocs.io/en/latest/changelog.html"
"Code_of_Conduct" = "https://github.com/django-commons/membership/blob/main/CODE_OF_CONDUCT.md"
# for testing
[project.scripts]
manage = "tests.manage:main"
[tool.poetry.group.dev.dependencies]
ipdb = "^0.13.13"
ipython = [
{ version = "^8.20.0", markers = "python_version >= '3.10'" },
{ version = "^8.18.1", markers = "python_version >= '3.9'" }
]
pytest-django = "^4.8.0"
pytest-cov = "^6.0.0"
mypy = "^1.14"
aiohttp = "^3.9.1"
pytest-env = "^1.0.0"
django-stubs = ">=4.2.7"
pexpect = "^4.9.0"
pyright = {extras = ["nodejs"], version = "^1.1.357"}
ruff = "^0.9"
graphviz = "^0.20.3"
pluggy = "^1.5.0"
pywinpty = { version = "^2.0.14", markers = "sys_platform == 'win32'" }
pytest-timeout = "^2.3.1"
pre-commit = "^4.0.1"
django-stubs-ext = ">=4.2.7"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
furo = "2024.8.6"
sphinx-tabs = "^3.4.5"
readme-renderer = { extras = ["md"], version = "44"}
sphinxcontrib-typer = {extras = ["html", "pdf", "png"], version = "^0.5.1", markers="python_version >= '3.9'"}
doc8 = "^1.1.1"
Sphinx = [
{ version = "^8.0", markers = "python_version >= '3.10'" },
{ version = "^7.4", markers = "python_version < '3.10'" }
]
docutils = "^0.21"
sphinx-autobuild = "2024.10.3"
[tool.poetry.group.translate]
optional = true
[tool.poetry.group.translate.dependencies]
django-autotranslate = "^1.3.0"
google-api-python-client = "^2.160.0"
[tool.poetry.group.psycopg3]
optional = true
[tool.poetry.group.psycopg3.dependencies]
psycopg = "^3.1.8"
[tool.mypy]
# The mypy configurations: http://bit.ly/2zEl9WI
allow_redefinition = false
check_untyped_defs = true
disallow_untyped_decorators = false
disallow_any_explicit = false
disallow_any_generics = false
disallow_untyped_calls = true
ignore_errors = false
ignore_missing_imports = true
implicit_reexport = false
strict_optional = true
strict_equality = true
local_partial_types = true
no_implicit_optional = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
warn_no_return = true
# todo doc8 configuration here is not being picked up and doesnt seem to be working
# as expected - for now pass these parameters manually
[tool.doc8]
max-line-length = 100
sphinx = true
ignore = [ "D004" ]
[tool.pytest.ini_options]
# py.test options:
DJANGO_SETTINGS_MODULE = "tests.settings.base"
python_files = "test_*.py"
norecursedirs = "*.egg .eggs dist build docs .tox .git __pycache__ shellcompletion"
env = [
"TERMINAL_WIDTH=80",
]
addopts = [
"--strict-markers",
"--cov=django_typer",
"--cov-branch",
"--cov-report=term-missing:skip-covered"
]
markers = [
"rich: marks tests as requiring rich to be installed",
"no_rich: marks tests as requiring rich to not be installed"
]
# upstream typer has deprecated shell_completion in favor of autocomplete, but
# has not updated the autocomplete interface. We silence this warning for now
# because there is no way to fix it!
# https://github.com/fastapi/typer/pull/1006
filterwarnings = [
"ignore:.*shell_complete.*:DeprecationWarning:typer.core"
]
[tool.coverage.run]
branch = true
source = ["django_typer"]
concurrency = ["multiprocessing", "thread"]
parallel = true
relative_files = true
command_line = "-m pytest --cov=django_typer"
[tool.coverage.paths]
source = [
"django_typer"
]
[tool.pyright]
exclude = ["tests/**/*"]
include = [
"django_typer"
]
[tool.ruff]
line-length = 88
exclude = [
"doc",
"dist",
"examples"
]
[tool.ruff.lint]
exclude = [
"tests/**/*"
]