astropy / package-template

Template for packages that use Astropy. Maintainer: @astrofrog
http://docs.astropy.org/projects/package-template/en/latest/
Other
60 stars 62 forks source link

unrecognized arguments: --doctest-rst running setup.py test --coverage #40

Closed wkerzendorf closed 10 years ago

wkerzendorf commented 10 years ago

Some change in astropy has cause this error (down in the log of https://travis-ci.org/tardis-sn/tardis/jobs/20567524). It can be avoided by --skip-docs. This is with the newest astropy but in a semi-affiliated package.

cdeil commented 10 years ago

gammafit is package using the the package-template and getting the error

-c: error: unrecognized arguments: --doctest-rst

when running

python setup.py test

https://github.com/zblz/gammafit/issues/13#issuecomment-40206020

@mdboom, @astrofrog Help?

mdboom commented 10 years ago

You need a conftest.py at the root of your project with the following content:

from astropy.tests.pytest_plugins import *

This is in the latest package_template.

cdeil commented 10 years ago

Works ... thanks @mdboom!