Closed hroncok closed 9 months ago
The related Python 3.13 change is https://github.com/python/cpython/issues/108125
Apparently:
$ virtualenv -p python3.13 testenv --no-seed --creator venv
created virtual environment CPython3.13.0.alpha.2-64 in 122ms
creator Venv(dest=/home/churchyard/tmp/testenv, clear=False, no_vcs_ignore=False, global=False, describe=CPython3Posix)
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
$ cat testenv/.gitignore
# Created by venv; see https://docs.python.org/3/library/venv.html
*
This either breaks the test expectation or virtualenv behavior.
Either we want the .gitignore file contents to be consistent (and hence we need to override it and/or opt-out of this feature) or we need to adjust the test to allow the venv-generated comment in it.
Which one do you prefer?
Either we want the .gitignore file contents to be consistent (and hence we need to override it and/or opt-out of this feature)
We want it to be consistent. Our ignore though should run after theirs, so we should overwrite what they create?
https://virtualenv.pypa.io/en/20.0.24/changelog.html#bugfixes-20-0-24
Do not generate/overwrite .gitignore if it already exists at destination path - by @gaborbernat. (#1862)
86deb12e7c2ad370802505f12d8181c371b94b61
Huh! I think we should probably just adjust the test and also make sure that what we generate looks like what venv generates (mostly).
I started by https://github.com/pypa/virtualenv/pull/2672
The files only differ by the comment.
Issue
When I try to run the tests with Python 3.13.0a2, I see the following 8 failures:
The failure is:
I'd like to investigate, but I have no idea what is happening here. Looks likevenv
is used on Python 3.13... ?I've tied the main branch, I've tried from https://github.com/pypa/virtualenv/pull/2669
I've tried to add:
It still fails.
To reproduce, run
tox -e py313 -- -k test_create_no_seed -v
.Full output: virtualenv.txt
Environment
Provide at least:
pip list
of the host python wherevirtualenv
is installed: