summaryrefslogtreecommitdiff
path: root/src/virtualenv/util
Commit message (Collapse)AuthorAgeFilesLines
* 3.12 support and no setuptools/wheel on 3.12+ (#2558)chrysle2023-04-271-1/+3
|
* Drop Python 2 support (#2548)Bernát Gábor2023-04-198-0/+18
|
* Make `ReentrantFileLock` thread-safe and, thereby, fix race condition in ↵Randy Döring2023-03-121-4/+7
| | | | `virtualenv.cli_run` (#2517)
* Sepcify the encoding (#2515)Filipe Laíns2023-03-121-0/+1
|
* Move to hatchling, drop 3.6 support (#2474)Bernát Gábor2022-12-291-3/+3
|
* Bump dependencies and build tools (#2394)Bernát Gábor2022-08-043-9/+9
| | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Drop support of running under Python 2.7 (#2382)Bernát Gábor2022-07-2513-492/+38
|
* Windows embedable support (#2353)reksarka2022-06-251-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fixes for Windows PyPy 3.6 (#2363)reksarka2022-06-251-2/+5
|
* Avoid symlinking the contents of /usr into PyPy3 virtualenvs (#2310)Stefano Rivera2022-03-071-0/+3
| | | Co-authored-by: Bernát Gábor <bgabor8@bloomberg.net>
* Fix typos (#2286)Kian-Meng Ang2022-01-181-1/+1
|
* [pre-commit.ci] pre-commit autoupdate (#2242)pre-commit-ci[bot]2021-12-271-1/+0
| | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Avoid a new deprecation warning from filelock dependency (#2237)Ofek Lev2021-12-261-2/+2
| | | Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
* refactor to not do too much in ReentrantFileLock.__del__ (#2213)Matti Picus2021-10-231-2/+5
|
* Drop Python 3.4 support (#2143)Bernát Gábor2021-07-131-46/+0
|
* Fix Windows failure (#2056)Bernát Gábor2021-01-191-0/+1
|
* API: Allow passing on the environment variable as an argument (#2054)Bernát Gábor2021-01-181-1/+1
| | | | | Defaults to os.environ. Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Bump pip to 20.3.3 and wheel to 0.36.2 (#2036)Bernát Gábor2021-01-122-0/+21
|
* Add --readonly-app-data option (#2009)Anthony Sottile2020-11-211-4/+52
|
* clean up a few small things (#2002)Anthony Sottile2020-11-012-3/+3
|
* Bump setuptools and fix Windows subprocess with cwd broken (#1982)Bernát Gábor2020-10-151-4/+8
|
* Restore python3.4 support (add it back to CI) (#1965)Bernát Gábor2020-10-041-3/+21
|
* Upgrade setuptools and pip (#1939)Bernát Gábor2020-09-102-2/+8
|
* Avoid showing new windows on Windows (#1929)Bernát Gábor2020-08-311-2/+2
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Use unix line-endings in bash activate script (#1924)Siddhant Kumar2020-08-231-2/+5
| | | Co-authored-by: Bernat Gabor <bgabor8@bloomberg.net>
* Fix parallel app-data base image creation (#1870)Bernát Gábor2020-06-231-0/+6
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Implement periodic update feature (#1841)Bernát Gábor2020-06-215-28/+36
| | | Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
* Bump linters (#1823)Bernát Gábor2020-05-123-23/+42
|
* Fix pinning seed packages via app-data fails (#1788)Bernát Gábor2020-04-271-2/+2
|
* PyPy CI timeouts (#1720)Bernát Gábor2020-03-131-12/+14
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* pythonw works as python on Windows (#1693)Bernát Gábor2020-03-081-1/+4
| | | | | | | * pythonw works as python on Windows Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * foix
* do not fail if lock not present (#1696)Bernát Gábor2020-03-061-1/+1
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fix relative zipapp paths on UNIX20.0.6release-20.0.6Bernat Gabor2020-02-261-1/+2
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* handle application data folder is read only (#1661)Seungmin Ryu2020-02-264-11/+45
| | | | | | | | | | | | | | | | | | | | * fixed FileNotFoundError when directory isn't writable (#1640) - when using docker, if `user_data_dir()` isn't writable directory, `default_data_dir()` use `system temp directory` + `virtualenv`. for example, tempdir is `/tmp`, it use `/tmp/virtualenv` * start making the app-data more explicit and robust Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix Windows * fix docs Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
* Make aliases relative symlinks (#1610)Anthony Sottile2020-02-132-14/+2
|
* Lower min version of six to 1.9 (#1606)Sorin Sbarnea2020-02-134-10/+60
| | | | | This change should allow installation of virtualenv on systems with older six where their LTS support may prevent them from upgrading it.
* avoid copying the stats with copytree (#1571)Bernát Gábor2020-02-112-4/+31
| | | | | | | | | | | | * avoid copying the stats with copytree This information is not needed, so it's redundant work; similarly it might not be allowed (e.g. on macOS framework python). Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix
* fix system executable discovery (#1550)Bernát Gábor2020-02-101-3/+0
| | | | | | | | | | | | | | * fix system executable discovery Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * time to eat our own dogfood Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * seems Path.absolute should not be used Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* generate fish and bash activators on Windows (#1528)Bernát Gábor2020-01-311-0/+4
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Fix failing to acquire lock in case of parallel runs (#1524)Bernát Gábor2020-01-291-3/+10
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* add a write through filesystem cache with locks for py informat… (#1505)20.0.0b1Bernát Gábor2020-01-282-8/+111
| | | | | | | | | | | | | | | | | | | | * add a write through filesystem cache with locks for py information queries via sys executables this speeds up significantly the creation process, as calling subprocesess is at least an order of mangitued slower than reading the information from a json dump We also now default to the built-in mechanism Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * make file lock reentrant and thread safe Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* support for c-extension builds within virtualenv (#1503)Bernát Gábor2020-01-273-57/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test include folders - add test to check if it works Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * pypy add lib on Linux Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix Windows * fix Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * debug macos Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * try fix pypy windows Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix Windows * fix * fix Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * Windows PyPy just does not understand non-ascii PATHS :-( * allow pypy3 to fail Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* separate describe/create - check upfront if can create (#1502)Bernát Gábor2020-01-213-5/+11
| | | | | | | | | | | | | | | | * start Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * test for Windows Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * test for Windows Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix Windows symlink cache
* CentOs and Fedora support (#1500)Bernát Gábor2020-01-183-2/+5
| | | | | | | | | | | | | | | | | * CentOs support Instead of hard coding patterns and guessing let's ask the host python via the sysconfig. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * add isolated test Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fixes for Fedora Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* add zipapp support with bundled dependencies (#1491)Bernát Gábor2020-01-163-7/+65
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fix errors under CPython 3.4 on WindowsBernat Gabor2020-01-101-0/+5
|
* reorganize run.py - prefer inheritence based API over generatorsBernat Gabor2020-01-101-1/+1
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* prefer if/else over try/expect for import of config parserBernat Gabor2020-01-101-4/+5
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* support for pypy2 and pypy3 (#1482)Bernát Gábor2020-01-102-3/+15
|
* link app data needs ro with symlinks (#1480)Bernát Gábor2020-01-101-0/+5
| | | | | | | | | | | | | | | | | * fix app data logic Ensure that what ran with virtualenv 17 will continue running in a post rewrite world minus the deprecated flags, plus the relocatable feature. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix Windows * fix * fix Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>