I'm trying to use buildutils 0.3 with pytest 2.4.2:
specifically the pytest runner they provide.
(Yes, I'm aware of http://pytest.org/latest/goodpractises.html#integrating-with-distutils-python-setup-py-test - however, we specifically want to use buildutils).
I've added the following to my setup.cfg:
[global] command_packages = buildutils.pytest_command
However, when I try to actually run it, I get an error about a missing py.test.Config object?
$ python setup.py pytest running pytest Traceback (most recent call last): File "setup.py", line 18, in <module> packages=['dw_etl'], File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Users/victor/.venvs/datus/lib/python2.7/site-packages/buildutils/pytest_command/pytest.py", line 106, in run config, args = py.test.Config.parse(argv) File "/Users/victor/.venvs/datus/lib/python2.7/site-packages/py/_apipkg.py", line 159, in __getattribute__ return getattr(getmod(), name) AttributeError: 'module' object has no attribute 'Config'
I know buildutils hasn't been touched in a while, however, has something changed in the py or py.test API that's broken this?
Or am I doing something else incorrectly?