Yamashita, Yuu
59bc189bec
Basically `/` should not be allowed as a part of name of virtualenv
há 8 anos
Yamashita, Yuu
83bc6a49e4
Restore variables set by `activate` script of virtualenv properly ( #150 )
The `activate` script does't export the variables of `_OLD_VIRTUAL_*`,
most the deactivation code needed to be moved to `sh-deactivate`.
há 8 anos
Yamashita, Yuu
25bf4a6155
Unset environment variables to pass tests while activated
há 8 anos
Yamashita, Yuu
bb623bd8bf
Prevent removing symlinks bound to different version ( #106 )
há 9 anos
Yamashita, Yuu
ee18ffac9f
Change prompt after `activate` ( #52 )
há 9 anos
Yamashita, Yuu
c1b9238cbe
Reject creating a virtualenv named `system` ( yyuu/pyenv#475 )
há 9 anos
Yamashita, Yuu
bdd52a79cd
Revert `PYENV_DEACTIVATE` for backward compatibility
há 9 anos
Yamashita, Yuu
d2edf5dddb
Fix tests
há 9 anos
Yamashita, Yuu
0fa5de07c9
fix broken tests
há 9 anos
Yamashita, Yuu
ad2ada84ab
fix broken tests
há 9 anos
Yamashita, Yuu
270c379a32
rename tests
há 9 anos
Yamashita, Yuu
07b31aa2f6
Add tests for `virtualenv-delete`
há 9 anos
Yamashita, Yuu
c6a705b1d9
Setup `CONDA_DEFAULT_ENV` only if `conda` executable exists
há 9 anos
Yamashita, Yuu
8038659299
Create virtualenv inside `envs` directory as similar as Anaconda
há 9 anos
Yamashita, Yuu
64ceee5c8e
Stop using virtualenv's `activate` script ( #69 )
há 9 anos
Yamashita, Yuu
2ae921c253
Treat all versions with `activate` script as a virtual environment
há 9 anos
Yamashita, Yuu
72cf0e1b1b
v20151103
há 9 anos
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.
há 9 anos
Bartosz Janda
f657fad926
Passing return value from executed command.
há 9 anos
Yamashita, Yuu
6a6947659a
v20151006
há 9 anos
Yamashita, Yuu
249759aa04
add foolproof for `-p` argument.
find proper source version from pyenv if the given executable is only
basename or is a shim script.
há 9 anos
Jeremy
d86fd13797
Fix test to not have quotes expected in command eval for Fish
há 9 anos
Yamashita, Yuu
7b34f7234e
Fix broken test
há 9 anos
Yamashita, Yuu
e535faea4d
Ignore user's site-packages on ensurepip/get-pip ( #89 )
https://www.python.org/dev/peps/pep-0370/
há 9 anos
Yamashita, Yuu
90531a6a48
v20150719
há 9 anos
Yamashita, Yuu
b32d357353
Add tests for conda
há 9 anos
Yamashita, Yuu
cdbf7c9972
activate "root" environment of anaconda/miniconda if environment name is not given
há 9 anos
Yamashita, Yuu
25395f0331
activate: look for a conda environment if given name is not a pyenv's prefix
há 9 anos
Yamashita, Yuu
be6701e7b6
Fix `Error: too many arguments.` on deactivating anaconda env
há 9 anos
Yamashita, Yuu
e1523811fb
fix broken test
há 9 anos
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
há 9 anos
Yamashita Yuu
e261806f96
Skip installing `setuptools` explicitly with using `ez_setup.py` ( yyuu/pyenv#381 )
It will be done by `get-pip.py` and we don't have to do anything explicitly.
há 9 anos
Yamashita Yuu
9a52f9fb5d
v20150526
First release after my son's birth....
há 9 anos
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.
há 9 anos
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.
há 9 anos
Daniel Hahler
2ab9483116
Use `typeset -g` with `precmd_functions`
This makes it possible to use `eval "$(pyenv virtualenv-init -)"` from a
function.
há 9 anos
Yamashita Yuu
32e5a73345
v20150119
há 9 anos
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
há 9 anos
Tony Wang
cc7c9d22b5
fix failed tests running under fish
há 9 anos
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.
há 9 anos
Yamashita Yuu
191e806ba9
shell version set in `activate` should be unset in `deactivate` ( #61 )
há 9 anos
Yamashita Yuu
ad0fa82329
Fix broken fish test ( #60 )
há 9 anos
Yamashita Yuu
e774464ced
ignore error from `pyenv-version-name` since it might fail if there is configuration error ( yyuu/pyenv#291 )
há 9 anos
Yamashita Yuu
ad644e83b5
v20141106
há 10 anos
Yamashita Yuu
58e93f9e0d
Fix test which has broken by 2060c43387
há 10 anos
Yamashita Yuu
a02eb0a396
Calling `create_symlinks` after `ensurepip` is unnecessary
Install script of setuptools-6.1/pip-1.5.6 will create those links if needed
há 10 anos
Yamashita Yuu
1d36ef2f68
v20141012
há 10 anos
Yamashita Yuu
e655abbd41
Fix broken tests ( #47 )
há 10 anos
Daniel Hahler
86046fd4e8
Do not allow whitespace in VIRTUALENV_NAME
While this could work in general, it fails in the end, because
whitespace is not allowed/supported in the shebang line with the
scripts in the created virtualenv.
há 10 anos
Pedro Algarvio
81736da905
Indent to 2 spaces.
há 10 anos