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
před 1 rokem
Ville Skyttä
4054162a1c
Fix errors when `set -u` is set in the user's shell ( #350 )
před 1 rokem
Alain Kalker
017ea60cd3
Fix another unbound variable error ( #424 )
* Fix tests failing after #423
před 2 roky
Yamashita, Yuu
a9e1891e8b
Prefer `python3.x` executable if avaialble ( closes #206 , #282 )
před 5 roky
Yamashita, Yuu
0b24ff557e
I should have used custom `GET_PIP_URL` for 3.3
před 6 roky
Yamashita, Yuu
927914b25f
Make sure pydoc executable exists after creating virtualenv
před 7 roky
Christoph Paulik
f64c8ed0dd
Set CONDA_PREFIX to make is useable in conda activate/deactivate scripts.
před 7 roky
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 .
před 7 roky
Yamashita, Yuu
a3bc42cb93
v1.0.0 ( yyuu/pyenv#520 )
před 8 roky
Yamashita, Yuu
8c7dd01954
Replaced `pyvenv` by `-m venv`
před 8 roky
Yamashita, Yuu
99a90ab774
Fix still broken tests
před 8 roky
Yamashita, Yuu
187156d600
Use `python -m venv` instead on `pyvenv` in tests
před 8 roky
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
před 8 roky
Yamashita, Yuu
d9391b4fb9
Add tests for conda's package activate/deactivate script
před 8 roky
Yamashita, Yuu
c64aebef08
1) Made `--quiet` as opposite of `--verbose` 2) Suppress warning about prompts on `--quiet`
před 8 roky
puhitaku
62e32f9cb3
Fix test: add unsets
před 8 roky
puhitaku
8ab4463d80
Fix test: unnecessary env
před 8 roky
puhitaku
34dc769a5d
Fix test: conda env
před 8 roky
puhitaku
16597f0bb8
Fix test: deactivate
před 8 roky
puhitaku
fa0876685e
Fix test: wrongly removed lines
před 8 roky
puhitaku
ab5b5b9221
Fix tests
před 8 roky
shangsunset
55f7e3e1e1
fix minor typos in test
před 8 roky
shangsunset
d26852e274
fix minor typos in test
před 8 roky
Sean Fisk
dbbbc33206
Evaluate ${PATH} when outputted code is eval'd.
It was previously evaluated when 'pyenv virtualenv-init' is run.
před 8 roky
Yamashita, Yuu
1f761275cd
Install virtualenv 13.1.2 for CPython 3.2 ( yyuu/pyenv#531 )
před 8 roky
Yamashita, Yuu
13b7dc172a
need to use `functions -q` to check existence of the function in fish ( #136 )
před 8 roky
Yamashita, Yuu
bc5d308d05
Remove version string from test
před 8 roky
Yamashita, Yuu
2d73d058bd
Fix wrong library path for virtualenv on PyPy/Jython ( fixes #134 )
před 8 roky
Yamashita, Yuu
1e88df88a9
Rewrite virtualenv-prefix without executing python ( #132 )
před 8 roky
Yamashita, Yuu
17d22e7a13
Add `PYENV_VIRTUAL_ENV` to check if the virtualenv has been activated via pyenv-virtualenv or not ( #128 )
před 8 roky
Yamashita, Yuu
a5d406a545
Add tests for extra `envs` in `PYENV_ROOT`
před 8 roky
Yamashita, Yuu
9c49fcd734
Fix broken tests
před 8 roky
Yamashita, Yuu
6e91d75069
Stop showing message about `pyenv virtualenv-init` on activate ( #122 )
`pyenv virtualenv-init` is just an option. Always showing message about
it would be too much to do.
před 8 roky
Yamashita, Yuu
fa11d65bf6
Add tests for `conda create`
před 8 roky
Yamashita, Yuu
48b491f343
Add test helpers for virtualenv, pyvenv and conda
před 8 roky
Yamashita, Yuu
6a2b77ed5b
Fix tests
před 8 roky
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
```
před 8 roky
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`.
před 8 roky
Yamashita, Yuu
aae07d1318
Deactivation before activation should not return as non-zero ( fixes #116 )
před 8 roky
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.
před 8 roky
Yamashita, Yuu
59bc189bec
Basically `/` should not be allowed as a part of name of virtualenv
před 8 roky
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`.
před 8 roky
Yamashita, Yuu
25bf4a6155
Unset environment variables to pass tests while activated
před 8 roky
Yamashita, Yuu
bb623bd8bf
Prevent removing symlinks bound to different version ( #106 )
před 9 roky
Yamashita, Yuu
ee18ffac9f
Change prompt after `activate` ( #52 )
před 9 roky
Yamashita, Yuu
c1b9238cbe
Reject creating a virtualenv named `system` ( yyuu/pyenv#475 )
před 9 roky
Yamashita, Yuu
bdd52a79cd
Revert `PYENV_DEACTIVATE` for backward compatibility
před 9 roky
Yamashita, Yuu
d2edf5dddb
Fix tests
před 9 roky
Yamashita, Yuu
0fa5de07c9
fix broken tests
před 9 roky
Yamashita, Yuu
ad2ada84ab
fix broken tests
před 9 roky