Allow testing with tox
This commit is contained in:
parent
3470fbc1c6
commit
cde5b5170b
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@ build
|
||||
dist
|
||||
pygit2.so
|
||||
_pygit2.so
|
||||
.tox/
|
||||
test/*.pyc
|
||||
test/__pycache__
|
||||
pygit2/*.pyc
|
||||
|
3
setup.py
3
setup.py
@ -108,7 +108,8 @@ class TestCommand(Command):
|
||||
|
||||
class sdist_files_from_git(sdist):
|
||||
def get_file_list(self):
|
||||
popen = Popen(['git', 'ls-files'], stdout=PIPE, stderr=PIPE)
|
||||
popen = Popen(['git', 'ls-files'], stdout=PIPE, stderr=PIPE,
|
||||
universal_newlines=True)
|
||||
stdoutdata, stderrdata = popen.communicate()
|
||||
if popen.returncode != 0:
|
||||
print(stderrdata)
|
||||
|
Loading…
x
Reference in New Issue
Block a user