Commit graph

163 commits

Author SHA1 Message Date
Sam Doran fed3b04d2f
Remove warning for no virtualenvs 2026-04-23 17:29:19 -04:00
Sam Doran f966c97adf
Update tests and add more test cases
Update the existing tests based on new behavior/output format.
Add additional tests to cover scenarios that were not previously tested.
2026-04-23 17:29:18 -04:00
Sam Doran f9d1686cfa
Correct test setup so aliases are properly symlinked 2026-04-23 17:29:18 -04:00
Sam Doran 6443dea0b9
Update tests 2026-04-23 17:29:17 -04:00
Chris Caldwell 99d35f201c
Fix POSIX sh (dash) compatibility in pyenv-virtualenv-init (#526)
* Refactor cache code generation
* Don't generate prompt_command for non bash/zsh/fish

---------

Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2026-04-21 18:53:01 +03:00
Jake Lodwick 72cb35b2b4
Drastically speed up precommand hook by caching active version to skip redundant activate calls (#523) 2026-03-25 23:33:43 +03:00
Ivan Pozdeev 10c8ace3c3
Fix a race condition between concurrently executing stubs 2025-12-18 03:47:17 +03:00
Ivan Pozdeev 7d9840478c
stub: -unnecessary indirection 2025-12-18 03:47:16 +03:00
Ivan Pozdeev bf7d3b0584
stub, test_helper: support concurrent, out-of-order and multiple-times stub command execution 2025-12-18 03:46:38 +03:00
Ivan Pozdeev dd2ad3ee65
stub: dumping the plan vars is redundant
They proved to not be useful for diagnostics
2025-12-18 03:30:05 +03:00
native-api c6bb0694bf
Fix pyenv-virtualenv using a different Python version in a conda environment (#492)
Some checks failed
tests / tests (ubuntu-22.04) (push) Failing after 0s
tests / tests (macos-13) (push) Has been cancelled
tests / tests (macos-14) (push) Has been cancelled
tests / tests (ubuntu-20.04) (push) Has been cancelled
Allow output checking with wildcards
2024-11-25 00:54:05 +03:00
Jovier Jimenez d4c9655e26
Add prompt customization (#476)
Some checks failed
tests / tests (ubuntu-22.04) (push) Failing after 1s
tests / tests (macos-13) (push) Has been cancelled
tests / tests (macos-14) (push) Has been cancelled
tests / tests (ubuntu-20.04) (push) Has been cancelled
2024-09-15 09:40:44 +03:00
native-api d811b3fef2
Merge pull request #484 from native-api/pyenv_latest_f
Reflect pyenv-latest switch change in 2.4.8
2024-07-22 00:34:28 +03:00
Ivan Pozdeev 6179ac76c4 Reflect pyenv-latest switch change in 2.4.8 2024-07-21 23:31:47 +03:00
native-api 37917069ec
Fix failing to detect -m venv when "python" is not provided by the distro (#479) 2024-04-10 00:14:13 +03:00
Ivan Pozdeev ac28398fc0 Don't activate if a 3rd-party virtualenv is active over ours 2024-04-03 21:09:22 +03:00
Ivan Pozdeev 45a28ac094 bump stub and stub fns to Pyenv version 2024-04-03 21:09:22 +03:00
Romir K 0f83c33a3b
Add fish prompt changing (#475) 2024-02-12 12:58:27 +03:00
native-api c85c1c9ed5
Link python*-config into VE (#460)
Required to build binaries that link against Python.
Carl Meyer, the champion for PEP 0405, has confirmed that there isn't a particular reason why `venv` doesn't do that.
2023-06-27 01:36:04 +03:00
Marcin Konowalczyk 85d8c5aabf
More helpful error message when env's base version is not installed (#454) 2023-04-10 21:42:47 +03:00
Josh French fca12418ca
Add activate/deactivate hooks (#452) 2023-03-22 20:39:55 +03:00
native-api 77a7644ff7
Remove prompt deprecation warning (#447)
Prompt removal was never done and is not planned anymore
2023-01-31 23:14:52 +03:00
native-api a6ab660b72
Support a prefix resolved by pyenv-latest as base version (#446) 2023-01-29 23:47:22 +03:00
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
Alain Kalker 017ea60cd3
Fix another unbound variable error (#424)
* Fix tests failing after #423
2022-01-30 21:14:28 +03:00
Yamashita, Yuu a9e1891e8b Prefer python3.x executable if avaialble (closes #206, #282) 2019-01-12 05:38:21 +00:00
Yamashita, Yuu 0b24ff557e I should have used custom GET_PIP_URL for 3.3 2018-03-29 01:07:48 +00:00
Yamashita, Yuu 927914b25f Make sure pydoc executable exists after creating virtualenv 2017-08-23 11:14:42 +00:00
Christoph Paulik f64c8ed0dd Set CONDA_PREFIX to make is useable in conda activate/deactivate scripts. 2017-07-20 15:53:55 +02: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 a3bc42cb93 v1.0.0 (yyuu/pyenv#520) 2016-08-15 08:45:05 +00:00
Yamashita, Yuu 8c7dd01954 Replaced pyvenv by -m venv 2016-07-16 06:50:50 +00:00
Yamashita, Yuu 99a90ab774 Fix still broken tests 2016-07-16 06:43:47 +00:00
Yamashita, Yuu 187156d600 Use python -m venv instead on pyvenv in tests 2016-07-16 06:31:30 +00: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 d9391b4fb9 Add tests for conda's package activate/deactivate script 2016-05-25 00:53:44 +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
puhitaku 62e32f9cb3 Fix test: add unsets 2016-04-15 11:56:28 +09:00
puhitaku 8ab4463d80 Fix test: unnecessary env 2016-04-13 11:44:21 +09:00
puhitaku 34dc769a5d Fix test: conda env 2016-04-13 11:40:47 +09:00
puhitaku 16597f0bb8 Fix test: deactivate 2016-04-13 11:40:17 +09:00
puhitaku fa0876685e Fix test: wrongly removed lines 2016-04-13 11:27:00 +09:00
puhitaku ab5b5b9221 Fix tests 2016-04-08 17:27:11 +09:00
shangsunset 55f7e3e1e1 fix minor typos in test 2016-03-26 23:25:14 -04:00
shangsunset d26852e274 fix minor typos in test 2016-03-25 19:24:58 -04: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 1f761275cd Install virtualenv 13.1.2 for CPython 3.2 (yyuu/pyenv#531) 2016-01-30 04:34:23 +00:00
Yamashita, Yuu 13b7dc172a need to use functions -q to check existence of the function in fish (#136) 2015-12-29 09:03:31 +00:00
Yamashita, Yuu bc5d308d05 Remove version string from test 2015-12-22 10:37:22 +00:00