Skip to content

Commit

Permalink
Tomlify setup.py (#216)
Browse files Browse the repository at this point in the history
* Move setup.py stuff to setup.cfg

* Run ini2toml on setup.cfg

.. fix casing of DJANGO_SETTINGS_MODULE
  • Loading branch information
hmpf authored Feb 22, 2024
1 parent 7200b16 commit b1dd37e
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 94 deletions.
63 changes: 63 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "django_csp"
version = "3.8rc"
description = "Django Content Security Policy support."
readme = "README.rst"
authors = [{name = "James Socol", email = "[email protected]"}]
maintainers = [{name = "Mozilla MEAO team", email = "[email protected]"}]
license = {text = "BSD"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Environment :: Web Environment :: Mozilla",
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: Implementation :: CPython",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
]
dependencies = ["Django>=3.2"]

[project.urls]
Homepage = "http://github.com/mozilla/django-csp"
Documentation = "http://django-csp.readthedocs.org/"
Changelog = "https://github.com/mozilla/django-csp/blob/main/CHANGES"
"Bug Tracker" = "https://github.com/mozilla/django-csp/issues"
"Source Code" = "https://github.com/mozilla/django-csp"

[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov",
"pytest-django",
"pytest-ruff",
"jinja2>=2.9.6",
]
jinja2 = ["jinja2>=2.9.6"]

[tool.setuptools]
zip-safe = false
include-package-data = true

[tool.setuptools.packages]
find = {namespaces = false}

[tool.pytest.ini_options]
addopts = "-vs --tb=short --ruff --ruff-format"
DJANGO_SETTINGS_MODULE = "csp.tests.settings"
4 changes: 0 additions & 4 deletions setup.cfg

This file was deleted.

90 changes: 0 additions & 90 deletions setup.py

This file was deleted.

1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[tox]
isolated_build = True
envlist =
{3.10,3.11,3.12,pypy310}-main
{3.10,3.11,3.12,pypy310}-5.0.x
Expand Down

0 comments on commit b1dd37e

Please sign in to comment.