From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1A14015802E for ; Fri, 28 Jun 2024 06:07:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25173E2A73; Fri, 28 Jun 2024 06:07:55 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0D8B0E2A4B for ; Fri, 28 Jun 2024 06:07:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 409D833BE3B for ; Fri, 28 Jun 2024 06:07:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9BAF71CFB for ; Fri, 28 Jun 2024 06:07:52 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1719554147.97e258600de0bcd413ff98f84c331908cc0b3788.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/deprecated/, dev-python/deprecated/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/deprecated/deprecated-1.2.14.ebuild dev-python/deprecated/files/deprecated-1.2.14-py313.patch X-VCS-Directories: dev-python/deprecated/files/ dev-python/deprecated/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 97e258600de0bcd413ff98f84c331908cc0b3788 X-VCS-Branch: master Date: Fri, 28 Jun 2024 06:07:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 19242bd1-ad34-42d4-988c-d6756f9c3d5a X-Archives-Hash: 0542ba8cb8752b052c575e665d1ae1ed commit: 97e258600de0bcd413ff98f84c331908cc0b3788 Author: Michał Górny gentoo org> AuthorDate: Fri Jun 28 05:55:47 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jun 28 05:55:47 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97e25860 dev-python/deprecated: Enable py3.13 Signed-off-by: Michał Górny gentoo.org> dev-python/deprecated/deprecated-1.2.14.ebuild | 6 +++- .../deprecated/files/deprecated-1.2.14-py313.patch | 34 ++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/dev-python/deprecated/deprecated-1.2.14.ebuild b/dev-python/deprecated/deprecated-1.2.14.ebuild index 2503a4b7b259..9f120ca0b27b 100644 --- a/dev-python/deprecated/deprecated-1.2.14.ebuild +++ b/dev-python/deprecated/deprecated-1.2.14.ebuild @@ -6,7 +6,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 PYPI_PN=${PN^} -PYTHON_COMPAT=( python3_{10..12} pypy3 ) +PYTHON_COMPAT=( python3_{10..13} pypy3 ) inherit distutils-r1 pypi @@ -24,4 +24,8 @@ RDEPEND=" dev-python/wrapt[${PYTHON_USEDEP}] " +PATCHES=( + "${FILESDIR}/${P}-py313.patch" +) + distutils_enable_tests pytest diff --git a/dev-python/deprecated/files/deprecated-1.2.14-py313.patch b/dev-python/deprecated/files/deprecated-1.2.14-py313.patch new file mode 100644 index 000000000000..b0daead38417 --- /dev/null +++ b/dev-python/deprecated/files/deprecated-1.2.14-py313.patch @@ -0,0 +1,34 @@ +diff --git a/tests/test_deprecated.py b/tests/test_deprecated.py +index 0e467ae..69b10c1 100644 +--- a/tests/test_deprecated.py ++++ b/tests/test_deprecated.py +@@ -152,6 +152,7 @@ def test_classic_deprecated_class__warns(classic_deprecated_class): + classic_deprecated_class() + assert len(warns) == 1 + warn = warns[0] ++ print(warns) + assert issubclass(warn.category, DeprecationWarning) + assert "deprecated class" in str(warn.message) + assert warn.filename == __file__ or warn.category is WrongStackLevelWarning, 'Incorrect warning stackLevel' +@@ -191,7 +192,7 @@ def test_classic_deprecated_class_method__warns(classic_deprecated_class_method) + assert len(warns) == 1 + warn = warns[0] + assert issubclass(warn.category, DeprecationWarning) +- if sys.version_info >= (3, 9): ++ if (3, 9) <= sys.version_info < (3, 13): + assert "deprecated class method" in str(warn.message) + else: + assert "deprecated function (or staticmethod)" in str(warn.message) +diff --git a/tests/test_sphinx.py b/tests/test_sphinx.py +index a1d7753..8cf8e95 100644 +--- a/tests/test_sphinx.py ++++ b/tests/test_sphinx.py +@@ -301,7 +301,7 @@ def test_sphinx_deprecated_class_method__warns(sphinx_deprecated_class_method): + assert len(warns) == 1 + warn = warns[0] + assert issubclass(warn.category, DeprecationWarning) +- if sys.version_info >= (3, 9): ++ if (3, 9) <= sys.version_info < (3, 13): + assert "deprecated class method" in str(warn.message) + else: + assert "deprecated function (or staticmethod)" in str(warn.message)