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

PEP 639: minor edits for clarity and consistency #3921

Closed
wants to merge 1 commit into from

Conversation

ichard26
Copy link

@ichard26 ichard26 commented Aug 23, 2024

While reading the draft PEP 639, there were a few parts which read poorly and could be easily improved. There were also a few obvious typos.

The main substantive edits are:

  • Removing references to the license-files.globs and license-files.paths fields that no longer exist in the current draft
  • Shortening the summary of changes to the recording installed distributions specification by removing a redundant (implied) clause

📚 Documentation preview 📚: https://pep-previews--3921.org.readthedocs.build/

@ichard26 ichard26 requested review from CAM-Gerlach and a team as code owners August 23, 2024 19:00
Copy link

cpython-cla-bot bot commented Aug 23, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

Comment on lines -671 to +672
and one or more ``License-File`` fields is specified, the ``.dist-info``
and one or more ``License-File`` fields is specified, the installed ``.dist-info``
directory MUST contain a ``licenses`` subdirectory which MUST contain
the files listed in the ``License-File`` fields in the ``METADATA`` file
at their respective paths relative to the ``licenses`` directory,
and that any files in this directory MUST be copied from wheels
by install tools.
at their respective paths relative to the ``licenses`` directory.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clause "and that any files in this directory MUST be copied from wheels by install tools" has two potential interpretations:

  • Files declared via the License-File Core Metadata field in the wheel distribution MUST be copied into this directory. This isn't wrong, but it is redundant with the earlier text. Simply stating that we're talking about the installed .dist-info directory should suffice IMO.
  • Only files declared in the License-File Core Metadata field are permitted to be in this directory. If this is the case, I'd suggest adding the word "only" somewhere.

I initially read the line under the second interpretation, but that seems wrong? I'd appreciate your thoughts @befeleme.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I'm not the original author, let me provide another interpretation - how I see it: PEP doesn't specify nor forbid what else, except for the files listed under the License-File fields can be listed in the .dist-info/licenses directory, but it ensures that whatever is there (e.g. filled in by a build backend custom means), will always be installed with the copies of the software. Hence the partial redundancy of the wording.

Comment on lines -780 to +776
- The appendix :ref:`639-spec-mapping-classifiers-identifiers` provides
- The :ref:`639-spec-mapping-classifiers-identifiers` provides
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the reference is rendered, the word "appendix" appears twice.

image

The main substantive edits are:

- Removing references to the `license-files.globs` and
  `license-files.paths` fields that no longer exist in the current draft
- Shortening the summary of changes to the recording installed
  distributions specification by removing a redundant (implied) clause
@hugovk
Copy link
Member

hugovk commented Aug 23, 2024

cc @befeleme

Copy link
Contributor

@befeleme befeleme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @ichard26, for the PEP review!

Once we sort out the interpretation of .dist-info/licenses, I'll gladly approve all of the changes.

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look OK, but I believe the PEP has since been accepted, so it may be too late.

@ichard26
Copy link
Author

I don't have the interest in going through the formal process to amend a PEP so I'll close this.

@ichard26 ichard26 closed this Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants