From 6139b51af43eaa2d3c6ad2c8d522dae4e17974eb Mon Sep 17 00:00:00 2001 From: sandipanpanda <87253083+sandipanpanda@users.noreply.github.com> Date: Sat, 2 Oct 2021 22:24:12 +0530 Subject: [PATCH 01/12] Add documentaion for prefix command (#2087) --- COMMANDS.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/COMMANDS.md b/COMMANDS.md index 6da9c0e4..d138e6d2 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -16,6 +16,7 @@ The most common subcommands are: * [`pyenv versions`](#pyenv-versions) * [`pyenv which`](#pyenv-which) * [`pyenv whence`](#pyenv-whence) +* [`pyenv prefix`](#pyenv-prefix) ## `pyenv commands` @@ -278,3 +279,12 @@ Lists all Python versions with the given command installed. 2.6.8 2.7.6 3.3.3 + +## `pyenv prefix` + +Displays the directory where a Python version is installed. If no +version is given, `pyenv prefix` displays the location of the +currently selected version. + + $ pyenv prefix 3.9.7 + /home/user/.pyenv/versions/3.9.7 From 3b1bc86031a053b4d1a0c83bd552c6111765c69e Mon Sep 17 00:00:00 2001 From: sandipanpanda <87253083+sandipanpanda@users.noreply.github.com> Date: Sat, 2 Oct 2021 22:28:56 +0530 Subject: [PATCH 02/12] Add documentation for root command (#2088) * Add documentation for root command --- COMMANDS.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/COMMANDS.md b/COMMANDS.md index d138e6d2..34db5a6e 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -16,6 +16,7 @@ The most common subcommands are: * [`pyenv versions`](#pyenv-versions) * [`pyenv which`](#pyenv-which) * [`pyenv whence`](#pyenv-whence) +* [`pyenv root`](#pyenv-root) * [`pyenv prefix`](#pyenv-prefix) @@ -280,6 +281,13 @@ Lists all Python versions with the given command installed. 2.7.6 3.3.3 +## `pyenv root` + +Displays the root directory where versions and shims are kept. + + $ pyenv root + /home/user/.pyenv + ## `pyenv prefix` Displays the directory where a Python version is installed. If no From 681d31bc369d8d44f9bb697eef1152f38372edb6 Mon Sep 17 00:00:00 2001 From: sandipanpanda <87253083+sandipanpanda@users.noreply.github.com> Date: Sat, 2 Oct 2021 22:30:24 +0530 Subject: [PATCH 03/12] Add documentation for hooks command (#2089) --- COMMANDS.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/COMMANDS.md b/COMMANDS.md index 34db5a6e..ffa51dd2 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -18,7 +18,7 @@ The most common subcommands are: * [`pyenv whence`](#pyenv-whence) * [`pyenv root`](#pyenv-root) * [`pyenv prefix`](#pyenv-prefix) - +* [`pyenv hooks`](#pyenv-hooks) ## `pyenv commands` @@ -296,3 +296,9 @@ currently selected version. $ pyenv prefix 3.9.7 /home/user/.pyenv/versions/3.9.7 + +## `pyenv hooks` + + Usage: $ pyenv hooks + +Lists installed hook scripts for a given pyenv command. From bb6a747c028b841715d14147a87f659a8afefac4 Mon Sep 17 00:00:00 2001 From: sandipanpanda <87253083+sandipanpanda@users.noreply.github.com> Date: Sun, 3 Oct 2021 01:40:37 +0530 Subject: [PATCH 04/12] Add documentation for shims command (#2091) --- COMMANDS.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/COMMANDS.md b/COMMANDS.md index ffa51dd2..0a55f21c 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -19,6 +19,7 @@ The most common subcommands are: * [`pyenv root`](#pyenv-root) * [`pyenv prefix`](#pyenv-prefix) * [`pyenv hooks`](#pyenv-hooks) +* [`pyenv shims`](#pyenv-shims) ## `pyenv commands` @@ -299,6 +300,32 @@ currently selected version. ## `pyenv hooks` - Usage: $ pyenv hooks - Lists installed hook scripts for a given pyenv command. + + Usage: pyenv hooks + +## `pyenv shims` + +List existing pyenv shims. + + Usage: pyenv shims [--short] + + $ pyenv shims + /home/user/.pyenv/shims/2to3 + /home/user/.pyenv/shims/2to3-3.9 + /home/user/.pyenv/shims/idle + /home/user/.pyenv/shims/idle3 + /home/user/.pyenv/shims/idle3.9 + /home/user/.pyenv/shims/pip + /home/user/.pyenv/shims/pip3 + /home/user/.pyenv/shims/pip3.9 + /home/user/.pyenv/shims/pydoc + /home/user/.pyenv/shims/pydoc3 + /home/user/.pyenv/shims/pydoc3.9 + /home/user/.pyenv/shims/python + /home/user/.pyenv/shims/python3 + /home/user/.pyenv/shims/python3.9 + /home/user/.pyenv/shims/python3.9-config + /home/user/.pyenv/shims/python3.9-gdb.py + /home/user/.pyenv/shims/python3-config + /home/user/.pyenv/shims/python-config From 0688b17cc15201248194d57248339041a6939bdd Mon Sep 17 00:00:00 2001 From: sandipanpanda <87253083+sandipanpanda@users.noreply.github.com> Date: Sun, 3 Oct 2021 01:45:18 +0530 Subject: [PATCH 05/12] Add documentation for exec command (#2090) --- COMMANDS.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/COMMANDS.md b/COMMANDS.md index 0a55f21c..97d31721 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -16,6 +16,7 @@ The most common subcommands are: * [`pyenv versions`](#pyenv-versions) * [`pyenv which`](#pyenv-which) * [`pyenv whence`](#pyenv-whence) +* [`pyenv exec`](#pyenv-exec) * [`pyenv root`](#pyenv-root) * [`pyenv prefix`](#pyenv-prefix) * [`pyenv hooks`](#pyenv-hooks) @@ -282,6 +283,21 @@ Lists all Python versions with the given command installed. 2.7.6 3.3.3 +## `pyenv exec` + + `Usage: pyenv exec [arg1 arg2...]` + +Runs an executable by first preparing PATH so that the selected Python +version's `bin` directory is at the front. + +For example, if the currently selected Python version is 3.9.7: + + `pyenv exec pip install -r requirements.txt` + +is equivalent to: + + `PATH="$PYENV_ROOT/versions/3.9.7/bin:$PATH" pip install -r requirements.txt` + ## `pyenv root` Displays the root directory where versions and shims are kept. From d601efa0d536d1a216f5776ed20538685ea4f0b9 Mon Sep 17 00:00:00 2001 From: Parnassius Date: Mon, 4 Oct 2021 20:58:46 +0200 Subject: [PATCH 06/12] Add Python 3.10.0 --- .github/workflows/ubuntu_tests.yml | 2 +- plugins/python-build/share/python-build/{3.10.0rc2 => 3.10.0} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename plugins/python-build/share/python-build/{3.10.0rc2 => 3.10.0} (53%) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 665e6f16..81bab713 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -12,7 +12,7 @@ jobs: - 3.7.10 - 3.8.10 - 3.9.5 - - 3.10.0rc2 + - 3.10.0 runs-on: Ubuntu-20.04 steps: - uses: actions/checkout@v2 diff --git a/plugins/python-build/share/python-build/3.10.0rc2 b/plugins/python-build/share/python-build/3.10.0 similarity index 53% rename from plugins/python-build/share/python-build/3.10.0rc2 rename to plugins/python-build/share/python-build/3.10.0 index 86c3c489..8542079c 100644 --- a/plugins/python-build/share/python-build/3.10.0rc2 +++ b/plugins/python-build/share/python-build/3.10.0 @@ -4,7 +4,7 @@ export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline if has_tar_xz_support; then - install_package "Python-3.10.0rc2" "https://www.python.org/ftp/python/3.10.0/Python-3.10.0rc2.tar.xz#e75b56088548b7b9ad1f2571e6f5a2315e4808cb6b5fbe8288502afc802b2f24" standard verify_py310 copy_python_gdb ensurepip + install_package "Python-3.10.0" "https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tar.xz#5a99f8e7a6a11a7b98b4e75e0d1303d3832cada5534068f69c7b6222a7b1b002" standard verify_py310 copy_python_gdb ensurepip else - install_package "Python-3.10.0rc2" "https://www.python.org/ftp/python/3.10.0/Python-3.10.0rc2.tgz#0f8bf53dbe6f85785d502e73984aa3f12f67ac4958d9b8d8012019c35c646fe2" standard verify_py310 copy_python_gdb ensurepip + install_package "Python-3.10.0" "https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz#c4e0cbad57c90690cb813fb4663ef670b4d0f587d8171e2c42bd4c9245bd2758" standard verify_py310 copy_python_gdb ensurepip fi From 8315e1528bad880f318bbc62327e4f7b2c5c46ba Mon Sep 17 00:00:00 2001 From: native-api Date: Tue, 5 Oct 2021 12:27:48 +0300 Subject: [PATCH 07/12] Create FUNDING.yml --- .github/FUNDING.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..8914ef48 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [pyenv] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: pyenv # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] From 2a9c18372a50fb3772ab6939782b0de782ac1fef Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" <9155111+ashwinvis@users.noreply.github.com> Date: Tue, 5 Oct 2021 15:28:13 +0200 Subject: [PATCH 08/12] Update mambaforge-pypy3 Fix typo `ase` -> `case` --- plugins/python-build/share/python-build/mambaforge-pypy3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python-build/share/python-build/mambaforge-pypy3 b/plugins/python-build/share/python-build/mambaforge-pypy3 index c42197d8..fb493e4e 100644 --- a/plugins/python-build/share/python-build/mambaforge-pypy3 +++ b/plugins/python-build/share/python-build/mambaforge-pypy3 @@ -1,4 +1,4 @@ -ase "$(anaconda_architecture 2>/dev/null || true)" in +case "$(anaconda_architecture 2>/dev/null || true)" in "Linux-ppc64le" ) install_script "Mambaforge-pypy3-Linux-ppc64le" "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-pypy3-Linux-ppc64le.sh" "miniconda" verify_py3_latest ;; From 108a10a198720568c9247e2aa6f403ea839d5ed8 Mon Sep 17 00:00:00 2001 From: Anton Petrov Date: Tue, 5 Oct 2021 17:32:15 +0300 Subject: [PATCH 09/12] Update CHANGELOG.md --- CHANGELOG.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3964e9b..e66691e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ ## Version History +## Release 2.1.0 +* Fix mambaforge-pypy3 build (#2096) +* Add Python 3.10.0 (#2093) +* Add documentation for exec command (#2090) +* Add documentation for shims command (#2091) +* Add documentation for hooks command (#2089) +* Add documentation for root command (#2088) +* Add documentaion for prefix command (#2087) +* Update to Pyston's v2 package of the 2.3.1 release (#2078) +* Add pyston-2.3.1 support (#2075) +* Don't update conda when installing pip (#2074) +* Improve `add_miniconda.py` (#2072) +* GitHub actions tests (#2073) +* Fix sed commands (#2071) +* macOS: fix the build of Python 2.7.18 on macOS 11.5.2 (Big Sur) + Apple Silicon (#2061) + ## Release 2.0.7 * Update setup instructions in the Readme (#2067) * Allow tcl-tk as argument or try with homebrew by default (#1646) From 05ca057bb28dce41cf64b1bd91c61eb261956481 Mon Sep 17 00:00:00 2001 From: Anton Petrov Date: Tue, 5 Oct 2021 17:32:37 +0300 Subject: [PATCH 10/12] Update pyenv---version --- libexec/pyenv---version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/pyenv---version b/libexec/pyenv---version index 86fb741d..e09f99fd 100755 --- a/libexec/pyenv---version +++ b/libexec/pyenv---version @@ -12,7 +12,7 @@ set -e [ -n "$PYENV_DEBUG" ] && set -x -version="2.0.7" +version="2.1.0" git_revision="" if cd "${BASH_SOURCE%/*}" 2>/dev/null && git remote -v 2>/dev/null | grep -q pyenv; then From 483d95d6d203e3dd9972f5d14c87e35d4febefb0 Mon Sep 17 00:00:00 2001 From: Anton Petrov Date: Tue, 5 Oct 2021 17:49:38 +0300 Subject: [PATCH 11/12] Remove travis build status --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 1a7ebf99..e7234cc0 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ [![Join the chat at https://gitter.im/yyuu/pyenv](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/yyuu/pyenv?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![Build Status](https://travis-ci.org/pyenv/pyenv.svg?branch=master)](https://travis-ci.org/pyenv/pyenv) - pyenv lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well. From 9c72c27d768c20e995b188c3849bdbf76bff3c5b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 6 Oct 2021 07:25:55 -0400 Subject: [PATCH 12/12] Add CPython 3.11.0a1 --- plugins/python-build/share/python-build/3.11.0a1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 plugins/python-build/share/python-build/3.11.0a1 diff --git a/plugins/python-build/share/python-build/3.11.0a1 b/plugins/python-build/share/python-build/3.11.0a1 new file mode 100644 index 00000000..5305ec03 --- /dev/null +++ b/plugins/python-build/share/python-build/3.11.0a1 @@ -0,0 +1,10 @@ +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.11.0a1" "https://www.python.org/ftp/python/3.11.0/Python-3.11.0a1.tar.xz#966319daafa40f337e4d85a0b26fbdd919135c321eb3961a9b3d758abbc95376" standard verify_py311 copy_python_gdb ensurepip +else + install_package "Python-3.11.0a1" "https://www.python.org/ftp/python/3.11.0/Python-3.11.0a1.tgz#d2c83771a671d0755d1cda5d82aaea70ef32d337fe5bf87036bd113fc088edff" standard verify_py311 copy_python_gdb ensurepip +fi