summaryrefslogtreecommitdiff
path: root/src/virtualenv/activation
Commit message (Collapse)AuthorAgeFilesLines
* feat: ✨ update and simplify nushell activation (#2572)HEADmainMel Massadian2023-05-171-36/+12
|
* 3.12 support and no setuptools/wheel on 3.12+ (#2558)chrysle2023-04-271-1/+2
|
* prevent PermissionError when using venv creator on some systems (#2543)Jakub Kulík2023-04-271-0/+4
|
* Drop Python 2 support (#2548)Bernát Gábor2023-04-1911-11/+23
|
* update nushell's str collect command to str join (#2532)Darren Schroeder2023-03-311-2/+2
| | | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Update Nushell 'let' syntax (#2527)JT2023-03-211-11/+11
|
* Using explicit closure syntax (#2512)WindSoilder2023-03-101-3/+3
|
* Simplify environment lookup in Nushell activation (#2506)Jakub Žádník2023-02-271-1/+1
|
* Fix wrong prompt in Nushell activation script (#2481)Jakub Žádník2023-01-131-1/+1
| | | Fixes https://github.com/pypa/virtualenv/issues/2480
* Move to hatchling, drop 3.6 support (#2474)Bernát Gábor2022-12-292-6/+3
|
* Respect `VIRTUAL_ENV_DISABLE_PROMPT` in nushell activation script (#2458)m-lima2022-12-051-28/+52
| | | Fixes https://github.com/pypa/virtualenv/issues/2461
* Do not use deprecated API (#2448)Bernát Gábor2022-11-278-25/+22
|
* Change Nushell activation script to module (#2422)Jakub Žádník2022-11-273-56/+17
|
* Upgrade pip and setuptools (#2434)Bernát Gábor2022-10-251-1/+1
|
* Do not turn echo off for subsequent commands in batch activators (#2411) (#2412)Paweł Szramowski2022-09-072-37/+33
| | | Co-authored-by: Paweł Szramowski <pawel.szramowski@gmail.com>
* Bump dependencies and build tools (#2394)Bernát Gábor2022-08-042-6/+6
| | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Port Nushell activation scripts to 0.67 (#2386)Jakub Žádník2022-07-262-28/+28
|
* Drop support of running under Python 2.7 (#2382)Bernát Gábor2022-07-2511-58/+68
|
* Update Nushell activation scripts to 0.60 (#2321)Jakub Žádník2022-03-252-48/+120
|
* fish: PATH variables should not be quoted when being set (#2248)David Dorfman2021-12-271-2/+2
|
* ?? prompt should be wrapped in paranthesis ?? (#2224)Tushar Sadhwani2021-10-316-7/+7
| | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix broken prompt set up by activate.bat (#2225) (#2226)SiggyBar2021-10-281-4/+4
|
* special-case `--prompt .` to the cwd (#2220)Ruairidh MacLeod2021-10-231-1/+2
| | | Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
* Remove stray closing parenthesis in activate.bat (#2221)SiggyBar2021-10-231-1/+0
|
* Improve prompt nushell (#2190)Fernando Herrera2021-09-181-4/+5
|
* Nushell activation scripts (#2170)Fernando Herrera2021-09-164-0/+81
|
* Remove xonsh activator (#2160)Bernát Gábor2021-07-313-62/+0
| | | Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
* Remove unnecessary special cases for bash/zsh (#2086)orent2021-04-201-12/+8
| | | Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Allow unfunctioing pydoc to fail (#2049)Dario Gjorgjevski2021-01-121-1/+1
|
* Fix absolute paths for Cygwin (#1970)davidcoghlan2020-10-122-14/+4
| | | | | | | | | | | | | | | | | | | * 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
* Fix cygwin NoneType error if POSIX path in dest (#1964)Dan Yeaw2020-10-031-1/+4
| | | | Closes #1962. Corrects an AttributeError for a regex match not found if the cygwin path is already in posix format.
* Fix activator path in cygwin and msys2 (#1952)Dan Yeaw2020-09-301-1/+11
| | | | | | 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.
* Use unix line-endings in bash activate script (#1924)Siddhant Kumar2020-08-232-65/+67
| | | Co-authored-by: Bernat Gabor <bgabor8@bloomberg.net>
* Bump linters (#1823)Bernát Gábor2020-05-121-1/+1
|
* Fix python 2 activator when generated from python 3 is invalid (#1805)Bernát Gábor2020-05-032-2/+8
|
* Fix cross-major creation on Windows of activate_this.py throws… (#1730)Bernát Gábor2020-03-181-2/+2
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Default prompt of environment name in batch shell (#1679)spetafree2020-03-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Default prompt of environment name in batch shell * Handle batch prompt in activate.bat * change test folder name to aviod bat escapes * run activation tests with and without prompt * test for correct prompt in batch (only, for now) * Try to normalize path in batch tests * update description * Update 1679.bugfix.rst * Update conftest.py * Update conftest.py Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * better names Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
* Lower min version of six to 1.9 (#1606)Sorin Sbarnea2020-02-133-11/+12
| | | | | This change should allow installation of virtualenv on systems with older six where their LTS support may prevent them from upgrading it.
* fix Virtualenv name not correctly shown on Fish (#1587) (#1594)txp3142020-02-121-1/+1
|
* rewrite the documentation (#1519)Bernát Gábor2020-02-041-4/+25
|
* generate fish and bash activators on Windows (#1528)Bernát Gábor2020-01-312-8/+0
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fish prompt: preserve pipestatus (#1530)Johannes Altmanninger2020-01-301-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | The upcoming release fish 3.1.0 provides a variable $pipestatus, that exposes the exit code of each process in a pipeline. This $pipestatus is also used by the new default prompt. Presently, $status is restored but not $pipestatus, so a prompt displaying the pipestatus is wrong: expected: (env) $ false | true | false (env) [1|0|1] $ actual: (env) $ false | true | false (env) [0|1] $ The wrong $pipestatus is because `echo 'exit 1' | source` is used to restore the $status. This commit solves this problem more elegantly by running the user's prompt immediately, and printing it later. Uses the fish builtin "string" command which exists since fish 2.3b1 (released April 19, 2016) so that's unlikely to cause problems.
* Bash activator should have no extension #1508 (#1509)Bernát Gábor2020-01-282-1/+8
| | | | | | This is how things worked without the rewrite and in venv so consolidating. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* support for c-extension builds within virtualenv (#1503)Bernát Gábor2020-01-274-46/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-211-2/+2
| | | | | | | | | | | | | | | | * 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-182-2/+2
| | | | | | | | | | | | | | | | | * 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>
* fix WindowsBernat Gabor2020-01-103-10/+22
|
* reorganize run.py - prefer inheritence based API over generatorsBernat Gabor2020-01-101-1/+1
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* importlib-resources should be preferd over pkg_dataBernat Gabor2020-01-101-2/+7
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* with json.dump we can enable black on activate_thisBernat Gabor2020-01-101-6/+4
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>