v1.0.0 (fixes #520)

This commit is contained in:
Yamashita, Yuu 2016-08-15 08:24:39 +00:00
parent 4e10692a1e
commit 7fadd939ad
3 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
## Version History
## Unreleased
## 1.0.0
* pyenv: Import latest changes from rbenv as of Aug 15, 2016 (#669)
* pyenv: Add workaround for system python at `/bin/python` (#628)

View file

@ -12,7 +12,7 @@
set -e
[ -n "$PYENV_DEBUG" ] && set -x
version="20160726"
version="1.0.0"
git_revision=""
if cd "${BASH_SOURCE%/*}" 2>/dev/null && git remote -v 2>/dev/null | grep -q pyenv; then

View file

@ -19,7 +19,7 @@ git_commit() {
assert [ ! -e "$PYENV_ROOT" ]
run pyenv---version
assert_success
[[ $output == "pyenv 20"* ]]
[[ $output == "pyenv "?.?.? ]]
}
@test "doesn't read version from non-pyenv repo" {
@ -30,19 +30,19 @@ git_commit() {
run pyenv---version
assert_success
[[ $output == "pyenv 20"* ]]
[[ $output == "pyenv "?.?.? ]]
}
@test "reads version from git repo" {
git init
git remote add origin https://github.com/yyuu/pyenv.git
git_commit
git tag v20380119
git tag v0.4.1
git_commit
git_commit
run pyenv---version
assert_success "pyenv 20380119-2-g$(git rev-parse --short HEAD)"
assert_success "pyenv 0.4.1-2-g$(git rev-parse --short HEAD)"
}
@test "prints default version if no tags in git repo" {
@ -51,5 +51,5 @@ git_commit() {
git_commit
run pyenv---version
[[ $output == "pyenv 20"* ]]
[[ $output == "pyenv "?.?.? ]]
}