Skip to content

Add PEP 832 to the virtual environment spec - #2220

Open
brettcannon wants to merge 4 commits into
python:mainfrom
brettcannon:pep-832
Open

brettcannon wants to merge 4 commits into
python:mainfrom
brettcannon:pep-832

Conversation

@brettcannon

@brettcannon brettcannon commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@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.

@brettcannon

Copy link
Copy Markdown
Member Author

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.

@brettcannon

Copy link
Copy Markdown
Member Author

@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.

@brettcannon

Copy link
Copy Markdown
Member Author

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.

@brettcannon
brettcannon marked this pull request as ready for review December 2, 2026 23:38
@brettcannon
brettcannon requested a review from rgommers December 2, 2026 23:38
@brettcannon

Copy link
Copy Markdown
Member Author

@rgommers I copied over the Specification section from the PEP and lightly copy-edited it (markup and not to say "PEP").

@brettcannon
brettcannon requested a review from a team December 3, 2026 20:38

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @brettcannon, this LGTM!

@rgommers

rgommers commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

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."

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.

@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.

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.

had an LLM double-check me who was way pickier than I am

My LLM disagreed with yours:) Either way, I think we do want PEP sync PRs to be easily human-verifiable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: specifications type: enhancement A self-contained enhancement or new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants