Debian Codegraph @

pyproject.toml

raw
1 [project]
2 name = "django-guardian"
3 version = "3.5.0"
4 description = "Per object permissions for Django"
5 keywords = ["django", "permissions", "authorization", "object", "row", "level"]
6 readme = "README.md"
7 license = { text = "BSD-2-Clause" }
8 requires-python = ">=3.10"
9 classifiers = [
10 "Development Status :: 5 - Production/Stable",
11 "Intended Audience :: Developers",
12 'Environment :: Web Environment',
13 "Topic :: Software Development :: Libraries :: Python Modules",
14 "License :: OSI Approved :: BSD License",
15 'Framework :: Django',
16 'Framework :: Django :: 3.2',
17 'Framework :: Django :: 4.1',
18 'Framework :: Django :: 4.2',
19 'Framework :: Django :: 5.0',
20 'Framework :: Django :: 5.1',
21 'Framework :: Django :: 5.2',
22 'Framework :: Django :: 6.0',
23 'Programming Language :: Python',
24 "Programming Language :: Python :: 3 :: Only",
25 "Programming Language :: Python :: 3.10",
26 "Programming Language :: Python :: 3.11",
27 "Programming Language :: Python :: 3.12",
28 "Programming Language :: Python :: 3.13",
29 "Programming Language :: Python :: 3.14",
30 "Operating System :: OS Independent",
31 'Topic :: Security',
32 ]
33 authors = [
34 # In order of first contribution...
35 # New contributors please add your name at the end :)
36 { name = "Lukasz Balcerzak", email = "[email protected]" },
37 { name = "Cesar Canassa", email = "[email protected]" },
38 { name = "Vincent Driessen", email = "[email protected]" },
39 { name = "John Hensley", email = "[email protected]" },
40 { name = "Ramanan Sivaranjan", email = "[email protected]" },
41 { name = "Woosuk Suh", email = "[email protected]" },
42 { name = "Bojan Mihelac", email = "[email protected]" },
43 { name = "Rafael Ponieman", email = "[email protected]" },
44 { name = "Daniel Sokolowski", email = "[email protected]" },
45 { name = "Ali Lozano", email = "[email protected]" },
46 { name = "BJ Dierkes", email = "[email protected]" },
47 { name = "Rach Belaid", email = "[email protected]" },
48 { name = "Michael Crosby", email = "[email protected]" },
49 { name = "Greg Hinch", email = "[email protected]" },
50 { name = "Aram Dulyan", email = "[email protected]" },
51 { name = "Florian Hahn", email = "[email protected]" },
52 { name = "Piotr Kilczuk", email = "[email protected]" },
53 { name = "Reavis Sutphin-Gray", email = "[email protected]" },
54 { name = "Adrián López", email = "[email protected]" },
55 { name = "Jameel Al-Aziz", email = "[email protected]" },
56 { name = "John P. Neumann", email = "[email protected]" },
57 { name = "Andreas Madsack", email = "[email protected]" },
58 { name = "Ivan Kharlamov", email = "[email protected]" },
59 { name = "Miguel de Val-Borro", email = "[email protected]" },
60 { name = "Jan Nakladal", email = "[email protected]" },
61 { name = "Yonel Ceruto", email = "[email protected]" },
62 { name = "Luke Faraone", email = "[email protected]" },
63 { name = "John Wegis", email = "[email protected]" },
64 { name = "Florentin Sardan", email = "[email protected]" },
65 { name = "Geoff Greer", email = "[email protected]" },
66 { name = "Hans Larsen", email = "[email protected]" },
67 { name = "Fabio C. Barrionuevo da Luz", email = "[email protected]" },
68 { name = "Tomasz Wsuł", email = "[email protected]" },
69 { name = "Xavier Ordoquy", email = "[email protected]" },
70 { name = "Joshua Bonnett", email = "[email protected]" },
71 { name = "Jernej Kos", email = "[email protected]" },
72 { name = "Bruno Ribeiro da Silva", email = "[email protected]" },
73 { name = "Cezar Jenkins", email = "[email protected]" },
74 { name = "Warren Volz", email = "[email protected]" },
75 { name = "Omer Katz", email = "[email protected]" },
76 { name = "Vishal Lal", email = "[email protected]" },
77 { name = "Steven DeMartini", email = "[email protected]" },
78 { name = "zauddelig", email = "[email protected]" },
79 { name = "Remco Wendt", email = "[email protected]" },
80 { name = "Kevin London", email = "[email protected]" },
81 { name = "Kouhei Maeda", email = "[email protected]" },
82 { name = "Samuel Sutch", email = "[email protected]" },
83 { name = "Morgan Aubert", email = "[email protected]" },
84 { name = "Brian May", email = "[email protected]" },
85 { name = "Troy Grosfield", email = "[email protected]" },
86 { name = "Michael Drescher", email = "[email protected]" },
87 { name = "Verena Jaspersen", email = "[email protected]" },
88 { name = "Bertrand Svetchine", email = "[email protected]" },
89 { name = "Frank Wickström", email = "[email protected]" },
90 { name = "George Karakostas", email = "[email protected]" },
91 { name = "Adam Dobrawy", email = "[email protected]" },
92 { name = "Jeff Hackshaw", email = "[email protected]" },
93 { name = "Chase Bennett", email = "[email protected]" },
94 { name = "Jonny Arnold", email = "[email protected]" },
95 { name = "Davis Raymond Muro", email = "[email protected]" },
96 { name = "Richard de Wit", email = "[email protected]" },
97 { name = "Pedro Rojas Gavidia", email = "[email protected]" },
98 { name = "Rainshaw Gao", email = "[email protected]" },
99 {name = "Tom Clark", email = "[email protected]"},
100 { name = "Meredith Hoo", email = "[email protected]" },
101 { name = "Chris Maggiuli" },
102 { name = "Bona Fide IT GmbH"},
103 { name = "Columbia University, SIS Development and Application Services" },
104 { name = "Cornelius Hoffmann", email = "[email protected]" },
105 { name = "Sezer BOZKIR", email = "[email protected]"},
106 { name = "Paul Martin", email = "[email protected]"},
107 { name = "marko1olo", email = "[email protected]" },
108 { name = "Giannis Terzopoulos", email = "[email protected]" },
109 ]
110 maintainers = [
111 {name = "Tom Clark", email = "[email protected]"},
112 { name = "Brian May", email = "[email protected]" },
113 { name = "Lukasz Balcerzak", email = "[email protected]" },
114 { name = "Adam Dobrawy", email = "[email protected]" },
115 { name = "David Graham", email = "[email protected]" },
116 { name = "Michael K." },
117 { name = "Chris Maggiuli" },
118 { name = "Bona Fide IT GmbH"},
119 { name = "Sezer BOZKIR", email = "[email protected]"},
120
121 ]
122 dependencies = [
123 "django>=3.2",
124 "typing_extensions>=4.12.0; python_version<'3.13'",
125 ]
126
127 [project.urls]
128 Homepage = "https://github.com/django-guardian/django-guardian"
129 Documentation = "https://django-guardian.readthedocs.io/"
130 Repository = "https://github.com/django-guardian/django-guardian"
131 Issues = "https://github.com/django-guardian/django-guardian/issues"
132 Changelog = "https://github.com/django-guardian/django-guardian/releases"
133
134 [dependency-groups]
135 dev = [
136 "django-environ>=0.12.0",
137 "pytest>=8.3.4",
138 "pytest-cov>=5.0.0",
139 "pytest-django>=4.9.0",
140 "tox>=4.26.0",
141 "mkdocs>=1.6.1",
142 "mkdocs-material>=9.6.12",
143 "mkdocs-material-extensions>=1.3.1",
144 "mkdocstrings>=0.29.1",
145 "mkdocstrings-python>=1.16.10",
146 "mypy>=1.15.0",
147 "pre-commit>=4.2.0",
148 "pyupgrade>=3.20.0",
149 "ruff>=0.12.0"
150 ]
151 ci = [
152 "psycopg2-binary>=2.9.10",
153 "mysqlclient>=2.2.7",
154 {include-group = "dev"}
155 ]
156
157 [tool.ruff]
158 line-length = 120
159
160 [tool.ruff.lint]
161 # Enable pycodestyle (`E`) and Pyflakes (`F`) codes
162 # select = ["E", "F"]
163 # Ignore E501 line-too-long which can self-conflict with ruff format - see https://docs.astral.sh/ruff/faq/#is-the-ruff-linter-compatible-with-black for why
164 ignore = ["E501"]
165 # Disable fix for unused imports (`F401`) which annoyingly removes your work-in-progress on save
166 unfixable = ["F401"]
167
168 [tool.ruff.lint.isort]
169 known-first-party = ["benchmarks", "docs", "example_project", "example_project_custom_group", "guardian"]
170 section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
171 force-sort-within-sections = true
172
173 [tool.setuptools]
174 packages = [
175 "guardian",
176 "guardian.conf",
177 "guardian.management",
178 "guardian.management.commands",
179 "guardian.migrations",
180 "guardian.templatetags",
181 "guardian.testapp",
182 "guardian.testapp.migrations",
183 "guardian.testapp.tests"
184 ]
185
186 [tool.setuptools.package-data]
187 guardian = ["py.typed"]
188
189 [build-system]
190 requires = ["setuptools>=61", "wheel"]
191 build-backend = "setuptools.build_meta"
192
193 [tool.mypy]
194 ignore_missing_imports = true
195 show_error_codes = true
196 exclude = "example*|guardian/testapp/*"
197
198 [tool.pytest.ini_options]
199 DJANGO_SETTINGS_MODULE = "guardian.testapp.testsettings"
200 filterwarnings = [
201 "once::DeprecationWarning",
202 "once::PendingDeprecationWarning",
203 ]