-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
144 lines (131 loc) · 3.58 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "django-cast"
authors = [
{name = "Jochen Wersdörfer", email = "[email protected]"},
{name = "Dominik Geldmacher", email = "[email protected]"},
]
dynamic = ["version", "description"]
requires-python = ">=3.9"
keywords = [
"blog",
"podcast",
"video",
"audio"
]
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Internet",
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
dependencies = [
"crispy-bootstrap4", # bootstrap4 theme
"django", # Django itself
"django-crispy-forms", # bootstrap4 theme
"django-contrib-comments", # comments framework
"django-environ", # needed by pluggy and pytest
"django-filter", # filter section on blog index
"django-fluent-comments", # comments framework
"django-htmx", # htmx support
"django-model-utils", # model mixins
"django-threadedcomments", # comments framework
"django-vite", # vite support for things like gallery-modal web components
"Pygments", # syntax highlighting for code blocks
"python-akismet", # needed to be installed for comments, but is not used
"python-slugify", # slugify for page slugs
"rich", # progress bars for management commands
"setuptools", # required by django-model-utils for python >= 3.12 :/
"wagtail", # wagtail itself
]
[project.optional-dependencies]
test = [
"factory_boy",
"feedparser",
"pytest >= 6",
"pytest-cov >= 3",
"pytest-django",
"pytest-mock",
"pytest-randomly",
]
doc = [
"furo",
]
dev = [
"black",
"flake8",
"django-allauth", # for mypy
"django-environ",
"django_extensions",
"django-stubs[compatible-mypy]",
"isort",
"jupyter",
"mypy",
"tox",
"typer",
"types-python-slugify",
"types-requests",
]
[project.urls]
Documentation = "https://django-cast.readthedocs.io/en/latest/"
Source = "https://github.com/ephes/django-cast"
[tool.flit.module]
name = "cast"
[tool.isort]
profile = "black"
[tool.black]
line-length = 119
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"
minversion = "6.0"
testpaths = ["tests"]
filterwarnings = [
"ignore::wagtail.utils.deprecation.RemovedInWagtail70Warning",
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
addopts = [
"-ra",
"--reuse-db",
"--no-migrations",
"--randomly-seed=1234",
]
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
plugins = ["mypy_django_plugin.main"]
exclude = "[a-zA-Z]*/(migrations)|(example)/(.)*" # ignore migrations
[tool.django-stubs]
django_settings_module = "cast.settings"
[tool.coverage.run]
branch = true
source = ["cast"]
omit = [
"cast/migrations/*",
"cast/runner.py",
"cast/settings.py",
]
command_line = "runtests.py tests"
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
[mypy.plugins.django-stubs]
django_settings_module = "cast.settings"