summaryrefslogtreecommitdiff
path: root/tests/unit/create
Commit message (Collapse)AuthorAgeFilesLines
* 3.12 support and no setuptools/wheel on 3.12+ (#2558)chrysle2023-04-271-3/+23
|
* prevent PermissionError when using venv creator on some systems (#2543)Jakub Kulík2023-04-271-0/+22
|
* Drop Python 2 support (#2548)Bernát Gábor2023-04-1915-134/+34
|
* Sepcify the encoding (#2515)Filipe Laíns2023-03-123-12/+16
|
* Move to hatchling, drop 3.6 support (#2474)Bernát Gábor2022-12-291-7/+7
|
* Set 'home' to parent directory of system_executable (#2441)Vincent Fazio2022-11-121-0/+22
| | | close https://github.com/pypa/virtualenv/issues/2440
* Bump dependencies and build tools (#2394)Bernát Gábor2022-08-046-24/+28
| | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Drop support of running under Python 2.7 (#2382)Bernát Gábor2022-07-2511-211/+175
|
* Ignores missing DLLs dir in CPython3Windows (#2369)reksarka2022-06-291-0/+3
| | | | Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com> Co-authored-by: Lumír 'Frenzy' Balhar <lbalhar@redhat.com>
* Windows embedable support (#2353)reksarka2022-06-258-91/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Avoid symlinking the contents of /usr into PyPy3 virtualenvs (#2310)Stefano Rivera2022-03-074-0/+288
| | | Co-authored-by: Bernát Gábor <bgabor8@bloomberg.net>
* Drop Python 3.4 support (#2143)Bernát Gábor2021-07-131-2/+0
|
* Fix site.getsitepackages() broken on python2 on debian (#2108)Adrian Freund2021-05-051-7/+36
|
* Fix site.getsitepackages() ignoring --system-site-packages on python2 (#2107)Adrian Freund2021-05-041-0/+32
| | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* API: Allow passing on the environment variable as an argument (#2054)Bernát Gábor2021-01-181-3/+3
| | | | | Defaults to os.environ. Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
* Optionally skip creation of .gitignore in virtualenv directory (#2004)Aren Siekmeier2020-11-021-1/+14
|
* Restore python3.4 support (add it back to CI) (#1965)Bernát Gábor2020-10-041-0/+2
|
* Process pth files even if $PYTHONPATH points to site-packages/ (#1960)Kirill Smelkov2020-10-011-0/+27
|
* Upgrade setuptools and pip (#1939)Bernát Gábor2020-09-104-8/+24
|
* Allow bypassing the logging setup via the Python API (#1904)Bernát Gábor2020-07-241-2/+2
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Don't preimport threading early (#1897)Kirill Smelkov2020-07-151-0/+16
|
* Do not write .gitignore if already exists (#1866)Bernát Gábor2020-06-211-0/+7
| | | | | | This ensures that we do not overwrite an existing .gitignore when the target directory is not created by virtualenv. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Implement periodic update feature (#1841)Bernát Gábor2020-06-216-5/+150
| | | Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
* Mark virtual environments ignored for Git (#1825)Bernát Gábor2020-05-121-0/+3
|
* Bump linters (#1823)Bernát Gábor2020-05-123-9/+9
|
* Fix python 2 activator when generated from python 3 is invalid (#1805)Bernát Gábor2020-05-031-13/+0
|
* Fix CPython2 not found on Windows via registry (#1797)Bernát Gábor2020-05-021-2/+0
|
* Fix typo in symlink detection (#1803)Anthony Sottile2020-05-021-0/+6
|
* make test discovery more deterministic (#1802)Anthony Sottile2020-05-021-1/+1
|
* Bump pip to 20.1 (#1795)Bernát Gábor2020-04-291-1/+0
|
* Fix pinning seed packages via app-data fails (#1788)Bernát Gábor2020-04-271-1/+0
|
* Ensure makefile is present on CPython2 POSIX (#1787)Bernát Gábor2020-04-261-10/+17
|
* Better handling of conflicting --copies and --symlinks (#1785)Bernát Gábor2020-04-251-1/+4
|
* do not allow PYVENV_LAUNCHER to be set (#1749)Bernát Gábor2020-03-251-0/+8
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Do not fail when the pyc files is missing for the host Python 2 (#1741)Bernát Gábor2020-03-191-11/+20
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Allow testing via the system Python (#1731)Bernát Gábor2020-03-182-6/+38
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* generate pipx.y besides pip-x.y (#1729)Bernát Gábor2020-03-181-1/+6
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* amazonlinux support (#1728)Bernát Gábor2020-03-181-14/+9
| | | | | | | | | * Allow testing docker images Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * amazonlinux support Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* add zip importer test (#1727)Bernát Gábor2020-03-171-0/+23
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Fix Windows Store support (#1725)Bernát Gábor2020-03-171-10/+17
| | | | | | * Fix Windows Store support Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Allow missing .py files if .pyc is present (#1714)David Tucker2020-03-131-1/+34
| | | | | | | | | | | | | | | | | * Allow missing .py files if .pyc is present * Document packaging types we support Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * improve test Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * PyPy requires the standard library source files Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> Co-authored-by: Bernat Gabor <bgabor8@bloomberg.net>
* macOS Python 3 Framework support (#1711)Bernát Gábor2020-03-131-3/+1
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Fix py info might be misslead by distutils config (#1705)Bernát Gábor2020-03-101-5/+11
| | | | | | | Ignore configuration file parsing when getting distutils data. Resolves #1663. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* upgrade setuptools to 46.0.0 from 45.3.0 for Python3.5+ (#1702)Bernát Gábor2020-03-091-1/+0
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* add timeout for tests (#1700)Bernát Gábor2020-03-081-0/+1
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* pythonw works as python on Windows (#1693)Bernát Gábor2020-03-081-1/+6
| | | | | | | * pythonw works as python on Windows Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * foix
* use import hooks to patch distutils/setuptools (#1688)Bernát Gábor2020-03-041-10/+3
|
* Fix setting PYTHONPATH on Python 2 not working (#1673)Julien Danjou2020-03-032-10/+68
| | | | | | | | | - ensure we do not rewrite the ``PYTHONPATH`` - ensure we respect the ``-E`` flag Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
* Disable distutils fixup for python 3Bernat Gabor2020-02-261-1/+2
| | | | | | Until https://github.com/pypa/pip/issues/7778 is fixed and released. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* handle application data folder is read only (#1661)Seungmin Ryu2020-02-261-12/+11
| | | | | | | | | | | | | | | | | | | | * 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>