01e795
From 7b7aee01d72be5a310678cdad189cb7382f28549 Mon Sep 17 00:00:00 2001
01e795
From: Robbie Harwood <rharwood@redhat.com>
01e795
Date: Tue, 19 Jan 2021 11:41:40 -0500
01e795
Subject: [PATCH] Drop coverage from tests
01e795
01e795
To my knowledge, we've never looked at or done anything with this
01e795
output.  Test coverage is a noble goal, but this project is mostly
01e795
complete, so we don't expect heavy development soon.
01e795
01e795
Requested-by: Petr Viktorin <pviktori@redhat.com>
01e795
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
01e795
(cherry picked from commit 86c3da13d5d6cdb5822d194f2b820da1fd31dddb)
01e795
[rharwood@redhat.com: .gitignore]
01e795
---
01e795
 .coveragerc | 23 -----------------------
01e795
 MANIFEST.in |  1 -
01e795
 setup.py    |  2 +-
01e795
 tox.ini     | 12 ++----------
01e795
 4 files changed, 3 insertions(+), 35 deletions(-)
01e795
 delete mode 100644 .coveragerc
01e795
01e795
diff --git a/.coveragerc b/.coveragerc
01e795
deleted file mode 100644
01e795
index 4038562..0000000
01e795
--- a/.coveragerc
01e795
+++ /dev/null
01e795
@@ -1,23 +0,0 @@
01e795
-[run]
01e795
-branch = True
01e795
-source =
01e795
-    kdcproxy
01e795
-    tests.py
01e795
-
01e795
-[paths]
01e795
-source =
01e795
-   kdcproxy
01e795
-   .tox/*/lib/python*/site-packages/kdcproxy
01e795
-
01e795
-[report]
01e795
-ignore_errors = False
01e795
-precision = 1
01e795
-exclude_lines =
01e795
-    pragma: no cover
01e795
-    raise AssertionError
01e795
-    raise NotImplementedError
01e795
-    if 0:
01e795
-    if False:
01e795
-    if __name__ == .__main__.:
01e795
-    if PY3
01e795
-    if not PY3
01e795
diff --git a/MANIFEST.in b/MANIFEST.in
01e795
index 362f840..ff6b9a7 100644
01e795
--- a/MANIFEST.in
01e795
+++ b/MANIFEST.in
01e795
@@ -2,4 +2,3 @@ include README COPYING
01e795
 include tox.ini
01e795
 include setup.cfg
01e795
 include tests.py tests.krb5.conf
01e795
-include .coveragerc
01e795
diff --git a/setup.py b/setup.py
01e795
index 20b335e..4b34fcc 100644
01e795
--- a/setup.py
01e795
+++ b/setup.py
01e795
@@ -29,7 +29,7 @@ install_requires = [
01e795
 ]
01e795
 
01e795
 extras_require = {
01e795
-    "tests": ["pytest", "coverage", "WebTest"],
01e795
+    "tests": ["pytest", "WebTest"],
01e795
     "test_pep8": ['flake8', 'flake8-import-order', 'pep8-naming']
01e795
 }
01e795
 
01e795
diff --git a/tox.ini b/tox.ini
01e795
index 038d996..9672cee 100644
01e795
--- a/tox.ini
01e795
+++ b/tox.ini
01e795
@@ -1,21 +1,13 @@
01e795
 [tox]
01e795
 minversion = 2.3.1
01e795
-envlist = py36,py37,py38,py39,pep8,py3pep8,doc,coverage-report
01e795
+envlist = py36,py37,py38,py39,pep8,py3pep8,doc
01e795
 skip_missing_interpreters = true
01e795
 
01e795
 [testenv]
01e795
 deps =
01e795
     .[tests]
01e795
 commands =
01e795
-    {envpython} -m coverage run --parallel \
01e795
-        -m pytest --capture=no --strict {posargs}
01e795
-
01e795
-[testenv:coverage-report]
01e795
-deps = coverage
01e795
-skip_install = true
01e795
-commands =
01e795
-    {envpython} -m coverage combine
01e795
-    {envpython} -m coverage report --show-missing
01e795
+    {envpython} -m pytest --capture=no --strict {posargs}
01e795
 
01e795
 [testenv:pep8]
01e795
 basepython = python3