-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
133 lines (119 loc) · 3.3 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
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "django-privates"
description = "Simple private media integration for Django"
authors = [
{name = "Sergei Maertens", email = "[email protected]"}
]
readme = "README.rst"
license = {file = "LICENSE"}
keywords = ["django", "media", "private", "storage"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.10"
dependencies = [
"django>=4.2",
"django-sendfile2>=0.5"
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/sergei-maertens/django-privates"
Documentation = "https://django-privates.readthedocs.io/en/latest/"
"Bug Tracker" = "https://github.com/sergei-maertens/django-privates/issues"
"Source Code" = "https://github.com/sergei-maertens/django-privates"
[project.optional-dependencies]
tests = [
"Pillow",
"pytest",
"pytest-pythonpath",
"pytest-django",
"pytest-cov",
"tox",
"pyquery",
"isort",
"black",
"django-stubs[compatible-mypy]",
]
docs = [
"sphinx",
"sphinx-rtd-theme",
]
release = [
"bump-my-version",
]
[tool.setuptools.dynamic]
version = {attr = "privates.__version__"}
[tool.setuptools.packages.find]
include = ["privates*"]
namespaces = true
[tool.isort]
profile = "black"
combine_as_imports = true
skip = ["env", ".tox", ".history", ".eggs"]
known_django = "django"
known_first_party="privates"
sections=["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.pytest.ini_options]
testpaths = ["tests"]
DJANGO_SETTINGS_MODULE = "testapp.settings"
[tool.bumpversion]
current_version = "3.0.0"
files = [
{filename = "privates/__init__.py"},
{filename = "docs/conf.py"},
]
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:
- # dash separator for pre-release section
(?P<pre_l>[a-zA-Z-]+)\\. # pre/post-release label
(?P<pre_n>0|[1-9]\\d*) # pre/post-release version number
)? # pre/post-release section is optional
"""
serialize = [
"{major}.{minor}.{patch}-{pre_l}.{pre_n}",
"{major}.{minor}.{patch}",
]
[tool.bumpversion.parts.pre_l]
values = ["dev", "beta", "rc", "post"]
optional_value = "post"
[tool.coverage.run]
branch = true
source = ["privates"]
omit = [
# migrations run while django initializes the test db
"*/migrations/*",
"testapp/*",
"tests/*",
]
[tool.coverage.report]
exclude_also = [
"if (typing\\.)?TYPE_CHECKING:",
"@(typing\\.)?overload",
"class .*\\(.*Protocol.*\\):",
"@(abc\\.)?abstractmethod",
"raise NotImplementedError",
"\\.\\.\\.",
]
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
[tool.django-stubs]
django_settings_module = "testapp.settings"
[[tool.mypy.overrides]]
module = "django_sendfile"
ignore_missing_imports = true