Yamashita, Yuu
48b491f343
Add test helpers for virtualenv, pyvenv and conda
8 år sedan
Yamashita, Yuu
6a2b77ed5b
Fix tests
8 år sedan
Yamashita, Yuu
a67be6dbe7
Update README about `conda create`
8 år sedan
Yamashita, Yuu
789c349570
Allow specifying python version for conda via `-p` or `--python`
8 år sedan
Yamashita, Yuu
bad8dcf768
Use `conda create` to create virtualenv if the source version is a Anaconda/Miniconda
8 år sedan
Yamashita, Yuu
116e133c90
Activate a virtualenv of current version if specified version is not a virtualenv
```sh
% pyenv versions
system
* miniconda3-3.16.0 (set by PYENV_VERSION environment variable)
miniconda3-3.16.0/envs/venv
% pyenv activate venv
pyenv-virtualenv: deactivate miniconda3-3.16.0
pyenv-virtualenv: activate miniconda3-3.16.0/envs/venv
```
8 år sedan
Yamashita, Yuu
35732c8393
Merge branch 'virtualenv-without-python-executable'
8 år sedan
Yamashita, Yuu
c3d044d70a
Only use premitives in which hooks to avoid infinite loop ( #104 )
8 år sedan
Yamashita, Yuu
bdda7214a8
Should not try to find system-site-packages if virtualenv is a conda's environment ( #104 )
8 år sedan
Yamashita, Yuu
1edff311d5
exits as error if the virtual environment doesn't have `python` executable ( #104 )
conda's environment might not have `python` executable. If the prefix
doesn't contain `python` in it, `pyenv-which` might be ran into infinite
loop if some of `which` hooks invoke `pyenv-virtualenv-prefix`.
8 år sedan
Yamashita, Yuu
353062df09
Merge pull request #124 from yyuu/deactivation-before-activation-should-not-return-non-zero
Deactivation before activation should not return as non-zero
8 år sedan
Yamashita, Yuu
aae07d1318
Deactivation before activation should not return as non-zero ( fixes #116 )
8 år sedan
Yamashita, Yuu
aea9eda680
Merge pull request #123 from yyuu/remove-pyenv-deactivate
Remove `PYENV_DEACTIVATE`
8 år sedan
Yamashita, Yuu
5e92253943
Fix broken `--skip-aliases`
8 år sedan
Yamashita, Yuu
0bbb12a3bf
Use glob to check if the virtualenv is inside pyenv's prefix or not
8 år sedan
Yamashita, Yuu
4e9d697887
Suppress message about `virtualenv-init` if `-quiet` given ( fixes #122 )
8 år sedan
Yamashita, Yuu
5f87786adf
Remove `PYENV_DEACTIVATE` ( fixes #121 )
This means that pyenv-virtualenv will not allow manual deactivation of
virtualenv if pyenv-virtualenv-init is enabled. This must be acceptable
since the activation of virtualenv is just setting of environment
variables in current implementation.
8 år sedan
Yamashita, Yuu
f92a3a26c5
Add `--skip-aliases` to `pyenv virtualenvs` ( fixes #120 )
8 år sedan
Yamashita, Yuu
5fd9cf826d
Merge branch 'slashes'
8 år sedan
Yamashita, Yuu
59bc189bec
Basically `/` should not be allowed as a part of name of virtualenv
8 år sedan
Yamashita, Yuu
ede56c1c2e
Merge pull request #119 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
8 år sedan
The Gitter Badger
34ee1a47d7
Add Gitter badge
8 år sedan
Yamashita, Yuu
caa5832b8a
Allow manual activation of virtualenvs inside `$(pyenv-root)/versions` ( #115 )
8 år sedan
Yamashita, Yuu
de1deb1e81
Merge branch 'non-pyenv-virtualenv'
8 år sedan
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`.
8 år sedan
Yamashita, Yuu
47feedc934
exits as 0 if there is some virtualenv outside from pyenv is already activated ( #114 )
8 år sedan
Yamashita, Yuu
a73817eecc
Use canonical name for `VIRTUAL_ENV` as a workaround for IPython ( fixes #113 )
8 år sedan
Yamashita, Yuu
25bf4a6155
Unset environment variables to pass tests while activated
8 år sedan
Yamashita, Yuu
0b9b19232a
Skip creating `$(pyenv root)/versions/system/envs/` directory for virtualenv from `system`
8 år sedan
Yamashita, Yuu
bb623bd8bf
Prevent removing symlinks bound to different version ( #106 )
9 år sedan
Yamashita, Yuu
3152718bfd
Merge branch 'restore-prompt'
9 år sedan
Yamashita, Yuu
ee18ffac9f
Change prompt after `activate` ( #52 )
9 år sedan
Yamashita, Yuu
c1b9238cbe
Reject creating a virtualenv named `system` ( yyuu/pyenv#475 )
9 år sedan
Yamashita, Yuu
6ac8afbcff
Merge pull request #111 from yyuu/activate-on-multiple-versions
Change `activate` behavior on multiple versions
9 år sedan
Yamashita, Yuu
950a742be3
Add short options
9 år sedan
Yamashita, Yuu
bdd52a79cd
Revert `PYENV_DEACTIVATE` for backward compatibility
9 år sedan
Yamashita, Yuu
d2edf5dddb
Fix tests
9 år sedan
Yamashita, Yuu
f7d1aa7d94
Allow activating first version of virtualenv even if there are multiple versions in pyenv ( #105 )
9 år sedan
Yamashita, Yuu
ce6ec4f173
Merge pull request #110 from yyuu/init-refactor
Refactor init code
9 år sedan
Yamashita, Yuu
0fa5de07c9
fix broken tests
9 år sedan
Yamashita, Yuu
017d20ad91
remove unnecessary logic from init script
9 år sedan
Yamashita, Yuu
7f33ddd911
prompt should be managed by users, not by tools
9 år sedan
Yamashita, Yuu
8731e9bf14
replaced `--no-error` by `--quiet`
9 år sedan
Yamashita, Yuu
bf7e9ba59a
Show `activating...` messages by default
9 år sedan
Yamashita, Yuu
dae2788f56
Update LICENSE
9 år sedan
Yamashita, Yuu
2a8d0f40b4
Update README.md
9 år sedan
Yamashita, Yuu
6523d00f9c
Merge pull request #108 from yyuu/hook-source-activate
dd a script to hook `source activate` for Anaconda/Miniconda
9 år sedan
Yamashita, Yuu
c54d480135
fix broken installer script
9 år sedan
Yamashita, Yuu
e79ca1d53f
add shim for `deactivate`
9 år sedan
Yamashita, Yuu
ad2ada84ab
fix broken tests
9 år sedan