New issue 96: Can't have a Python 3 setup.py
https://bitbucket.org/hpk42/tox/issue/96/cant-have-a-python-3-setuppy
Barry Warsaw:
Let's say your setup.py is only Python 3 compatible. tox set up fails when
building the sdist:
```
% tox -e py33
GLOB sdist-make: .../setup.py
ERROR: invocation failed, logfile: .../.tox/log/tox-0.log
ERROR: actionid=tox
msg=packaging
cmdargs=['/usr/bin/python', local('.../setup.py'), 'sdist', '--formats=zip',
'--dist-dir', local('.../.tox/dist')]
env=None
Traceback (most recent call last):
File "setup.py", line 18, in <module>
with open('.../version.txt', encoding='utf-8') as fp:
TypeError: 'encoding' is an invalid keyword argument for this function
ERROR: FAIL could not package project
```
There doesn't seem to be a way to configure this in the tox.ini, though I could
be missing it of course.
_______________________________________________
pytest-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pytest-commit