Merge remote-tracking branch 'thom/tox'

This commit is contained in:
J. David Ibáñez
2016-02-28 17:22:58 +01:00
3 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View File

@@ -3,6 +3,7 @@ build
dist dist
pygit2.so pygit2.so
_pygit2.so _pygit2.so
.tox/
test/*.pyc test/*.pyc
test/__pycache__ test/__pycache__
pygit2/*.pyc pygit2/*.pyc

View File

@@ -109,7 +109,8 @@ class TestCommand(Command):
class sdist_files_from_git(sdist): class sdist_files_from_git(sdist):
def get_file_list(self): 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() stdoutdata, stderrdata = popen.communicate()
if popen.returncode != 0: if popen.returncode != 0:
print(stderrdata) print(stderrdata)

6
tox.ini Normal file
View File

@@ -0,0 +1,6 @@
[tox]
envlist = py27,py32,py33,py34,py35,pypy,pypy3
[testenv]
commands =
python setup.py test