Skip to content

Commit

Permalink
Move setup.cfg/setuptools to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Oct 30, 2023
1 parent 3bfcbb9 commit 8d188d7
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 57 deletions.
59 changes: 56 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,65 @@
[build-system]
requires = [
"setuptools>=45.0",
# sync with setup.cfg until we discard non-pep-517/518
"setuptools>=61.0.0",
"setuptools-scm[toml]>=5.0.0",
]
build-backend = "setuptools.build_meta"

[project]
name = "pytest-django"
description = "A Django plugin for pytest."
readme = "README.rst"
requires-python = ">=3.8"
dynamic = ["version"]
authors = [
{ name = "Andreas Pelme", email = "[email protected]" },
]
maintainers = [
{ name = "Andreas Pelme", email = "[email protected]" },
]
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Testing",
]
dependencies = [
"pytest>=7.0.0",
]
[project.optional-dependencies]
docs = [
"sphinx",
"sphinx_rtd_theme",
]
testing = [
"Django",
"django-configurations>=2.0",
]
[project.urls]
Documentation = "https://pytest-django.readthedocs.io/"
Repository = "https://github.com/pytest-dev/pytest-django"
Changelog = "https://pytest-django.readthedocs.io/en/latest/changelog.html"
[project.entry-points.pytest11]
django = "pytest_django.plugin"

[tool.setuptools]
packages = ["pytest_django"]
[tool.setuptools.package-data]
pytest_django = ["py.typed"]

[tool.setuptools_scm]
write_to = "pytest_django/_version.py"

Expand Down Expand Up @@ -55,7 +109,6 @@ exclude_lines = [
]

[tool.ruff]
target-version = "py38"
line-length = 99
extend-exclude = [
"pytest_django/_version.py",
Expand Down
54 changes: 0 additions & 54 deletions setup.cfg

This file was deleted.

0 comments on commit 8d188d7

Please sign in to comment.