Blame SOURCES/0001-Remove-coverage-toml-test-dependency.patch

5a1866
From 5ab6102dbf6429fe63b2db6f0f6b43a125efe3b5 Mon Sep 17 00:00:00 2001
5a1866
From: Carl George <carlwgeorge@gmail.com>
5a1866
Date: Wed, 6 Nov 2024 18:30:12 -0600
5a1866
Subject: [PATCH 1/2] Remove coverage[toml] test dependency
5a1866
5a1866
---
5a1866
 pyproject.toml | 31 +------------------------------
5a1866
 1 file changed, 1 insertion(+), 30 deletions(-)
5a1866
5a1866
diff --git a/pyproject.toml b/pyproject.toml
5a1866
index dabd973..a43705c 100644
5a1866
--- a/pyproject.toml
5a1866
+++ b/pyproject.toml
5a1866
@@ -36,7 +36,7 @@ dynamic = ["version", "readme"]
5a1866
 
5a1866
 [project.optional-dependencies]
5a1866
 idna = ["idna"]
5a1866
-tests = ["coverage[toml]>=5.0.2", "pytest"]
5a1866
+tests = ["pytest"]
5a1866
 docs = ["sphinx", "furo", "myst-parser", "sphinx-notfound-page", "pyOpenSSL"]
5a1866
 mypy = ["mypy", "types-pyOpenSSL", "idna"]
5a1866
 dev = ["service-identity[tests,mypy,idna]", "pyOpenSSL"]
5a1866
@@ -93,35 +93,6 @@ filterwarnings = ["once::Warning"]
5a1866
 norecursedirs = ["tests/typing"]
5a1866
 
5a1866
 
5a1866
-[tool.coverage.run]
5a1866
-parallel = true
5a1866
-branch = true
5a1866
-source = ["service_identity"]
5a1866
-
5a1866
-[tool.coverage.paths]
5a1866
-source = ["src", ".tox/py*/**/site-packages"]
5a1866
-
5a1866
-[tool.coverage.report]
5a1866
-show_missing = true
5a1866
-skip_covered = true
5a1866
-exclude_lines = [
5a1866
-    # a more strict default pragma
5a1866
-    "\\# pragma: no cover\\b",
5a1866
-
5a1866
-    # allow defensive code
5a1866
-    "^\\s*raise AssertionError\\b",
5a1866
-    "^\\s*raise NotImplementedError\\b",
5a1866
-    "^\\s*return NotImplemented\\b",
5a1866
-    "^\\s*raise$",
5a1866
-
5a1866
-    # typing-related code
5a1866
-    "^if (False|TYPE_CHECKING):",
5a1866
-    ": \\.\\.\\.(\\s*#.*)?$",
5a1866
-    "^ +\\.\\.\\.$",
5a1866
-    "-> ['\"]?NoReturn['\"]?:",
5a1866
-]
5a1866
-
5a1866
-
5a1866
 [tool.interrogate]
5a1866
 omit-covered-files = true
5a1866
 verbose = 2
5a1866
-- 
5a1866
2.47.0
5a1866