summaryrefslogtreecommitdiff
path: root/src/virtualenv/activation
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* xonosh is actually just xonshBernat Gabor2020-01-103-3/+3
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* support for pypy2 and pypy3 (#1482)Bernát Gábor2020-01-101-1/+1
|
* interface compatibility with before rewrite (#1479)Bernát Gábor2020-01-107-7/+7
| | | | | | 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>
* unicode support (#1477)Bernát Gábor2020-01-1012-28/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * creator unicode support Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * activator support Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix * add space * python3.4 support * Windows fixes * some fixes * fix powershell requires utf-16 * try to fix python2 windows Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * use utf-8 for activation scripts Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix * more fix Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * windows path py2.7 * fixes for Python 2 and unicode on Windows * do not single out mbcs, but the file system encoder * do not install pathlib python 2 windows Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix encoding on py35 Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Activation scripts for next-gen virtualenv (#1454)Siddhant Kumar2020-01-1019-6/+609
|
* Stat rewrite - POCBernát Gábor2020-01-102-0/+25
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>