Selaa lähdekoodia

Merge pull request #1907 from native-api/install_no_blank

Drop inferring version to install from `pyenv local`
pull/1977/head
Anton Petrov 5 vuotta sitten
committed by GitHub
vanhempi
commit
70934bd635
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 muutettua tiedostoa jossa 0 lisäystä ja 16 poistoa
  1. +0
    -5
      plugins/python-build/bin/pyenv-install
  2. +0
    -11
      plugins/python-build/test/pyenv.bats

+ 0
- 5
plugins/python-build/bin/pyenv-install Näytä tiedosto

@ -115,12 +115,7 @@ done
unset VERSION_NAME
# The first argument contains the definition to install. If the
# argument is missing, try to install whatever local app-specific
# version is specified by pyenv. Show usage instructions if a local
# version is not specified.
DEFINITION="${ARGUMENTS[0]}"
[ -n "$DEFINITION" ] || DEFINITION="$(pyenv-local 2>/dev/null || true)"
[ -n "$DEFINITION" ] || usage 1 >&2
# Define `before_install` and `after_install` functions that allow

+ 0
- 11
plugins/python-build/test/pyenv.bats Näytä tiedosto

@ -23,17 +23,6 @@ stub_python_build() {
unstub pyenv-rehash
}
@test "install pyenv local version by default" {
stub_python_build 'echo python-build "$1"'
stub pyenv-local 'echo 3.4.2'
run pyenv-install
assert_success "python-build 3.4.2"
unstub python-build
unstub pyenv-local
}
@test "list available versions" {
stub_python_build \
"--definitions : echo 2.6.9 2.7.9-rc1 2.7.9-rc2 3.4.2 | tr ' ' $'\\n'"

Ladataan…
Peruuta
Tallenna