summaryrefslogtreecommitdiff
path: root/dev-python/cheroot
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-05-12 18:58:17 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-05-12 18:58:17 +0000
commitc75ce2373d06216905c17468a3241ce4968a7266 (patch)
tree99cb40ce78bbed6549313eb98fe3557133048270 /dev-python/cheroot
parenteb4946f2b11f28f62389754fd8a9ae346f5d5af6 (diff)
downloadbaldeagleos-repo-c75ce2373d06216905c17468a3241ce4968a7266.tar.gz
baldeagleos-repo-c75ce2373d06216905c17468a3241ce4968a7266.tar.xz
baldeagleos-repo-c75ce2373d06216905c17468a3241ce4968a7266.zip
Adding metadata
Diffstat (limited to 'dev-python/cheroot')
-rw-r--r--dev-python/cheroot/cheroot-10.0.1.ebuild6
-rw-r--r--dev-python/cheroot/files/cheroot-10.0.1-no-pytest-forked.patch72
2 files changed, 77 insertions, 1 deletions
diff --git a/dev-python/cheroot/cheroot-10.0.1.ebuild b/dev-python/cheroot/cheroot-10.0.1.ebuild
index 61c0027df8a4..1687988b7884 100644
--- a/dev-python/cheroot/cheroot-10.0.1.ebuild
+++ b/dev-python/cheroot/cheroot-10.0.1.ebuild
@@ -30,7 +30,6 @@ BDEPEND="
dev-python/jaraco-context[${PYTHON_USEDEP}]
dev-python/jaraco-text[${PYTHON_USEDEP}]
dev-python/portend[${PYTHON_USEDEP}]
- dev-python/pytest-forked[${PYTHON_USEDEP}]
>=dev-python/pytest-mock-1.11.0[${PYTHON_USEDEP}]
dev-python/requests-toolbelt[${PYTHON_USEDEP}]
dev-python/requests-unixsocket[${PYTHON_USEDEP}]
@@ -42,6 +41,11 @@ BDEPEND="
)
"
+PATCHES=(
+ # https://github.com/cherrypy/cheroot/pull/703
+ "${FILESDIR}/${PN}-10.0.1-no-pytest-forked.patch"
+)
+
EPYTEST_XDIST=1
distutils_enable_tests pytest
diff --git a/dev-python/cheroot/files/cheroot-10.0.1-no-pytest-forked.patch b/dev-python/cheroot/files/cheroot-10.0.1-no-pytest-forked.patch
new file mode 100644
index 000000000000..c9cf1d13d73c
--- /dev/null
+++ b/dev-python/cheroot/files/cheroot-10.0.1-no-pytest-forked.patch
@@ -0,0 +1,72 @@
+https://github.com/cherrypy/cheroot/commit/a01ada64ae804519428d404d2fa0784392bc36ec
+
+From a01ada64ae804519428d404d2fa0784392bc36ec Mon Sep 17 00:00:00 2001
+From: "Jason R. Coombs" <jaraco@jaraco.com>
+Date: Mon, 15 Apr 2024 21:11:29 -0400
+Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Stop=20using=20`pytest-forked`?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This plugin is incompatible with Pytest 7+, it's difficult to fix
+upstream and there is no timeline for addressing that.
+
+The patch also bumps the top version boundary of Pytest to 7.2 due
+to the pinned `pytest-cov` raising warnings.
+
+Fixes #502
+Resolves #511
+Closes #680
+Resolves #681
+---
+ cheroot/test/test_server.py | 9 ---------
+ requirements/tests.in | 9 +++------
+ 2 files changed, 3 insertions(+), 15 deletions(-)
+
+diff --git a/cheroot/test/test_server.py b/cheroot/test/test_server.py
+index e2e5f788c7..3c39773119 100644
+--- a/cheroot/test/test_server.py
++++ b/cheroot/test/test_server.py
+@@ -400,15 +400,6 @@ def test_reuse_port(http_server, ip_addr, mocker):
+ assert spy.spy_exception is None
+
+
+-ISSUE511 = IS_MACOS
+-
+-
+-if not IS_WINDOWS and not ISSUE511:
+- test_high_number_of_file_descriptors = pytest.mark.forked(
+- test_high_number_of_file_descriptors,
+- )
+-
+-
+ @pytest.fixture
+ def _garbage_bin():
+ """Disable garbage collection when this fixture is in use."""
+diff --git a/requirements/tests.in b/requirements/tests.in
+index 7192fdff71..9b3f4070ed 100644
+--- a/requirements/tests.in
++++ b/requirements/tests.in
+@@ -34,18 +34,15 @@ pypytools
+
+ pytest-clarity
+ pytest-cov==2.12.0
+-pytest-forked>=1.2.0; sys_platform != "win32"
+ pytest-mock>=1.11.0
+ pytest-rerunfailures
+ pytest-sugar>=0.9.3
+ pytest-watch==4.2.0
+ pytest-xdist>=1.28.0
+
+-# pytest-forked is currently incompatible with pytest 7
+-# Refs:
+-# * https://github.com/cherrypy/cheroot/issues/511
+-# * https://github.com/pytest-dev/pytest-forked/issues/67
+-pytest >= 4.6.6, < 7
++# pytest 7.2 introduces deprecations triggered by pytest-cov
++# * https://github.com/cherrypy/cheroot/issues/682
++pytest >= 7, <7.2
+
+ # HTTP over UNIX socket
+ requests-unixsocket
+