Issue #28 wontfix

WebOb dependency for running the test suite?

Dirkjan Ochtman
created an issue

In 1.0, setup.py mentions nose in the (non-standard) test_requires and lxml in requires. However, the test suite now fails thus:

{{{

!python

====================================================================== ERROR: Failure: ImportError (No module named webob)


Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/nose/loader.py", line 390, in loadTestsFromName addr.filename, addr.module) File "/usr/lib64/python2.7/site-packages/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib64/python2.7/site-packages/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/var/tmp/portage/dev-python/pyquery-1.0/work/pyquery-1.0/pyquery/ajax.py", line 7, in <module> from webob import Request, Response ImportError: No module named webob

====================================================================== ERROR: Failure: ImportError (No module named webob)


Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/nose/loader.py", line 390, in loadTestsFromName addr.filename, addr.module) File "/usr/lib64/python2.7/site-packages/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib64/python2.7/site-packages/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/var/tmp/portage/dev-python/pyquery-1.0/work/pyquery-1.0/pyquery/test.py", line 25, in <module> from webob import Request, Response, exc ImportError: No module named webob


}}}

Comments (4)

  1. Arfrever Frehtes Taifersar Arahesis

    Title of this issue suggests that this issue is about missing WebOb in the list of dependencies in setup.py. (buildout.cfg is even absent in the tarball.)

    test_requires should be changed to tests_require to avoid a warning:

    $ python2.7 setup.py build
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires'
      warnings.warn(msg)
    running build
    ...
    

    I'm attaching the patch for setup.py.

  2. Log in to comment