mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Fix get-pip urls for older pypy versions (#2788)
This commit is contained in:
parent
da3ac7b7a3
commit
8cfc75604b
2 changed files with 59 additions and 3 deletions
|
@ -2337,7 +2337,7 @@ if [ -z "${GET_PIP_URL}" ]; then
|
||||||
2.6 | 2.6.* )
|
2.6 | 2.6.* )
|
||||||
GET_PIP_URL="https://bootstrap.pypa.io/pip/2.6/get-pip.py"
|
GET_PIP_URL="https://bootstrap.pypa.io/pip/2.6/get-pip.py"
|
||||||
;;
|
;;
|
||||||
2.7 | 2.7.* )
|
2.7 | 2.7.* | pypy2.7 | pypy2.7-* )
|
||||||
GET_PIP_URL="https://bootstrap.pypa.io/pip/2.7/get-pip.py"
|
GET_PIP_URL="https://bootstrap.pypa.io/pip/2.7/get-pip.py"
|
||||||
;;
|
;;
|
||||||
3.2 | 3.2.* )
|
3.2 | 3.2.* )
|
||||||
|
@ -2349,10 +2349,10 @@ if [ -z "${GET_PIP_URL}" ]; then
|
||||||
3.4 | 3.4.* )
|
3.4 | 3.4.* )
|
||||||
GET_PIP_URL="https://bootstrap.pypa.io/pip/3.4/get-pip.py"
|
GET_PIP_URL="https://bootstrap.pypa.io/pip/3.4/get-pip.py"
|
||||||
;;
|
;;
|
||||||
3.5 | 3.5.* )
|
3.5 | 3.5.* | pypy3.5 | pypy3.5-* )
|
||||||
GET_PIP_URL="https://bootstrap.pypa.io/pip/3.5/get-pip.py"
|
GET_PIP_URL="https://bootstrap.pypa.io/pip/3.5/get-pip.py"
|
||||||
;;
|
;;
|
||||||
3.6 | 3.6.* )
|
3.6 | 3.6.* | pypy3.6 | pypy3.6-* )
|
||||||
GET_PIP_URL="https://bootstrap.pypa.io/pip/3.6/get-pip.py"
|
GET_PIP_URL="https://bootstrap.pypa.io/pip/3.6/get-pip.py"
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
|
|
|
@ -393,6 +393,14 @@ OUT
|
||||||
assert_success
|
assert_success
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "use the custom GET_PIP_URL for 2.7 versions" {
|
||||||
|
run_inline_definition_with_name --name=2.7 <<OUT
|
||||||
|
echo "\${GET_PIP_URL}"
|
||||||
|
OUT
|
||||||
|
assert_output "https://bootstrap.pypa.io/pip/2.7/get-pip.py"
|
||||||
|
assert_success
|
||||||
|
}
|
||||||
|
|
||||||
@test "use the custom GET_PIP_URL for 3.2 versions" {
|
@test "use the custom GET_PIP_URL for 3.2 versions" {
|
||||||
run_inline_definition_with_name --name=3.2 <<OUT
|
run_inline_definition_with_name --name=3.2 <<OUT
|
||||||
echo "\${GET_PIP_URL}"
|
echo "\${GET_PIP_URL}"
|
||||||
|
@ -408,3 +416,51 @@ OUT
|
||||||
assert_output "https://bootstrap.pypa.io/pip/3.3/get-pip.py"
|
assert_output "https://bootstrap.pypa.io/pip/3.3/get-pip.py"
|
||||||
assert_success
|
assert_success
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "use the custom GET_PIP_URL for 3.4 versions" {
|
||||||
|
run_inline_definition_with_name --name=3.4 <<OUT
|
||||||
|
echo "\${GET_PIP_URL}"
|
||||||
|
OUT
|
||||||
|
assert_output "https://bootstrap.pypa.io/pip/3.4/get-pip.py"
|
||||||
|
assert_success
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "use the custom GET_PIP_URL for 3.5 versions" {
|
||||||
|
run_inline_definition_with_name --name=3.5 <<OUT
|
||||||
|
echo "\${GET_PIP_URL}"
|
||||||
|
OUT
|
||||||
|
assert_output "https://bootstrap.pypa.io/pip/3.5/get-pip.py"
|
||||||
|
assert_success
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "use the custom GET_PIP_URL for 3.6 versions" {
|
||||||
|
run_inline_definition_with_name --name=3.6 <<OUT
|
||||||
|
echo "\${GET_PIP_URL}"
|
||||||
|
OUT
|
||||||
|
assert_output "https://bootstrap.pypa.io/pip/3.6/get-pip.py"
|
||||||
|
assert_success
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "use the custom GET_PIP_URL for pypy2.7 versions" {
|
||||||
|
run_inline_definition_with_name --name=pypy2.7-7.3.12 <<OUT
|
||||||
|
echo "\${GET_PIP_URL}"
|
||||||
|
OUT
|
||||||
|
assert_output "https://bootstrap.pypa.io/pip/2.7/get-pip.py"
|
||||||
|
assert_success
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "use the custom GET_PIP_URL for pypy3.5 versions" {
|
||||||
|
run_inline_definition_with_name --name=pypy3.5-7.0.0 <<OUT
|
||||||
|
echo "\${GET_PIP_URL}"
|
||||||
|
OUT
|
||||||
|
assert_output "https://bootstrap.pypa.io/pip/3.5/get-pip.py"
|
||||||
|
assert_success
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "use the custom GET_PIP_URL for pypy3.6 versions" {
|
||||||
|
run_inline_definition_with_name --name=pypy3.6-7.3.3 <<OUT
|
||||||
|
echo "\${GET_PIP_URL}"
|
||||||
|
OUT
|
||||||
|
assert_output "https://bootstrap.pypa.io/pip/3.6/get-pip.py"
|
||||||
|
assert_success
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue