From daa12e97c6cb29831611af8e9b05a2373407fce5 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 13 Jun 2013 12:04:09 +0900 Subject: [PATCH 1/5] rename plugin --- plugins/{pyenv-version-ext => pyenv-version-ext-compat}/README.md | 0 .../bin/pyenv-sh-pop | 0 .../bin/pyenv-sh-push | 0 .../{pyenv-version-ext => pyenv-version-ext-compat}/install.sh | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename plugins/{pyenv-version-ext => pyenv-version-ext-compat}/README.md (100%) rename plugins/{pyenv-version-ext => pyenv-version-ext-compat}/bin/pyenv-sh-pop (100%) rename plugins/{pyenv-version-ext => pyenv-version-ext-compat}/bin/pyenv-sh-push (100%) rename plugins/{pyenv-version-ext => pyenv-version-ext-compat}/install.sh (100%) diff --git a/plugins/pyenv-version-ext/README.md b/plugins/pyenv-version-ext-compat/README.md similarity index 100% rename from plugins/pyenv-version-ext/README.md rename to plugins/pyenv-version-ext-compat/README.md diff --git a/plugins/pyenv-version-ext/bin/pyenv-sh-pop b/plugins/pyenv-version-ext-compat/bin/pyenv-sh-pop similarity index 100% rename from plugins/pyenv-version-ext/bin/pyenv-sh-pop rename to plugins/pyenv-version-ext-compat/bin/pyenv-sh-pop diff --git a/plugins/pyenv-version-ext/bin/pyenv-sh-push b/plugins/pyenv-version-ext-compat/bin/pyenv-sh-push similarity index 100% rename from plugins/pyenv-version-ext/bin/pyenv-sh-push rename to plugins/pyenv-version-ext-compat/bin/pyenv-sh-push diff --git a/plugins/pyenv-version-ext/install.sh b/plugins/pyenv-version-ext-compat/install.sh similarity index 100% rename from plugins/pyenv-version-ext/install.sh rename to plugins/pyenv-version-ext-compat/install.sh From b75ef17db7608a9bdb3bc78cebc503c236fb4447 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 13 Jun 2013 12:06:46 +0900 Subject: [PATCH 2/5] add deprecation warning for push/pop commands --- plugins/pyenv-version-ext-compat/bin/pyenv-sh-pop | 2 ++ plugins/pyenv-version-ext-compat/bin/pyenv-sh-push | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/pyenv-version-ext-compat/bin/pyenv-sh-pop b/plugins/pyenv-version-ext-compat/bin/pyenv-sh-pop index cf39750a..8c53a7f7 100755 --- a/plugins/pyenv-version-ext-compat/bin/pyenv-sh-pop +++ b/plugins/pyenv-version-ext-compat/bin/pyenv-sh-pop @@ -5,6 +5,8 @@ set -e IFS=: versions=($(pyenv-version-name)) +echo "WARNING: The \`pop' command will be removed from pyenv. Please install https://github.com/yyuu/pyenv-version-ext." 1>&2 + length="${#versions[@]}" PYENV_VERSION_NAMES=() for ((i=0; i&2 + if [ -n "$PYENV_VERSION" ]; then IFS=: PYENV_VERSION="${PYENV_VERSION_NAMES[*]}" echo "export PYENV_VERSION=\"${PYENV_VERSION}\"" From 7c844906493ee7bc7efe37e33b13a7615dfc0b82 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 13 Jun 2013 12:14:17 +0900 Subject: [PATCH 3/5] ignore pyenv-version-ext-compat plugin --- plugins/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/.gitignore b/plugins/.gitignore index ba6a5bc5..6d3c8ff3 100644 --- a/plugins/.gitignore +++ b/plugins/.gitignore @@ -1,4 +1,4 @@ /* !/.gitignore -!/pyenv-version-ext +!/pyenv-version-ext-compat !/python-build From c7e139186be4c9d5c3ad1ce8de91a15e59ad7b70 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 13 Jun 2013 12:20:31 +0900 Subject: [PATCH 4/5] update README --- plugins/pyenv-version-ext-compat/README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/plugins/pyenv-version-ext-compat/README.md b/plugins/pyenv-version-ext-compat/README.md index 7f96d405..d96662d2 100644 --- a/plugins/pyenv-version-ext-compat/README.md +++ b/plugins/pyenv-version-ext-compat/README.md @@ -4,13 +4,24 @@ pyenv-version-ext is a [pyenv](https://github.com/yyuu/pyenv) plugin that provides a `pyenv push` and `pyenv pop` commands to manage Python versions. +(NOTICE: +This project has been moved out as external plugin of pyenv. +The pyenv-version-ext-compat has left for backward compatibility, but will be removed from future release of pyenv. +See also [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext).) + ## Installation -### Installing as an pyenv plugin (recommended) +### Installing as an pyenv plugin + +Installing pyenv-version-ext as a pyenv plugin will give you access to the +`pyenv push` and `pyenv pop` commands. -You need nothing to do since python-build is bundled with pyenv by -default. + $ git clone git://github.com/yyuu/pyenv-version-ext.git ~/.pyenv/plugins/pyenv-version-ext +This will install the latest development version of pyenv-version-ext into +the `~/.pyenv/plugins/pyenv-version-ext` directory. From that directory, you +can check out a specific release tag. To update pyenv-version-ext, run `git +pull` to download the latest changes. ## Usage From 3bfd91de51fc60188a665515f59933f3c4e1a240 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 13 Jun 2013 12:37:35 +0900 Subject: [PATCH 5/5] rename to `version-ext-compat` because `pyenv-version-ext` must precede than compatibility plugin. --- plugins/.gitignore | 2 +- .../{pyenv-version-ext-compat => version-ext-compat}/README.md | 2 +- .../bin/pyenv-sh-pop | 0 .../bin/pyenv-sh-push | 0 .../{pyenv-version-ext-compat => version-ext-compat}/install.sh | 0 5 files changed, 2 insertions(+), 2 deletions(-) rename plugins/{pyenv-version-ext-compat => version-ext-compat}/README.md (95%) rename plugins/{pyenv-version-ext-compat => version-ext-compat}/bin/pyenv-sh-pop (100%) rename plugins/{pyenv-version-ext-compat => version-ext-compat}/bin/pyenv-sh-push (100%) rename plugins/{pyenv-version-ext-compat => version-ext-compat}/install.sh (100%) diff --git a/plugins/.gitignore b/plugins/.gitignore index 6d3c8ff3..e2092085 100644 --- a/plugins/.gitignore +++ b/plugins/.gitignore @@ -1,4 +1,4 @@ /* !/.gitignore -!/pyenv-version-ext-compat +!/version-ext-compat !/python-build diff --git a/plugins/pyenv-version-ext-compat/README.md b/plugins/version-ext-compat/README.md similarity index 95% rename from plugins/pyenv-version-ext-compat/README.md rename to plugins/version-ext-compat/README.md index d96662d2..ac8ef824 100644 --- a/plugins/pyenv-version-ext-compat/README.md +++ b/plugins/version-ext-compat/README.md @@ -6,7 +6,7 @@ versions. (NOTICE: This project has been moved out as external plugin of pyenv. -The pyenv-version-ext-compat has left for backward compatibility, but will be removed from future release of pyenv. +The version-ext-compat has left for backward compatibility, but will be removed from future release of pyenv. See also [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext).) ## Installation diff --git a/plugins/pyenv-version-ext-compat/bin/pyenv-sh-pop b/plugins/version-ext-compat/bin/pyenv-sh-pop similarity index 100% rename from plugins/pyenv-version-ext-compat/bin/pyenv-sh-pop rename to plugins/version-ext-compat/bin/pyenv-sh-pop diff --git a/plugins/pyenv-version-ext-compat/bin/pyenv-sh-push b/plugins/version-ext-compat/bin/pyenv-sh-push similarity index 100% rename from plugins/pyenv-version-ext-compat/bin/pyenv-sh-push rename to plugins/version-ext-compat/bin/pyenv-sh-push diff --git a/plugins/pyenv-version-ext-compat/install.sh b/plugins/version-ext-compat/install.sh similarity index 100% rename from plugins/pyenv-version-ext-compat/install.sh rename to plugins/version-ext-compat/install.sh