mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
v1.0.0 (fixes #520)
This commit is contained in:
parent
4e10692a1e
commit
7fadd939ad
3 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
||||||
## Version History
|
## Version History
|
||||||
|
|
||||||
## Unreleased
|
## 1.0.0
|
||||||
|
|
||||||
* pyenv: Import latest changes from rbenv as of Aug 15, 2016 (#669)
|
* pyenv: Import latest changes from rbenv as of Aug 15, 2016 (#669)
|
||||||
* pyenv: Add workaround for system python at `/bin/python` (#628)
|
* pyenv: Add workaround for system python at `/bin/python` (#628)
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
set -e
|
set -e
|
||||||
[ -n "$PYENV_DEBUG" ] && set -x
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
version="20160726"
|
version="1.0.0"
|
||||||
git_revision=""
|
git_revision=""
|
||||||
|
|
||||||
if cd "${BASH_SOURCE%/*}" 2>/dev/null && git remote -v 2>/dev/null | grep -q pyenv; then
|
if cd "${BASH_SOURCE%/*}" 2>/dev/null && git remote -v 2>/dev/null | grep -q pyenv; then
|
||||||
|
|
|
@ -19,7 +19,7 @@ git_commit() {
|
||||||
assert [ ! -e "$PYENV_ROOT" ]
|
assert [ ! -e "$PYENV_ROOT" ]
|
||||||
run pyenv---version
|
run pyenv---version
|
||||||
assert_success
|
assert_success
|
||||||
[[ $output == "pyenv 20"* ]]
|
[[ $output == "pyenv "?.?.? ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "doesn't read version from non-pyenv repo" {
|
@test "doesn't read version from non-pyenv repo" {
|
||||||
|
@ -30,19 +30,19 @@ git_commit() {
|
||||||
|
|
||||||
run pyenv---version
|
run pyenv---version
|
||||||
assert_success
|
assert_success
|
||||||
[[ $output == "pyenv 20"* ]]
|
[[ $output == "pyenv "?.?.? ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "reads version from git repo" {
|
@test "reads version from git repo" {
|
||||||
git init
|
git init
|
||||||
git remote add origin https://github.com/yyuu/pyenv.git
|
git remote add origin https://github.com/yyuu/pyenv.git
|
||||||
git_commit
|
git_commit
|
||||||
git tag v20380119
|
git tag v0.4.1
|
||||||
git_commit
|
git_commit
|
||||||
git_commit
|
git_commit
|
||||||
|
|
||||||
run pyenv---version
|
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" {
|
@test "prints default version if no tags in git repo" {
|
||||||
|
@ -51,5 +51,5 @@ git_commit() {
|
||||||
git_commit
|
git_commit
|
||||||
|
|
||||||
run pyenv---version
|
run pyenv---version
|
||||||
[[ $output == "pyenv 20"* ]]
|
[[ $output == "pyenv "?.?.? ]]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue