cmheisel / nose-xcover

Fork of nose.plugins.cover that enables XML output (for use with Hudson, e.g.)
MIT License
52 stars 17 forks source link

new version of coverage breaks dependency requirement #5

Closed rsyring closed 13 years ago

rsyring commented 13 years ago

The plugin specifies coverage 3.4, but pip is installing 3.5b1 by default, resulting in this plugin not being able to be used.


rsyring@antec:/tmp$ virtualenv xcover-test
New python executable in xcover-test/bin/python
Please make sure you remove any previous custom paths from your /home/rsyring/.pydistutils.cfg file.
Installing setuptools............done.
rsyring@antec:/tmp$ source xcover-test/bin/activate
(xcover-test)rsyring@antec:/tmp$ pip install coverage nosexcover
Downloading/unpacking coverage
  Downloading coverage-3.5b1.tar.gz (109Kb): 109Kb downloaded

<snip>

Successfully installed coverage nosexcover nose
Cleaning up...
(xcover-test)rsyring@antec:/tmp$ nosetests --with-xcover
/tmp/xcover-test/lib/python2.6/site-packages/nose/plugins/manager.py:383: RuntimeWarning: 
    Unable to load plugin xcover = nosexcover:XCoverage: (coverage 3.5b1 (/tmp/xcover-test/lib/python2.6/site-packages), 
    Requirement.parse('coverage==3.4'))
  RuntimeWarning)
Usage: nosetests [options]

nosetests: error: no such option: --with-xcover
rsyring commented 13 years ago

Just wondering if this can get fixed, its breaking some of my jenkins testing. It should be as simple as changing the following line in setup.py:

install_requires=['nose', 'coverage==3.4'],

To:

install_requires=['nose', 'coverage>=3.4'],

Thanks.

heckj commented 13 years ago

submitted pull request to resolve: https://github.com/heckj/nose-xcover/pull/new/patch-1

sublimator commented 13 years ago

bump

cmheisel commented 13 years ago

Sorry it took me so long to get to this! 1.0.7 has been released with the setup.py fix. http://pypi.python.org/pypi/nosexcover

heckj commented 13 years ago

Thanks Chris!

rsyring commented 13 years ago

ditto

sublimator commented 13 years ago

cheers!