Skip to content

Add python-version to pyvenv.cfg for PEP 838#3193

Draft
konstin wants to merge 3 commits into
pypa:mainfrom
konstin:pep-838-python-version
Draft

Add python-version to pyvenv.cfg for PEP 838#3193
konstin wants to merge 3 commits into
pypa:mainfrom
konstin:pep-838-python-version

Conversation

@konstin

@konstin konstin commented Jul 21, 2026

Copy link
Copy Markdown

Draft PR accompanying PEP 838

@konstin konstin changed the title Add python-version to pyvenv.cfg Add python-version to pyvenv.cfg for PEP 838 Jul 21, 2026
Bind version_info once instead of repeating self.interpreter.version_info
across the python-version, version_info, and version fields.

Assert the written python-version against sys.version_info rather than the
interpreter object the code just read, so the test fails if the field value
is wrong.
@gaborbernat
gaborbernat marked this pull request as ready for review July 24, 2026 06:33
@gaborbernat
gaborbernat marked this pull request as draft July 24, 2026 06:35
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.

2 participants