Skip to content

Commit 96a7a65

Browse files
mbeijenjacobtylerwalls
authored andcommitted
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>
1 parent d514ca6 commit 96a7a65

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/intro/reusable-apps.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ this. For a small app like polls, this process isn't too difficult.
208208
:caption: ``django-polls/pyproject.toml``
209209

210210
[build-system]
211-
requires = ["setuptools>=69.3"]
211+
requires = ["setuptools>=77.0.3"]
212212
build-backend = "setuptools.build_meta"
213213

214214
[project]
@@ -219,6 +219,7 @@ this. For a small app like polls, this process isn't too difficult.
219219
]
220220
description = "A Django app to conduct web-based polls."
221221
readme = "README.rst"
222+
license = "BSD-3-Clause"
222223
requires-python = ">= 3.12"
223224
authors = [
224225
{name = "Your Name", email = "yourname@example.com"},
@@ -228,7 +229,6 @@ this. For a small app like polls, this process isn't too difficult.
228229
"Framework :: Django",
229230
"Framework :: Django :: X.Y", # Replace "X.Y" as appropriate
230231
"Intended Audience :: Developers",
231-
"License :: OSI Approved :: BSD License",
232232
"Operating System :: OS Independent",
233233
"Programming Language :: Python",
234234
"Programming Language :: Python :: 3",

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=75.8.1"]
2+
requires = ["setuptools>=77.0.3"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -16,13 +16,13 @@ authors = [
1616
]
1717
description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design."
1818
readme = "README.rst"
19-
license = {text = "BSD-3-Clause"}
19+
license = "BSD-3-Clause"
20+
license-files = ["LICENSE", "LICENSE.python"]
2021
classifiers = [
2122
"Development Status :: 2 - Pre-Alpha",
2223
"Environment :: Web Environment",
2324
"Framework :: Django",
2425
"Intended Audience :: Developers",
25-
"License :: OSI Approved :: BSD License",
2626
"Operating System :: OS Independent",
2727
"Programming Language :: Python",
2828
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)