* Bump pip and setuptools (#2348)
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Use shlex.quote instead of deprecated pipes.quote (#2351)
* Embeds the "python<VERSION>.zip" for Windows.
For example, for Python 3.10 the embeddable file name would be
"python310.zip". If this file would be found in `sys.path`, the
virtualenv should copy it into the "<venv>\Scripts\python310.zip".
* For Windows CPython3: *.dll/*.pyd -> to_bin
* Fixture for a Python interpreter info.
Helps to test virtualenv creator classes.
* Creators tests: path_mock as separate module.
* Clarifies tests, separates testing tools.
* Tests for CPython3Windows sources.
* Tests for the embedded Python std lib for Windows.
* Add news entry.
* Replaces `yield from` for backward compability.
* FIX: Path mocking in pypy tests.
* Wrap `sys` `Path` with `str` for importlib.
The importlib accepts a Path-like objects from Python 3.6
* Makes PathMock ABC compatible with Python 2
* Does not collect tests for Python3 under Python 2
It is possible to make pass CPython3 tests under Python 2,
but it's better to disable it instead of decreasing the
readability and performance of Python 3 style.
* Allows empty `Path()` in Windows with Python 2
* Allows to load fixture files with PY2 Windows Path
* Skips one PY3 POSIX test in PY2 Windows
Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
Co-authored-by: Lumír 'Frenzy' Balhar <lbalhar@redhat.com>
* During seeding remove dist-info for present versions of the wheels
An existing dist-info may contain entrypoints that may interfere with
normal functioning of the redeployed seeded wheel if there is a version
mismatch
fixes#2185
* Remove package directories from dist-info top_level packages
Remove other recorded files from RECORD
Remove dist-info itself
* Do not resolve paths prior to removal for symlink mode
In the test ensure the directories are compared as sets and not lists
Add setuptools downgrade to ensure proper cleanup of the existing version
* PR Feedback
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
* Fix absolute paths for Cygwin
Absolute paths on Windows take the form "c:\somePath" -- these need to be mapped to the form "/cygdrive/c/somePath" on Cygwin. Otherwise, the virtualenv path gets garbled when activated on Cygwin, which can cause the wrong Python environment to be used.
* Remove Cygwin from the list, rely on the shell script for that
* Improved formatting
* Update tests to handle mingw + msys explicitly
* Add changelog entry
* lint errors
* Add msys support to the activation script
* Fix script error & linting
Closes#1940. In cygwin and MSYS2, the path is in POSIX format.
This PR converts the Windows path to POSIX format using a regex
so that it is added to the bash activation script in the correct
format.