Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

[Django] #35961: Support PEP639-style license indicator in pyproject.yaml

14 views
Skip to first unread message

Django

unread,
Dec 1, 2024, 12:34:53 PM12/1/24
to django-...@googlegroups.com
#35961: Support PEP639-style license indicator in pyproject.yaml
-------------------------------------+-------------------------------------
Reporter: Michiel | Owner: (none)
Beijen |
Type: | Status: assigned
Cleanup/optimization |
Component: Packaging | Version: 5.1
Severity: Normal | Keywords: packaging
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
See https://peps.python.org/pep-0639/

This
--
Ticket URL: <https://code.djangoproject.com/ticket/35961>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 1, 2024, 12:35:13 PM12/1/24
to django-...@googlegroups.com
#35961: Support PEP639-style license indicator in pyproject.yaml
-------------------------------------+-------------------------------------
Reporter: Michiel Beijen | Owner: (none)
Type: | Status: assigned
Cleanup/optimization |
Component: Packaging | Version: 5.1
Severity: Normal | Resolution:
Keywords: packaging | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Michiel Beijen):

* Attachment "0001-Implement-PEP-639-licence-tags-in-pyproject.toml.patch"
added.

Django

unread,
Dec 1, 2024, 12:37:02 PM12/1/24
to django-...@googlegroups.com
#35961: Support PEP639-style license indicator in pyproject.yaml
-------------------------------------+-------------------------------------
Reporter: Michiel Beijen | Owner: (none)
Type: | Status: assigned
Cleanup/optimization |
Component: Packaging | Version: 5.1
Severity: Normal | Resolution:
Keywords: packaging | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Michiel Beijen:

Old description:

> See https://peps.python.org/pep-0639/
>
> This

New description:

See https://peps.python.org/pep-0639/ and

https://github.com/django/django/commit/1f02938a4fbe71e17c1a942ba94c8dd33d80d450

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

Django

unread,
Dec 1, 2024, 12:44:30 PM12/1/24
to django-...@googlegroups.com
#35961: Support PEP639-style license indicator in pyproject.yaml
-------------------------------------+-------------------------------------
Reporter: Michiel Beijen | Owner: (none)
Type: | Status: assigned
Cleanup/optimization |
Component: Packaging | Version: 5.1
Severity: Normal | Resolution:
Keywords: packaging | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Michiel Beijen:

Old description:

> See https://peps.python.org/pep-0639/ and
>
> https://github.com/django/django/commit/1f02938a4fbe71e17c1a942ba94c8dd33d80d450

New description:

See https://peps.python.org/pep-0639/ and

https://github.com/django/django/commit/c278fec52a3114e7488e1f10a0070d13ea8b084d

--
--
Ticket URL: <https://code.djangoproject.com/ticket/35961#comment:2>

Django

unread,
Dec 1, 2024, 3:48:23 PM12/1/24
to django-...@googlegroups.com
#35961: Support PEP639-style license indicator in pyproject.yaml
--------------------------------------+------------------------------------
Reporter: Michiel Beijen | Owner: (none)
Type: Cleanup/optimization | Status: assigned
Component: Packaging | Version: 5.1
Severity: Normal | Resolution:
Keywords: packaging | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by David Smith):

* has_patch: 1 => 0
* stage: Unreviewed => Accepted

Comment:

I'm accepting as the project is currently using `License` and this is now
[https://packaging.python.org/en/latest/specifications/core-
metadata/#license deprecated ]

However, I think the proposal here needs to be refined as the attached
patch uses `License` and this is deprecated in favour of `License-
Expression`.
--
Ticket URL: <https://code.djangoproject.com/ticket/35961#comment:3>

Django

unread,
Dec 6, 2024, 2:59:41 PM12/6/24
to django-...@googlegroups.com
#35961: Support PEP639-style license indicator in pyproject.yaml
-------------------------------------+-------------------------------------
Reporter: Michiel Beijen | Owner: Michiel
Type: | Beijen
Cleanup/optimization | Status: assigned
Component: Packaging | Version: 5.1
Severity: Normal | Resolution:
Keywords: packaging | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Michiel Beijen):

* has_patch: 0 => 1
* owner: (none) => Michiel Beijen

Comment:

Hi, I've added PR https://github.com/django/django/pull/18892 for this
one.

You mention:

> I'm accepting as the project is currently using License and this is now
​deprecated

but I think you're mistaken, this is metadata in the created package,
which is made by the packaging software, and not the pyproject.toml
itself, see the pep639 and the document you linked to about Core Metadata
for details --> https://packaging.python.org/en/latest/specifications
/core-metadata/#license
--
Ticket URL: <https://code.djangoproject.com/ticket/35961#comment:4>

Django

unread,
Dec 27, 2024, 10:31:47 AM12/27/24
to django-...@googlegroups.com
#35961: Support PEP639-style license indicator in pyproject.yaml
-------------------------------------+-------------------------------------
Reporter: Michiel Beijen | Owner: Michiel
Type: | Beijen
Cleanup/optimization | Status: assigned
Component: Packaging | Version: dev
Severity: Normal | Resolution:
Keywords: packaging | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* needs_better_patch: 0 => 1
* version: 5.1 => dev

Comment:

Proposed change does not work, I added details to the PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/35961#comment:5>
Reply all
Reply to author
Forward
0 new messages