801 Commits
Author SHA1 Message Date
msaladna cf2ac2a87c Squelch shim notice 2026-11-27 16:00:29 +00:00
Rohit Mulani fc6046ccd0 init: explain what --install does and check every file before changing any (#3644) 2026-11-20 08:33:41 +03:00
Wei-Lun Li ff74777fa8 exec/which: don't launch the same lookups twice per shim call (#3636)
Cache the result of  `pyenv-version-name -f` in an internal envvar
2026-11-18 05:23:18 +03:00
Ayush de5e15ebaa pyenv-do: add as an alias to PYENV_VERSION=<version> pyenv exec (#3639) 2026-11-17 05:36:38 +03:00
IssennandumbralOptimatum 2e578d9738 init: Improve zsh init performance (#3638)
When deduplicating PATH, use zsh's $path and array replacement instead of starting a bash subprocess.

Speeds up `eval "$(pyenv init - zsh)"` by about 100ms (~20%).

---------

Co-authored-by: umbralOptimatum <umbralOptimatum@users.noreply.github.com>
2026-11-15 06:44:17 +03:00
Rohit Mulani 20370c2e30 pyenv-versions: add -k/--known as an alias to pyenv install --list (#3634) 2026-11-13 20:44:09 +03:00
Ivan Pozdeev 03ffc48ef3 2.8.15 2026-11-11 00:40:30 +03:00
RollingAIandIvan Pozdeev 9e40c078c0 version-file: fix infinite loop in Bash <4.4 with some invalid PWD values inherited from environment (#3624)
---------

Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2026-11-08 04:38:39 +03:00
nk-batman21 be94f3539f pyenv-latest: keep the 't' suffix when printing an unresolved prefix back (#3621) 2026-11-03 13:11:57 +03:00
native-api 3e05a1ebf6 Add check for whitespace issues (#3616)
* Add check for whitespace issues

* editorconfig: add directives for whitespace issues

* pyenv.bats: filter empty line from definitions stub

Drop redundant empty item from `PYTHON_BUILD_DEFINITIONS`

* Fix whitespace issues
2026-10-31 22:25:29 +03:00
Andrej730 f17642d4b6 Fix whitespace issues 2026-10-31 15:31:13 +03:00
nk-batman21andIvan Pozdeev 1f74f959e0 pyenv-latest: exclude free-threaded prereleases from prefix resolution (#3617)
---------

Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2026-10-31 03:22:42 +03:00
native-api a2d0ea8903 Merge pull request #3614 from Andrej730/fix-commands-dylib
Fix broken `pyenv --help` when `.dylib` was compiled
2026-10-30 03:11:32 +03:00
vulragrag-star 973bfbcd41 pyenv-latest: sort flavors with a dotted name (e.g. pypy2.7) by version (#3613)
The sort key only split off a flavor name made of alphanumerics, so
"pypy2.7-8.0.1" kept its hyphen and the PyPy version was erroneously compared from
the second numeric field.
2026-10-29 21:21:16 +03:00
Andrej730 cf4d2f13e1 Exclude .dylib from pyenv-commands
Since it's not actually a command, but a binary lib, and better avoid it
unexpectedly appearing in `commands`.
2026-10-29 21:33:21 +05:00
Andrej730 0dea25c4b3 Initialize summary/usage/help local vars
Fix currently broken `pyenv --help` when `.dylib` was compiled
   pyenv/libexec/pyenv-help: line 105: summary: unbound variable

And also return support for commands missing summary/usage/help (it
broke after `set -u` was added recently to all scripts, so the use of
variables got more strict).
2026-10-29 21:33:21 +05:00
Ivan Pozdeev 3fb25668b4 2.8.14 2026-10-26 16:31:09 +03:00
Ivan Pozdeev 9a5c03237b 2.8.13 2026-10-22 22:24:53 +03:00
Ivan Pozdeev 976ba45a5a 2.8.12 2026-10-22 19:24:57 +03:00
Ivan Pozdeev 15b9340e1e 2.8.11 2026-10-21 19:12:32 +03:00
Ayush 702ac01121 pyenv-latest: include plugin definitions in known-version lookup (#3596) 2026-10-16 11:12:17 +03:00
Ivan Pozdeev 288b3e1987 2.8.10 2026-10-14 17:09:23 +03:00
Saloni GuptaandIvan Pozdeev 7c877e06a0 Harden source scripts with set -euo pipefail and set -f (#3581)
Only use -f whenever there's an unquoted word split where globbing is undesired

---------

Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2026-10-13 20:20:36 +03:00
native-apiandSaloni Gupta 190496c10d version-file-write: fix not detecting an empty version argument beyond the first (#3592)
Co-authored-by: Saloni Gupta <sgnl264@gmail.com>
2026-10-13 19:44:19 +03:00
Ivan Pozdeev 8000f98f4b 2.8.9 2026-10-09 22:11:38 +03:00
Ivan Pozdeev 07171d013c 2.8.8 2026-10-03 11:30:37 +03:00
f8b1d7ae09 pyenv-exec: add the --environment option for programs that embed libpython without a path (#3537)
---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: native-api <vano@mail.mipt.ru>
2026-10-02 11:17:30 +03:00
Ivan Pozdeev 42c75f3c53 2.8.7 2026-10-01 09:22:36 +03:00
Zhaoqi Xu 699e27fb27 init: honor custom PYENV_ROOT in init setup tips (#3569) 2026-09-29 02:41:17 +03:00
Mingyang Wu 7db7714ff7 Fix rehash repair of individually corrupted shims (#3540) 2026-09-21 13:02:14 +03:00
Ivan Pozdeev 3787bacc91 2.8.6 2026-09-17 10:06:03 +03:00
Ivan Pozdeev 88e9ab13e8 pwsh: Fix error in shell integration if pyenv is on PATH multiple times
Fixes "The term 'pyenv pyenv' is not recognized..."
2026-09-09 02:31:49 +03:00
Ivan Pozdeev c293de3650 2.8.5 2026-09-01 18:05:40 +03:00
Michael Newman 981559003f Fix typo 2026-08-29 15:01:30 +03:00
native-api b0cff001ff tests: Fix "cd: null directory" in OpenSUSE (#3524)
A workaround because tests don't use the Pyenv launcher and setting PYENV_DIR to $PWD at every run invocation is too cumbersome.
2026-08-25 22:43:59 +03:00
Michael Newman 234a87e400 Fix typo 2026-08-17 01:51:28 +03:00
Ivan Pozdeev 0f16606e4f 2.8.4 2026-08-13 15:08:51 +03:00
Ivan Pozdeev 1a591b3963 Avoid extra iteration for argument with a trailing slash 2026-08-10 12:56:57 +03:00
Ivan Pozdeev 48e70e1fe9 Only test for UNC paths every iteration if they are special 2026-08-10 12:55:19 +03:00
付典 195b9fe940 version-file: Fix infinite loop for relative paths
find_local_version_file reduces its target with ${root%/*}, but that leaves a slash-less relative argument such as "." unchanged, leading to an infinite loop

Signed-off-by: 付典 <fudianchn@gmail.com>
2026-08-10 12:49:53 +03:00
Ivan Pozdeev da172db42d 2.8.3 2026-08-05 22:08:09 +03:00
Ivan Pozdeev 9e4d1ca95a 2.8.2 2026-08-04 23:10:49 +03:00
Ivan Pozdeev bec9a562a5 2.8.1 2026-07-18 22:02:09 +03:00
Ivan Pozdeev 135adbb192 2.8.0 2026-07-13 21:01:27 +03:00
native-api b3a3e702f1 version-name: skip redundant checks (#3492) 2026-07-11 08:24:01 +03:00
native-api 95df7dbc7b Merge commit from fork 2026-07-11 07:22:46 +03:00
Yo Takezawa 3974647f0f rehash: fix race condition in landlock writability check (#3483) 2026-06-26 21:04:33 +03:00
Ivan Pozdeev 933d0aaf1d 2.7.3 2026-06-24 05:14:13 +03:00
Ivan Pozdeev b43c9e5d42 2.7.2 2026-06-10 23:16:50 +03:00
Anup DasandIvan Pozdeev cf6f3c3200 fix(rehash): prevent terminal hang caused by stale or sandbox-blocked lock file (#3469)
* reduce stale lock TTL to 2 min, check for stale lock before acquiring and each time -- to hold up new shell sessions for as little as possible

---------

Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2026-06-04 22:36:11 +03:00