native-api
0a1839d22a
Set up Github Actions CI ( #440 )
...
* Adjust tests: update Pip URLs, update expected output to match newer code
* Test library: improve failure message to eliminate the illusion of extra leading space in "actual" output
* Use Bats 1.2.0 like Pyenv
* Install greadlink for old MacOS
* Delete duplicate test
2022-10-12 21:30:36 +03:00
Ville Skyttä
4054162a1c
Fix errors when set -u is set in the user's shell ( #350 )
2022-10-12 07:41:29 +03:00
Drummond Ogilvie
862be21a32
fish: use "set -gx" instead of "setenv" ( #218 )
...
Use `set -gx` instead of `setenv` for fish shell.
Fix test "activate if the first virtualenv is a virtualenv": it was asserting
the output was of bash form, but not specifying that in the test — it now does.
Fixes https://github.com/pyenv/pyenv-virtualenv/issues/216 .
2017-06-08 21:52:57 +02:00
Yamashita, Yuu
5c2d7dc291
Use source in favor of . ( fixes #175 )
...
* https://github.com/yyuu/pyenv/pull/615
* https://github.com/fish-shell/fish-shell/issues/310
2016-05-30 00:13:49 +00:00
Yamashita, Yuu
c64aebef08
1) Made --quiet as opposite of --verbose 2) Suppress warning about prompts on --quiet
2016-05-07 13:40:32 +00:00
Sean Fisk
dbbbc33206
Evaluate ${PATH} when outputted code is eval'd.
...
It was previously evaluated when 'pyenv virtualenv-init' is run.
2016-03-01 01:12:06 -05:00
Yamashita, Yuu
ee18ffac9f
Change prompt after activate ( #52 )
2015-11-09 01:57:17 +00:00
Yamashita, Yuu
d2edf5dddb
Fix tests
2015-11-08 06:32:34 +00:00
Yamashita, Yuu
0fa5de07c9
fix broken tests
2015-11-06 18:26:23 +00:00
Yamashita, Yuu
ad2ada84ab
fix broken tests
2015-11-06 06:28:22 +00:00
Daniel Hahler
f594876f31
init: zsh: prepend hook to precmd_functions
...
This makes sure that $VIRTUAL_ENV is handled already in other precmd
functions, especially your prompt.
2015-11-02 17:52:59 +01:00
Bartosz Janda
f657fad926
Passing return value from executed command.
2015-10-15 20:37:00 +02:00
Jeremy
d86fd13797
Fix test to not have quotes expected in command eval for Fish
2015-09-24 14:39:24 +02:00
Yamashita, Yuu
25395f0331
activate: look for a conda environment if given name is not a pyenv's prefix
2015-07-19 03:38:48 +09:00
Yamashita, Yuu
be6701e7b6
Fix Error: too many arguments. on deactivating anaconda env
2015-07-19 01:04:23 +09:00
Daniel Hahler
8ca45c0e0a
init: fix shell detection when invoked from a script
...
- fixes `ps` command to lookup parent process
- adds `assert_output_contains_not` test helper
Ref: https://github.com/yyuu/pyenv/issues/373
2015-06-26 20:47:08 +02:00
Yamashita, Yuu
0ca01826e8
Merge pull request #78 from blueyed/shell-no-note-if-init
...
activate: do not display note if initialized already
2015-05-17 12:23:37 +09:00
Yamashita, Yuu
4fa9c7b220
Merge pull request #75 from blueyed/fix-zsh-typeset-precmd_functions
...
Use `typeset -g` with `precmd_functions`
2015-05-17 12:12:12 +09:00
Daniel Hahler
2571a2b973
activate: display setup instructions only with PYENV_VIRTUALENV_INIT=0
...
This fixes displaying the note, in case "init" has been run manually
and/or the init is not in the expected place.
It removes the unnecessary calls to "grep".
pyenv-virtualenv-init will look at `$PYENV_SHELL` now, too.
Tests have been adjusted/fixed.
2015-05-10 17:47:46 +02:00
Josh Hagins
5953ddaf64
Ignore failure of pyenv activate
...
When the current pyenv environment is not a virtualenv, this line
exits with a return code of 1. This is annoying for those of us
who report the last return code in our own PROMPT_COMMAND, so
ignore the output of `pyenv activate` if we're not currently using
a virtualenv.
2015-03-18 22:30:19 -04:00
Daniel Hahler
2ab9483116
Use typeset -g with precmd_functions
...
This makes it possible to use `eval "$(pyenv virtualenv-init -)"` from a
function.
2015-03-14 02:37:14 +01:00
Tony Wang
e04a6f88fe
fix wrong output in test in fish, refs 240a1de
...
"(any command)" is not supported in test in fish, we have to set a
variable and then use that
2015-01-06 11:10:43 +08:00
Tony Wang
240a1de6e5
fix warns for virtualenv-init corner case on fish
...
The situation is when in a directory containing python binary,
`pyenv prefix' will return empty (caused by `pyenv which' returning
"./python"). This change adds quotes for `test', otherwise `test' will
warn about missing argument.
2015-01-05 23:23:43 +08:00
Yamashita Yuu
ad0fa82329
Fix broken fish test ( #60 )
2014-12-16 23:04:35 +09:00
Yamashita Yuu
e774464ced
ignore error from pyenv-version-name since it might fail if there is configuration error ( yyuu/pyenv#291 )
2014-12-14 14:15:18 +09:00
Yamashita Yuu
58e93f9e0d
Fix test which has broken by 2060c43387
2014-10-27 11:04:42 +09:00
Yamashita Yuu
e655abbd41
Fix broken tests ( #47 )
2014-10-12 21:37:10 +09:00
Pedro Algarvio
81736da905
Indent to 2 spaces.
2014-08-13 19:51:22 +01:00
Pedro Algarvio
7304608e0f
Adapt tests to new output
2014-08-13 03:58:32 +01:00
Yamashita Yuu
6b4d6249a0
No need to use eval in fish init script
2014-07-05 07:27:12 +09:00
Yamashita Yuu
0de2cdbbc3
Should not persist PYENV_DEACTIVATE after failed attempt to deactivate and activate
2014-07-05 06:53:46 +09:00
Yamashita Yuu
abfda4bac9
Fix issues with manual activation of virtual environments ( #34 )
2014-07-04 22:55:06 +09:00
Yamashita Yuu
d4ce853e94
Display information on automatic (de)?activation
2014-07-04 22:44:05 +09:00
Yamashita Yuu
08b4c94f85
Use PYENV_DEACTIVATE to store which virtualenv has been deactivated ( #32 )
2014-06-30 23:03:37 +09:00
Yamashita Yuu
7079cbe979
Fix broken setenv in pyenv-virtualenv-init
2014-06-30 21:35:53 +09:00
Yamashita Yuu
6761ed09cd
Add test for pyenv-virtualenv-init
2014-06-04 20:48:22 +09:00