Support PEP-639 style License-Expression fields - #322
Open
peterebden wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Perhaps we should generate this wheel at test time, just to prove there's nothing weird going on in this plugin (a la CVE-2024-3094)? It'd be pretty straightforward too, given that we could build it with arcat. If you want to save keystrokes and a bit of complexity, fakepkg/__init__.py isn't necessary - a wheel consisting only of metadata is legit (and occasionally seen in the wild as a way of implementing virtual packages).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These are superseding the old freeform text
License:fields. There are some packages in the wild that have this and notLicenceany more, presumably that will increase over time.https://peps.python.org/pep-0639/
These are SPDX expressions. Please doesn't parse those for now, but it can crudely support them by simply entering each expression as a licence. In the future when we add the ability to parse them, this should just work.
Also fixed a couple of existing bugs about how the
repoargument got used inpip_library.