diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..0a4c5d5e --- /dev/null +++ b/.coveragerc @@ -0,0 +1,36 @@ +# .coveragerc to control coverage.py +[run] +branch = True +source = paramz +omit = ./paramz/tests/*.py, travis_tests.py, setup.py, ./paramz/__version__.py + +[report] +# Regexes for lines to exclude from consideration +exclude_lines = + # Have to re-enable the standard pragma + pragma: no cover + + + # Don't complain about missing debug-only code: + def __repr__ + def __str__ + if self\.debug + + # Don't complain if tests don't hit defensive assertion code: + raise AssertionError + raise NotImplementedError + raise NotImplemented + except NotImplementedError + except NotImplemented + except AssertionError + except ImportError + pass + + # Don't complain if non-runnable code isn't run: + if 0: + if __name__ == .__main__.: + + # Don't fail on python3 catch clauses: + python3 + +ignore_errors = True \ No newline at end of file diff --git a/setup.py b/setup.py index 93ec9ef9..261d6be0 100644 --- a/setup.py +++ b/setup.py @@ -137,7 +137,7 @@ setup(name = 'GPy', include_package_data = True, py_modules = ['GPy.__init__'], test_suite = 'GPy.testing', - long_description=read_to_rst('README.md'), + #long_description=read_to_rst('README.md'), install_requires=['numpy>=1.7', 'scipy>=0.16', 'six', 'paramz'], extras_require = {'docs':['sphinx'], 'optional':['mpi4py',