1
0
mirror of https://github.com/django/django.git synced 2025-10-09 14:59:24 +00:00

[5.1.x] Fixed #35961 -- Migrated license metadata in pyproject.toml to conform PEP 639.

See https://peps.python.org/pep-0639/ and
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-and-license-files.

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>

Backport of 96a7a652166bece8acc96d6335ebb8091de2f496 from main.
This commit is contained in:
Michiel W. Beijen 2024-12-06 20:54:41 +01:00 committed by Natalia
parent 360400f616
commit 7da2bf97d6
2 changed files with 5 additions and 5 deletions

View File

@ -209,7 +209,7 @@ this. For a small app like polls, this process isn't too difficult.
:caption: ``django-polls/pyproject.toml`` :caption: ``django-polls/pyproject.toml``
[build-system] [build-system]
requires = ["setuptools>=69.3"] requires = ["setuptools>=77.0.3"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[project] [project]
@ -220,6 +220,7 @@ this. For a small app like polls, this process isn't too difficult.
] ]
description = "A Django app to conduct web-based polls." description = "A Django app to conduct web-based polls."
readme = "README.rst" readme = "README.rst"
license = "BSD-3-Clause"
requires-python = ">= 3.10" requires-python = ">= 3.10"
authors = [ authors = [
{name = "Your Name", email = "yourname@example.com"}, {name = "Your Name", email = "yourname@example.com"},
@ -229,7 +230,6 @@ this. For a small app like polls, this process isn't too difficult.
"Framework :: Django", "Framework :: Django",
"Framework :: Django :: X.Y", # Replace "X.Y" as appropriate "Framework :: Django :: X.Y", # Replace "X.Y" as appropriate
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent", "Operating System :: OS Independent",
"Programming Language :: Python", "Programming Language :: Python",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",

View File

@ -1,5 +1,5 @@
[build-system] [build-system]
requires = ["setuptools>=75.8.1"] requires = ["setuptools>=77.0.3"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[project] [project]
@ -16,13 +16,13 @@ authors = [
] ]
description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design." description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design."
readme = "README.rst" readme = "README.rst"
license = {text = "BSD-3-Clause"} license = "BSD-3-Clause"
license-files = ["LICENSE", "LICENSE.python"]
classifiers = [ classifiers = [
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Environment :: Web Environment", "Environment :: Web Environment",
"Framework :: Django", "Framework :: Django",
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent", "Operating System :: OS Independent",
"Programming Language :: Python", "Programming Language :: Python",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",