Ivan Pozdeev
74c6efe2f4
Adapt tests involving current directory for Docker
...
In Docker CI tests, the default current dir is read-only
2026-07-11 08:02:53 +03:00
native-api
95df7dbc7b
Merge commit from fork
2026-07-11 07:22:46 +03:00
max
e4c462dc70
Fix typos in docs, scripts, and tests ( #3490 )
macos_build / macos_build (3.10) (push) Has been cancelled
macos_build / macos_build (3.11) (push) Has been cancelled
macos_build / macos_build (3.12) (push) Has been cancelled
macos_build / macos_build (3.13) (push) Has been cancelled
macos_build / macos_build (3.14) (push) Has been cancelled
pyenv_tests / pyenv_tests (macos-14) (push) Has been cancelled
pyenv_tests / pyenv_tests (macos-15) (push) Has been cancelled
pyenv_tests / pyenv_tests (macos-15-intel) (push) Has been cancelled
pyenv_tests / pyenv_tests (macos-26) (push) Has been cancelled
pyenv_tests / pyenv_tests (ubuntu-22.04) (push) Has been cancelled
pyenv_tests / pyenv_tests (ubuntu-24.04) (push) Has been cancelled
ubuntu_build / ubuntu_build (3.10) (push) Has been cancelled
ubuntu_build / ubuntu_build (3.11) (push) Has been cancelled
ubuntu_build / ubuntu_build (3.12) (push) Has been cancelled
ubuntu_build / ubuntu_build (3.13) (push) Has been cancelled
ubuntu_build / ubuntu_build (3.14) (push) Has been cancelled
2026-07-08 18:03:00 +03:00
native-api
044d816d35
which: update pyenv help global tip ( #3424 )
2026-03-14 11:23:19 +03:00
Ivan Pozdeev
7418835908
Prevent infinite loop if a shim is linked and called from a nonstandard location with "system" active
2025-12-20 11:05:27 +03:00
Ivan Pozdeev
b259813357
tests: refactor: rename and consolidate create_executable() functions
2025-12-20 08:34:20 +03:00
rockandska
8990110dcf
upgrade bats to v1.10.0
...
fix bats warnings
2025-09-15 16:45:02 +02:00
Ivan Pozdeev
86be59a6d5
Tolerate nonexistent versions from pyenv-version-name in pyenv-which
...
pyenv_tests / pyenv_tests (ubuntu-22.04) (push) Failing after 0s
ubuntu_build / ubuntu_build (3.10) (push) Failing after 0s
ubuntu_build / ubuntu_build (3.11) (push) Failing after 0s
ubuntu_build / ubuntu_build (3.12) (push) Failing after 0s
ubuntu_build / ubuntu_build (3.13) (push) Failing after 0s
ubuntu_build / ubuntu_build (3.9) (push) Failing after 0s
macos_build / macos_build (3.10) (push) Has been cancelled
macos_build / macos_build (3.11) (push) Has been cancelled
macos_build / macos_build (3.12) (push) Has been cancelled
macos_build / macos_build (3.13) (push) Has been cancelled
macos_build / macos_build (3.9) (push) Has been cancelled
pyenv_tests / pyenv_tests (macos-13) (push) Has been cancelled
pyenv_tests / pyenv_tests (macos-14) (push) Has been cancelled
pyenv_tests / pyenv_tests (ubuntu-20.04) (push) Has been cancelled
Addendum to #3134 as per https://github.com/pyenv/pyenv/pull/3134#issuecomment-2545710044
2024-12-16 21:36:14 +03:00
native-api
dc873cf568
Support missing versions being present and set in a local .python-version ( #3134 )
...
macos_build / macos_build (3.10) (push) Waiting to run
macos_build / macos_build (3.11) (push) Waiting to run
macos_build / macos_build (3.12) (push) Waiting to run
macos_build / macos_build (3.13) (push) Waiting to run
macos_build / macos_build (3.9) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-13) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-14) (push) Waiting to run
pyenv_tests / pyenv_tests (ubuntu-20.04) (push) Waiting to run
pyenv_tests / pyenv_tests (ubuntu-22.04) (push) Failing after 1s
ubuntu_build / ubuntu_build (3.10) (push) Failing after 1s
ubuntu_build / ubuntu_build (3.11) (push) Failing after 0s
ubuntu_build / ubuntu_build (3.12) (push) Failing after 0s
ubuntu_build / ubuntu_build (3.13) (push) Failing after 1s
ubuntu_build / ubuntu_build (3.9) (push) Failing after 1s
Requested in https://github.com/pyenv/pyenv/issues/2680
for deployments with a stock `.pyenv-version` that can use any
of a number of Python versions
and for compatibility with `uv`.
* Support `pyenv local --force`
* Support `pyenv-version-file-write --force`
* Support `pyenv version-name --force`
* Ignore missing versions when searching for executables
* Display "commmand not found" even when there are nonexistent versions
* exec.bats: replace `python` and `rspec` with something that doesn't exist globally, either
in Ubuntu Github CI, `python` exists globally
2024-12-16 02:32:45 +03:00
Jon Crall
672eef1561
Speed up pyenv prefix by not constructing advice text when it would be discarded ( #3005 )
...
macos_build / macos_build (3.10) (push) Waiting to run
macos_build / macos_build (3.11) (push) Waiting to run
macos_build / macos_build (3.12) (push) Waiting to run
macos_build / macos_build (3.8) (push) Waiting to run
macos_build / macos_build (3.9) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-13) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-14) (push) Waiting to run
pyenv_tests / pyenv_tests (ubuntu-20.04) (push) Waiting to run
pyenv_tests / pyenv_tests (ubuntu-22.04) (push) Failing after 16s
ubuntu_build / ubuntu_build (3.10) (push) Failing after 1s
ubuntu_build / ubuntu_build (3.11) (push) Failing after 1s
ubuntu_build / ubuntu_build (3.12) (push) Failing after 1s
ubuntu_build / ubuntu_build (3.8) (push) Failing after 1s
ubuntu_build / ubuntu_build (3.9) (push) Failing after 1s
by adding an internal flag
2024-07-04 03:49:12 +03:00
native-api
c20fc7bd6a
Fix pyenv which to support auto-resolved prefixes ( #2601 )
...
* Resolve version name that hooks see
* Avoid a 2nd iteration over configured versions
2023-01-22 18:22:26 +03:00
Brian Dowling
a8ca63fcc0
Update help docs to clarify multiple version(s) are allowed ( #1197 )
...
* Update help docs to clarify multiple version(s) are allowed
* Tweek version(s) help description
2020-03-19 17:35:46 -04:00
Yamashita, Yuu
83f97ef2b3
Merge remote-tracking branch 'rbenv/master' into rbenv-20180402
2018-04-02 01:46:48 +00:00
Daniel Hahler
a9ca72ab8e
test/which.bats: do not export PATH
...
Otherwise `sed` might not be found later in bats/libexec/bats-exec-test,
in case `/usr/bin` gets removed.
2017-11-20 04:22:05 +01:00
Yamashita, Yuu
41ce3aade2
Merge remote-tracking branch 'rbenv/master' into rbenv-1.0
2016-03-02 01:39:52 +00:00
Jason Karns
0f7a2cad8d
Use create_hook helper
...
Use extracted create_hook helper in tests for:
- exec
- hooks
- rehash
- version-name
- version-origin
- which
2016-01-04 09:14:25 -05:00
Yamashita, Yuu
3031cb9750
Add workaround for test failure on Arch Linux ( #480 )
2015-12-20 12:29:30 +00:00
Daniel Hahler
03ece82197
Merge remote-tracking branch 'rbenv/master'
...
Using `git merge rbenv/master -s recursive -X rename-threshold=5%`.
Conflicts:
README.md
bin/python-local-exec
libexec/pyenv
libexec/pyenv-help
test/--version.bats
2015-12-14 13:47:11 +01:00
Mislav Marohnić
90373d78b9
Add test for not including current directory in PATH search
...
Confirms #836
2015-12-14 11:59:01 +01:00
Yamashita, Yuu
8da3749648
Merge remote-tracking branch 'rbenv/master' into rbenv-20151121
2015-11-21 04:21:14 +00:00
Mislav Marohnić
3405c4d03c
Fix error message when command is not found for "system" version
...
If `foo` didn't exist and `RBENV_VERSION=system rbenv which foo` was
called, the error message used to be misleading:
rbenv: version `system' is not installed
Instead, have the error message simply say that the command was not found.
Fixes #770
2015-11-13 23:10:09 -05:00
Daniel Hahler
e3982fae38
Display version origin with non-installed versions
...
This is useful as an indicator where it is coming from.
2015-07-17 17:10:33 +02:00
Daniel Hahler
de5c61cd59
Fix "version X is not installed" with multiple PYENV_VERSIONs
...
This was introduced when merging the rbenv upstream change
(https://github.com/sstephenson/rbenv/commit/6bb7f07d2d ).
2014-10-16 02:51:07 +02:00
Daniel Hahler
e82f943174
Merge rbenv's "Isolate rbenv-which tests …" ( c69d9a11)
...
This is the remaining part of
c69d9a1128 .
commit c69d9a1128
Author: Mislav Marohnić <mislav.marohnic@gmail.com>
Date: Mon Oct 13 12:39:47 2014 +0200
Isolate rbenv-which tests from any `.ruby-version` file on the system
Having a `.ruby-version` file in any of the parent directories of the
local clone of rbenv could cause the test suite to fail because it
wasn't expecting a local version to be set.
2014-10-13 21:20:57 +02:00
Daniel Hahler
bbf8cb4a95
Add test for PYENV_VERSION=3.4:2.7
2014-10-13 21:15:22 +02:00
Daniel Hahler
a1df551bcf
Merge tests and remove_from_path from rbenv
...
This adds the missing parts from the upstream rbenv merge:
f4652fbbf0
- e4cbf04592
- 3ee395f9b5
2014-10-13 21:14:57 +02:00
Mislav Marohnić
c69d9a1128
Isolate rbenv-which tests from any .ruby-version file on the system
...
Having a `.ruby-version` file in any of the parent directories of the
local clone of rbenv could cause the test suite to fail because it
wasn't expecting a local version to be set.
Fixes #533
2014-10-13 12:39:47 +02:00
Daniel Hahler
e4cbf04592
Improve performance of rbenv-which when RBENV_VERSION=system
...
This implements removing of the shims path element via bash
substitution, instead of jumping around in all the `$PATH` elements.
2014-10-13 12:26:43 +02:00
Mislav Marohnić
6bb7f07d2d
Avoid rbenv-exec calling out to rbenv-version-name twice
...
Running any shim (and thus `rbenv-exec`) would always execute
`rbenv-version-name` twice: once in `rbenv-exec` and another time in
`rbenv-which`, even though RBENV_VERSION variable would have already
been populated at this point.
Now RBENV_VERSION is respected within `rbenv-which`.
2014-10-13 12:26:43 +02:00
Yamashita Yuu
319721b380
Modify applications and versions for Python
2014-01-03 04:41:23 +09:00
Yamashita Yuu
0965577b93
Import tests from rbenv with sed -e s/rbenv/pyenv/g
2014-01-03 02:06:36 +09:00
Mislav Marohnić
060f141b21
test that IFS in hooks is correct
...
closes #379
2013-04-16 14:01:43 +02:00
Mislav Marohnić
7fc5f46bbb
undo assert_output_lines in tests
...
It was a dumb idea and it wasn't even implemented perfectly.
2013-04-08 23:16:35 +02:00
Mislav Marohnić
969af1567a
add tests for rehash, whence, which
2013-04-08 23:02:30 +02:00