Repository navigation
Add PEP 832 to the virtual environment spec - #2220
brettcannon wants to merge 4 commits into
Conversation
rgommers
left a comment
There was a problem hiding this comment.
@brettcannon this is quite hard to review like this, given that you've changed lots of Specification text from the PEP. Can you please redo this with:
- a first commit or a separate PR for unrelated changes (the
:file:ones) - a single commit that imports the Specification text from the PEP verbatim
- integration commits with tweaks
There are a few thinks that seem to have gone missing, and while the bulk of it seems right, it's hard to review. E.g., if I take a random snippet from the PEP like "redirect file MUST be encoded", I cannot find it back.
It's because I didn't copy verbatim from the PEP so it didn't sound like a PEP, e.g., what you're referring to is covered by "The file is encoded using UTF-8 with no BOM marker." So everything in the PEP is covered, just worded differently (I checked and had an LLM double-check me who was way pickier than I am). But it sounds like you want a copy-and-paste from the Specification section instead, in which case I'll toss what's in the PR and just do a copy-and-paste with no other edits. |
|
@rgommers FYI https://packaging.python.org/en/latest/contribute/ doesn't provide explicit guidance for atomic commits or not doing cleanup in a tangential PR. |
|
There's also no guidance for folks at https://github.com/python/packaging-council#packaging-peps to explicitly copy over the Specification of the PEP. |
|
@rgommers I copied over the Specification section from the PEP and lightly copy-edited it (markup and not to say "PEP"). |
rgommers
left a comment
There was a problem hiding this comment.
Thanks @brettcannon, this LGTM!
That seems actively undesirable? If we want the content in Specifications to use different wording, for clarity or whatever other reason, then we should change it in packaging PEPs as well. I can't think of any reason for wanting it to deviate.
I'll write that up in more detail now. This guidance has been given repeatedly over the years, e.g. this extensive comment from Paul and recently on the PEP 847 thread. It also seems common sense? The current version is quite easy to review, the first version really wasn't.
My LLM disagreed with yours:) Either way, I think we do want PEP sync PRs to be easily human-verifiable. |
📚 Documentation preview 📚: https://python-packaging-user-guide--2220.org.readthedocs.build/en/2220/