[Pytest-commit] Issue #516: You should clearly specify dependencies (hpk42/pytest)
Ondřej Čertík
issues-reply at bitbucket.org
Tue May 13 17:11:38 CEST 2014
New issue 516: You should clearly specify dependencies
https://bitbucket.org/hpk42/pytest/issue/516/you-should-clearly-specify-dependencies
Ondřej Čertík:
If you just install the `pytest` package, it will fail to run with:
```
$ py.test --version
Traceback (most recent call last):
File "/nh/nest/u/ondrej/repos/hashstack/default/bin/py.test", line 8, in <module>
from pkg_resources import load_entry_point
File "/tmp/bld2/profile/xhyi5yguwlf4/lib/python2.7/site-packages/pkg_resources.py", line 2749, in <module>
working_set = WorkingSet._build_master()
File "/tmp/bld2/profile/xhyi5yguwlf4/lib/python2.7/site-packages/pkg_resources.py", line 444, in _build_master
ws.require(__requires__)
File "/tmp/bld2/profile/xhyi5yguwlf4/lib/python2.7/site-packages/pkg_resources.py", line 725, in require
needed = self.resolve(parse_requirements(requirements))
File "/tmp/bld2/profile/xhyi5yguwlf4/lib/python2.7/site-packages/pkg_resources.py", line 628, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: py>=1.4.20
```
So you should:
* Specify at http://pytest.org/latest/getting-started.html and also at https://pypi.python.org/pypi/pytest that pytest depends on `py` and where to get `py`.
More information about the pytest-commit
mailing list