Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(environment): finalize and enable PEP-639 der default #843

Open
1 of 2 tasks
jkowalleck opened this issue Jan 24, 2025 · 0 comments
Open
1 of 2 tasks

feat(environment): finalize and enable PEP-639 der default #843

jkowalleck opened this issue Jan 24, 2025 · 0 comments
Labels
breaking change enhancement New feature or request help wanted Extra attention is needed source: environment

Comments

@jkowalleck
Copy link
Member

jkowalleck commented Jan 24, 2025

Is your feature request related to a problem? Please describe.

we have an implementation/detection for PEP-639 in the python environment analyzer.
it is disabled per default, can be enabled via CLI switch --PEP-639 - since the PEP was in draft mode, when it was first implemented here.

PEP-639 is going to be final, soon. see python/peps#4227
this means, it can be enabled, per default. 🥳

Describe the solution you'd like

  1. finalize the implementation of PEP-639
  2. enable the license-id/-expression behavior per default
  3. have the license text gathering (metadata License-File) disabled per default, but can be enabled as part of existing CLI switch --gather-license-texts
  4. remove the CLI switch --PEP-639

With Core Metadata 2.4 a new field, License-Expression, has been added. If it's present, favor it over the deprecated (with PEP 639) legacy unstructured License field.

This means: if PEP 639 is in effect, no other license sources should be taken into account.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

PEP-369: https://peps.python.org/pep-0639/

see also: #575

Contribution

  • I am willing to provide an implementation
  • I will wait until somebody else implements it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change enhancement New feature or request help wanted Extra attention is needed source: environment
Projects
None yet
Development

No branches or pull requests

1 participant