Skip to content

Commit b1dd37e

Browse files
authored
Tomlify setup.py (#216)
* Move setup.py stuff to setup.cfg * Run ini2toml on setup.cfg .. fix casing of DJANGO_SETTINGS_MODULE
1 parent 7200b16 commit b1dd37e

File tree

4 files changed

+64
-94
lines changed

4 files changed

+64
-94
lines changed

pyproject.toml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "django_csp"
7+
version = "3.8rc"
8+
description = "Django Content Security Policy support."
9+
readme = "README.rst"
10+
authors = [{name = "James Socol", email = "[email protected]"}]
11+
maintainers = [{name = "Mozilla MEAO team", email = "[email protected]"}]
12+
license = {text = "BSD"}
13+
classifiers = [
14+
"Development Status :: 5 - Production/Stable",
15+
"Environment :: Web Environment",
16+
"Environment :: Web Environment :: Mozilla",
17+
"Programming Language :: Python",
18+
"License :: OSI Approved :: BSD License",
19+
"Operating System :: OS Independent",
20+
"Intended Audience :: Developers",
21+
"Topic :: Software Development :: Libraries :: Python Modules",
22+
"Programming Language :: Python",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.8",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: Implementation :: PyPy",
30+
"Programming Language :: Python :: Implementation :: CPython",
31+
"Framework :: Django :: 3.2",
32+
"Framework :: Django :: 4.2",
33+
"Framework :: Django :: 5.0",
34+
]
35+
dependencies = ["Django>=3.2"]
36+
37+
[project.urls]
38+
Homepage = "http://github.com/mozilla/django-csp"
39+
Documentation = "http://django-csp.readthedocs.org/"
40+
Changelog = "https://github.com/mozilla/django-csp/blob/main/CHANGES"
41+
"Bug Tracker" = "https://github.com/mozilla/django-csp/issues"
42+
"Source Code" = "https://github.com/mozilla/django-csp"
43+
44+
[project.optional-dependencies]
45+
tests = [
46+
"pytest",
47+
"pytest-cov",
48+
"pytest-django",
49+
"pytest-ruff",
50+
"jinja2>=2.9.6",
51+
]
52+
jinja2 = ["jinja2>=2.9.6"]
53+
54+
[tool.setuptools]
55+
zip-safe = false
56+
include-package-data = true
57+
58+
[tool.setuptools.packages]
59+
find = {namespaces = false}
60+
61+
[tool.pytest.ini_options]
62+
addopts = "-vs --tb=short --ruff --ruff-format"
63+
DJANGO_SETTINGS_MODULE = "csp.tests.settings"

setup.cfg

Lines changed: 0 additions & 4 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 90 deletions
This file was deleted.

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[tox]
2+
isolated_build = True
23
envlist =
34
{3.10,3.11,3.12,pypy310}-main
45
{3.10,3.11,3.12,pypy310}-5.0.x

0 commit comments

Comments
 (0)