[Django] #36362: Update `pyproject.toml` license metadata to fix setuptools deprecations

65 views
Skip to first unread message

Django

unread,
Apr 30, 2025, 2:14:27 PM4/30/25
to django-...@googlegroups.com
#36362: Update `pyproject.toml` license metadata to fix setuptools deprecations
--------------------------------+--------------------------------------
Reporter: Natalia Bidart | Type: Bug
Status: new | Component: Packaging
Version: dev | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Recent versions of setuptools (≥77.0.0) deprecate using `project.license`
as a TOML table and discourage use of license classifiers.
{{{
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
- setuptools>=75.8.1
* Getting build dependencies for sdist...
/tmp/build-env-d9cqd9kh/lib/python3.12/site-
packages/setuptools/config/_apply_pyprojecttoml.py:82:
SetuptoolsDeprecationWarning: `project.license` as a TOML table is
deprecated
!!

********************************************************************************
Please use a simple string containing a SPDX expression for
`project.license`. You can also use `project.license-files`. (Both options
available on setuptools>=77.0.0).

By 2026-Feb-18, you need to update your project and remove
deprecated calls
or your builds will no longer be supported.

See https://packaging.python.org/en/latest/guides/writing-
pyproject-toml/#license for details.
********************************************************************************

!!
corresp(dist, value, root_dir)
/tmp/build-env-d9cqd9kh/lib/python3.12/site-
packages/setuptools/config/_apply_pyprojecttoml.py:61:
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

********************************************************************************
Please consider removing the following classifiers in favor of a
SPDX license expression:

License :: OSI Approved :: BSD License

See https://packaging.python.org/en/latest/guides/writing-
pyproject-toml/#license for details.
********************************************************************************

!!
dist._finalize_license_expression()
/tmp/build-env-d9cqd9kh/lib/python3.12/site-
packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License
classifiers are deprecated.
!!

********************************************************************************
Please consider removing the following classifiers in favor of a
SPDX license expression:

License :: OSI Approved :: BSD License

See https://packaging.python.org/en/latest/guides/writing-
pyproject-toml/#license for details.
********************************************************************************

!!
self._finalize_license_expression()
running egg_info
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36362>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 1, 2025, 9:17:38 AM5/1/25
to django-...@googlegroups.com
#36362: Update `pyproject.toml` license metadata to fix setuptools deprecations
--------------------------------+--------------------------------------
Reporter: Natalia Bidart | Owner: (none)
Type: Bug | Status: closed
Component: Packaging | Version: dev
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by David Smith):

* resolution: => duplicate
* status: new => closed

Comment:

Duplicate of 35961 ?
--
Ticket URL: <https://code.djangoproject.com/ticket/36362#comment:1>

Django

unread,
May 5, 2025, 8:25:54 AM5/5/25
to django-...@googlegroups.com
#36362: Update `pyproject.toml` license metadata to fix setuptools deprecations
--------------------------------+--------------------------------------
Reporter: Natalia Bidart | Owner: (none)
Type: Bug | Status: closed
Component: Packaging | Version: dev
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Comment (by Natalia Bidart):

Replying to [comment:1 David Smith]:
> Duplicate of https://code.djangoproject.com/ticket/35961 ?

Yes, thank you David, I forgot about that one! (I even did a review...)
--
Ticket URL: <https://code.djangoproject.com/ticket/36362#comment:2>
Reply all
Reply to author
Forward
0 new messages