forked from django/django
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated setuptools configuration to pyproject.toml.
This branch migrates setuptools configuration from setup.py/setup.cfg to pyproject.toml. In order to ensure that the generated binary files have consistent casing (both the tarball and the wheel), setuptools version is limited to ">=61.0.0,<69.3.0". Configuration for flake8 was moved to a dedicated .flake8 file since it cannot be configured via pyproject.toml. Also, __pycache__ exclusion was removed from MANIFEST and the extras/Makefile was replaced with a simpler build command. Co-authored-by: Nick Pope <[email protected]>
- Loading branch information
Showing
9 changed files
with
83 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[flake8] | ||
exclude = build,.git,.tox,./tests/.env | ||
extend-ignore = E203 | ||
max-line-length = 88 | ||
per-file-ignores = | ||
django/core/cache/backends/filebased.py:W601 | ||
django/core/cache/backends/base.py:W601 | ||
django/core/cache/backends/redis.py:W601 | ||
tests/cache/tests.py:W601 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,4 @@ graft extras | |
graft js_tests | ||
graft scripts | ||
graft tests | ||
global-exclude __pycache__ | ||
global-exclude *.py[co] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,68 @@ | ||
[build-system] | ||
requires = ['setuptools>=40.8.0'] | ||
build-backend = 'setuptools.build_meta' | ||
requires = ["setuptools>=61.0.0,<69.3.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "Django" | ||
dynamic = ["version"] | ||
requires-python = ">= 3.10" | ||
dependencies = [ | ||
"asgiref>=3.7.0", | ||
"sqlparse>=0.3.1", | ||
"tzdata; sys_platform == 'win32'", | ||
] | ||
authors = [ | ||
{name = "Django Software Foundation", email = "[email protected]"}, | ||
] | ||
description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design." | ||
readme = "README.rst" | ||
license = {text = "BSD-3-Clause"} | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
"Topic :: Internet :: WWW/HTTP :: WSGI", | ||
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
|
||
[project.optional-dependencies] | ||
argon2 = ["argon2-cffi>=19.1.0"] | ||
bcrypt = ["bcrypt"] | ||
|
||
[project.scripts] | ||
django-admin = "django.core.management:execute_from_command_line" | ||
|
||
[project.urls] | ||
Homepage = "https://www.djangoproject.com/" | ||
Documentation = "https://docs.djangoproject.com/" | ||
"Release notes" = "https://docs.djangoproject.com/en/stable/releases/" | ||
Funding = "https://www.djangoproject.com/fundraising/" | ||
Source = "https://github.com/django/django" | ||
Tracker = "https://code.djangoproject.com/" | ||
|
||
[tool.black] | ||
target-version = ['py310'] | ||
force-exclude = 'tests/test_runner_apps/tagged/tests_syntax_error.py' | ||
target-version = ["py310"] | ||
force-exclude = "tests/test_runner_apps/tagged/tests_syntax_error.py" | ||
|
||
[tool.isort] | ||
profile = 'black' | ||
default_section = 'THIRDPARTY' | ||
known_first_party = 'django' | ||
profile = "black" | ||
default_section = "THIRDPARTY" | ||
known_first_party = "django" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "django.__version__"} | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["django*"] |