From b55bab2fc44cbb6d78da4b3ee472b8dce0adfa3c Mon Sep 17 00:00:00 2001 From: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com> Date: Mon, 23 Dec 2019 12:15:34 -0500 Subject: [PATCH] Add "coverage < 5.0" to setup.py to enforce it because coveralls does not currently support coverage 5.0+ per https://github.com/coveralls-clients/coveralls-python/issues/203 --- setup.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cc149327..9223aac6 100644 --- a/setup.py +++ b/setup.py @@ -70,7 +70,18 @@ def package_vars(version_file): py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")], include_package_data=True, install_requires=["docopt", "setuptools"], - extras_require={"test": ["pre-commit", "pytest", "pytest-cov", "coveralls"]}, + extras_require={ + "test": [ + "pre-commit", + "coveralls", + # coveralls does not currently support coverage 5.0 + # https://github.com/coveralls-clients/coveralls-python/issues/203 + # is the issue for this on the coveralls project + "coverage < 5.0", + "pytest-cov", + "pytest", + ] + }, # Conveniently allows one to run the CLI tool as `example` entry_points={"console_scripts": ["example = example.example:main"]}, )