File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ sudo: false
2
2
cache : pip
3
3
language : python
4
4
python :
5
+ - " 3.5-dev"
5
6
- " 3.4"
6
7
- " 3.3"
7
8
- " 2.7"
8
- - " 2.6"
9
9
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
10
10
install :
11
11
# Setup of Git environment
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ def get_git_dir():
97
97
if os .path .isdir (git_dir ):
98
98
return abspath
99
99
else :
100
- return execute ('git rev-parse --show-toplevel' )
100
+ return execute ([ 'git' , ' rev-parse' , ' --show-toplevel'] )
101
101
102
102
103
103
class GitUp (object ):
Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ to either:
59
59
60
60
Otherwise pip will refuse to install ``git-up `` due to ``Access denied `` errors.
61
61
62
- Python 3 compatibility:
63
- ~~~~~~~~~~~~~~~~~~~~~~~
62
+ Python version compatibility:
63
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64
64
65
- Python 3.3 and 3.4 are supported :)
65
+ Python 2.7, 3.3 and 3.4 are supported :)
66
66
67
67
Options and Configuration
68
68
-------------------------
Original file line number Diff line number Diff line change @@ -23,10 +23,12 @@ def test_not_a_git_repo():
23
23
environ = os .environ .copy ()
24
24
os .environ ['PATH' ] = ''
25
25
26
- with assert_raises (GitError ) as e :
27
- from PyGitUp .gitup import GitUp
28
- GitUp (testing = True )
26
+ try :
27
+ with assert_raises (GitError ) as e :
28
+ from PyGitUp .gitup import GitUp
29
+ GitUp (testing = True )
29
30
30
- assert e .exception .message == "The git executable could not be found"
31
+ assert e .exception .message == "The git executable could not be found"
31
32
32
- os .environ .update (environ )
33
+ finally :
34
+ os .environ .update (environ )
You can’t perform that action at this time.
0 commit comments