Zoltán Reegn
d08294471e
revert back fish fix
...
Should be separate PR to deal with fish perf issue
2023-04-12 10:15:19 +02:00
Zoltán Reegn
dec191e836
Fix zsh shell hook performance issue
...
The precmd hook is causing a significant overhead on every command
executed in the shell.
The shell hook does not need to be this strict however, it can also
run only on directory changes, ensuring that the shell remains snappy
while executing commands.
Also contains a similar fix for fish.
Fixes #259 .
2023-04-11 10:39:33 +02: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
Jack McIvor
13bc1877ef
Update PYENV_VIRTUALENV_VERSION ( #449 )
...
Co-authored-by: Jack McIvor <j.mcivor@draftkings.com>
2023-02-07 19:37:47 +03:00
Ivan Pozdeev
a724aaa149
Merge branch 'master' of https://github.com/pyenv/pyenv-virtualenv
2023-02-01 00:27:32 +03:00
Ivan Pozdeev
f4162706d8
Remove Bountysource from advertized donation sources
...
Same as in Pyenv, as it's gone rogue
2023-02-01 00:27:13 +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
Ivan Pozdeev
826f3fbe6f
ISSUE_TEMPLATE.md: Add Zsh PS4
2023-01-31 23:02:54 +03:00
native-api
a6ab660b72
Support a prefix resolved by pyenv-latest as base version ( #446 )
2023-01-29 23:47:22 +03:00
Ville Skyttä
d5f2878a97
Strip -<suffix> when autodetecting shell ( #377 )
...
For example bash-5.1, bash-static.
2022-10-18 20:37:46 +03:00
Andrew Christianson
c4de2555b7
Use realpath of scripts to determine relative locations ( #308 )
...
Just using paths relative to ${BASH_SOURCE} to access `libexec`
fails if the scripts are symlinked to a location,
such as when installed with Homebrew,
since the `libexec` directory is not linked into `brew --prefix`.
Implement a simple version of `realpath`
and run `${BASH_SOURCE}` through it.
This gets the actual installation directory
relative to which `libexec` is located.
Co-authored-by: Andrew Christianson <achristianson@edmunds.com>
2022-10-14 04:37:08 +03:00
Diego Fernández Giraldo
633711a0bc
Return control to pyenv-uninstall in uninstall/envs.bash ( #321 )
2022-10-12 22:36:52 +03:00
P M
177eb67af3
Enhance documentation about options for pyenv virtualenv ( #425 )
...
Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2022-10-12 22:12:21 +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
Ville Skyttä
9a57cd7711
Clone bats with --depth=1, gitignore it ( #351 )
2022-10-11 22:53:34 +03:00
Ville Skyttä
3c0edf888e
Spelling fixes ( #352 )
2022-10-10 21:50:28 +03:00
Ville Skyttä
057b9be9d8
fix: relative path to pyenv-realpath.dylib ( #378 )
2022-10-10 21:48:29 +03:00
Joseph Egan
7932bb4cc0
Stop delete force failing when virtualenv does not exist ( #330 )
2022-10-10 21:47:19 +03:00
laggardkernel
a911a2223f
Upgrade uninstall hook after pyenv/pyenv#2432 ( #438 )
2022-10-10 20:34:24 +03:00
Eric N. Vander Weele
c6ff093344
Deduplicate shims in $PATH for the fish shell during initialization ( #430 )
...
When a fish login shell is invoked within an existing login shell, avoid
duplicating path to the shims by removing existing occurrences before
prepending.
2022-05-19 19:03:51 +03:00
Nick
cc9d5f168e
Update get-pip.py URLs in pyenv-virtualenv ( #426 )
2022-02-26 09:41:41 +03:00
Alain Kalker
017ea60cd3
Fix another unbound variable error ( #424 )
...
* Fix tests failing after #423
2022-01-30 21:14:28 +03:00
Alain Kalker
1ee7ca6346
Fix unbound variable errors when running pyenv activate with set -u ( #423 )
2022-01-29 20:53:52 +03:00
Ville Skyttä
91609e25f3
perf(sh-activate): avoid a duplicate pyenv-version-name call ( #380 )
2021-11-14 02:30:56 +03:00
Seonghyeon Cho
5509c25ac1
Add (y/N) prompt help text ( #404 )
2021-11-08 18:15:23 +03:00
jivanf
c3110d874e
Fix get-pip.py URLs for older versions of Python ( #403 )
2021-11-08 18:14:47 +03:00
native-api
f95d6a9bee
Create FUNDING.yml
2021-10-08 11:55:00 +03:00
native-api
afa008ec95
Update ISSUE_TEMPLATE.md
2021-10-08 11:15:55 +03:00
native-api
6fa056912b
Create no-response.yml
2021-10-05 04:40:56 +03:00
native-api
2648a4af29
Update ISSUE_TEMPLATE.md
2021-10-05 01:30:31 +03:00
native-api
ce08a8ee72
Create ISSUE_TEMPLATE.md
2021-10-05 01:29:37 +03:00
Anton Petrov
29fb3c7cd1
Merge pull request #388 from native-api/patch-1
...
Fix installation steps to allow for Pyenv 2
2021-07-25 12:13:35 +03:00
Anton Petrov
c537bfff26
Merge pull request #395 from Gauravtalreja1/fix-394
...
Fixes #394 - update pyenv virtualenvs to list virtualenvs start with dot prefixes
2021-06-17 20:35:52 +03:00
Gaurav Talreja
b334dde5ef
Fix #394 - update pyenv virtualenvs command to list virtualenvs starting with dot prefixes
2021-06-16 15:20:14 +05:30
native-api
582b693c11
Fix installation steps to allow for Pyenv 2
...
The text included info on Pyenv startup which is now outdated and incorrect.
Closes https://github.com/pyenv/pyenv/issues/1947 , https://github.com/pyenv/pyenv-virtualenv/issues/387
2021-05-26 00:49:31 +03:00
Anton Petrov
6742d0ef10
Merge pull request #384 from native-api/profile_2_rc
...
~/.*rc should be modified instead of ~/.*profile
2021-05-09 20:56:31 +03:00
Anton Petrov
8c7ef734f9
Update pyenv-virtualenv-init
...
https://github.com/pyenv/pyenv-installer/pull/109
2021-05-09 20:17:17 +03:00
Ivan Pozdeev
90f7b999ff
~/.*rc should be modified instead of ~/.*profile
...
Otherwise, there's no effect for non-login interactive shells
2021-05-09 20:16:35 +03:00
Yamashita, Yuu
294f64f76b
v1.1.5
2019-02-13 15:27:07 +00:00
Yamashita, Yuu
e39b112676
Install libexec as well under the given prefix ( #290 , #302 )
2019-02-13 15:25:00 +00:00
Yamashita, Yuu
74bba45b9c
v1.1.4
2019-02-08 02:04:46 +00:00
Yamashita, Yuu
2d947be5d9
Merge pull request #296 from pyenv/yy-py-venv-major-minor
...
Prefer `python3.x` executable if available
2019-01-12 14:41:57 +09:00
Yamashita, Yuu
a9e1891e8b
Prefer python3.x executable if avaialble ( closes #206 , #282 )
2019-01-12 05:38:21 +00:00
Yamashita, Yuu
bfdeb31d78
Merge pull request #238 from pgrzesik/master
...
Add other way of deleting existing virtualenv
2019-01-12 07:51:41 +09:00
Yamashita, Yuu
e3203f795a
Merge pull request #286 from faho/patch-1
...
Improve fish installation instructions
2019-01-12 07:50:52 +09:00
Yamashita, Yuu
6d90f61726
Merge pull request #290 from lmmarsano/fix-conda
...
Fix: support newer conda
2018-11-23 21:57:29 +09:00
Luis Marsano
ed779fea14
cleanup pyenv virtualenv on ERR
...
also cleanup compatibility paths
2018-11-21 22:00:57 -05:00
Luis Marsano
e0a1e9b35c
support newer conda
...
pyenv-virtualenvs could not list conda environments & pyenv shell would only activate the base conda environment
the conda detection criteria of testing the presence of `conda` or `activate` files under `$(pyenv root)/versions/$version/bin` appears to be the culprit, since newer environments no longer include these files: those files reside in the base conda environment
- add detection criteria of `$(pyenv root)/versions/$version/conda-meta`
- compute the real prefix to the base environment from `realpath $(realpath $(pyenv root)/versions/$version)/../..`
- to allow that, enhance substitute `realpath` in `pyenv-virtualenvs` to reduce relative paths `.` & `..`, and factor that code out to a file under `libexec` for reuse
- hook `which` to locate conda from the real prefix
2018-11-21 22:00:56 -05:00