Skip to content

Commit cde5b51

Browse files
committed
Allow testing with tox
1 parent 3470fbc commit cde5b51

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build
33
dist
44
pygit2.so
55
_pygit2.so
6+
.tox/
67
test/*.pyc
78
test/__pycache__
89
pygit2/*.pyc

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def run(self):
108108

109109
class sdist_files_from_git(sdist):
110110
def get_file_list(self):
111-
popen = Popen(['git', 'ls-files'], stdout=PIPE, stderr=PIPE)
111+
popen = Popen(['git', 'ls-files'], stdout=PIPE, stderr=PIPE,
112+
universal_newlines=True)
112113
stdoutdata, stderrdata = popen.communicate()
113114
if popen.returncode != 0:
114115
print(stderrdata)

tox.ini

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[tox]
2+
envlist = py27,py32,py33,py34,py35,pypy,pypy3
3+
4+
[testenv]
5+
commands =
6+
python setup.py test

0 commit comments

Comments
 (0)