mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-25 11:57:36 -08:00
Merge updates from master
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="PEAR - PHP Extension and Application Repository"
|
||||
HOMEPAGE="https://pear.php.net/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~s390 ~sparc ~x86"
|
||||
|
||||
RDEPEND=">=dev-php/PEAR-PEAR-${PVR}"
|
||||
@@ -0,0 +1,42 @@
|
||||
From 4f916edb457eb02bede0a7c4a64741ef13709af7 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Wed, 12 Jun 2024 07:47:18 +0200
|
||||
Subject: [PATCH] Fix tests for Python 3.13
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fix expected argparse --help output to account for changes in Python
|
||||
3.13.
|
||||
|
||||
Closes-Bug: 2069108
|
||||
Change-Id: Ie221e5f5b369930f015a74998f50ddb473b53b94
|
||||
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
||||
---
|
||||
oslo_config/tests/test_cfg.py | 10 ++++++++--
|
||||
1 file changed, 8 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/oslo_config/tests/test_cfg.py b/oslo_config/tests/test_cfg.py
|
||||
index 926eb8c..f69f7a0 100644
|
||||
--- a/oslo_config/tests/test_cfg.py
|
||||
+++ b/oslo_config/tests/test_cfg.py
|
||||
@@ -264,8 +264,14 @@ class HelpTestCase(BaseTestCase):
|
||||
self.conf.register_cli_opt(uvw)
|
||||
self.conf([])
|
||||
self.conf.print_help(file=f)
|
||||
- self.assertIn('--a-bc A_BC, --d-ef A_BC, --d_ef A_BC', f.getvalue())
|
||||
- self.assertIn('--u-vw U_VW, --x-yz U_VW, --x_yz U_VW', f.getvalue())
|
||||
+ if sys.version_info >= (3, 13):
|
||||
+ self.assertIn('--a-bc, --d-ef, --d_ef A_BC', f.getvalue())
|
||||
+ self.assertIn('--u-vw, --x-yz, --x_yz U_VW', f.getvalue())
|
||||
+ else:
|
||||
+ self.assertIn('--a-bc A_BC, --d-ef A_BC, --d_ef A_BC',
|
||||
+ f.getvalue())
|
||||
+ self.assertIn('--u-vw U_VW, --x-yz U_VW, --x_yz U_VW',
|
||||
+ f.getvalue())
|
||||
|
||||
|
||||
class FindConfigFilesTestCase(BaseTestCase):
|
||||
--
|
||||
2.45.2
|
||||
|
||||
@@ -6,7 +6,7 @@ EAPI=8
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYPI_PN=${PN/-/.}
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
@@ -46,6 +46,11 @@ BDEPEND="
|
||||
distutils_enable_tests unittest
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
# https://review.opendev.org/c/openstack/oslo.log/+/921797
|
||||
"${FILESDIR}/${P}-py313.patch"
|
||||
)
|
||||
|
||||
# broken by some dep upgrade
|
||||
sed -i -e '/DeprecationWarningTestsNoOsloLog/,$d' \
|
||||
oslo_config/tests/test_cfg.py || die
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
From 60c39a3b874f027f690b49c987daa31c37bfb0e6 Mon Sep 17 00:00:00 2001
|
||||
From: Michał Górny <mgorny@gentoo.org>
|
||||
Date: Tue, 11 Jun 2024 21:35:58 +0200
|
||||
Subject: [PATCH] Replace deprecated logging.warn() calls with logging.warning()
|
||||
|
||||
Replace the deprecated logging.warn() calls with logging.warning().
|
||||
The former were undocumented, deprecated since Python 3.3 and eventually
|
||||
removed in Python 3.13.
|
||||
|
||||
See: https://docs.python.org/3.13/whatsnew/3.13.html#logging
|
||||
Partial-Bug: 2069084
|
||||
Change-Id: I6d1ee13409fe84cd54b7a3aa3ed862bc6e33f1c3
|
||||
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
||||
---
|
||||
|
||||
diff --git a/oslo_log/tests/unit/test_log.py b/oslo_log/tests/unit/test_log.py
|
||||
index d17d20a..7c066ae 100644
|
||||
--- a/oslo_log/tests/unit/test_log.py
|
||||
+++ b/oslo_log/tests/unit/test_log.py
|
||||
@@ -1115,7 +1115,7 @@
|
||||
self.assertIn(infoexpected, self.stream.getvalue())
|
||||
self.assertEqual('\033[00;36m', infocolor)
|
||||
|
||||
- self.colorlog.warn(warn_msg, context=ctxt)
|
||||
+ self.colorlog.warning(warn_msg, context=ctxt)
|
||||
self.assertIn(infoexpected, self.stream.getvalue())
|
||||
self.assertIn(warnexpected, self.stream.getvalue())
|
||||
self.assertEqual('\033[01;33m', warncolor)
|
||||
@@ -1266,7 +1266,7 @@
|
||||
self.mylog.info(info_message, context=ctxt)
|
||||
self.assertEqual(infoexpected, self.stream.getvalue())
|
||||
|
||||
- self.mylog.warn(warn_message, context=ctxt)
|
||||
+ self.mylog.warning(warn_message, context=ctxt)
|
||||
self.assertEqual(infoexpected + warnexpected, self.stream.getvalue())
|
||||
|
||||
def test_domain_in_log_msg(self):
|
||||
@@ -1590,11 +1590,11 @@
|
||||
stream = self.set_root_stream()
|
||||
log = logging.getLogger("a.a")
|
||||
log.info("info")
|
||||
- log.warn("warn")
|
||||
+ log.warning("warn")
|
||||
self.assertEqual("warn\n", stream.getvalue())
|
||||
stream = self.set_root_stream()
|
||||
log.info("info")
|
||||
- log.warn("warn")
|
||||
+ log.warning("warn")
|
||||
self.assertEqual("info\nwarn\n", stream.getvalue())
|
||||
|
||||
|
||||
From cd5eb0fdf4d74150d8e3b014ef43ad0d0cbb9a5d Mon Sep 17 00:00:00 2001
|
||||
From: Michał Górny <mgorny@gentoo.org>
|
||||
Date: Tue, 11 Jun 2024 21:45:05 +0200
|
||||
Subject: [PATCH] Update test_rfc5424_isotime_format_no_microseconds output for py3.13
|
||||
|
||||
In Python 3.13, the isotime format does not include microseconds anymore
|
||||
if they are zero. Update the test to account for both possibilities.
|
||||
|
||||
Closes-Bug: 2069084
|
||||
Change-Id: I8fc022e5ad0df8ec4bd413de12106390d9dbc0f1
|
||||
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
||||
---
|
||||
|
||||
diff --git a/oslo_log/tests/unit/test_log.py b/oslo_log/tests/unit/test_log.py
|
||||
index 7c066ae..3176c1c 100644
|
||||
--- a/oslo_log/tests/unit/test_log.py
|
||||
+++ b/oslo_log/tests/unit/test_log.py
|
||||
@@ -996,7 +996,10 @@
|
||||
self.config(logging_default_format_string="%(isotime)s %(message)s")
|
||||
|
||||
message = "test"
|
||||
- expected = "2015-12-16T13:54:26.000000+00:00 %s\n" % message
|
||||
+ if sys.version_info >= (3, 13):
|
||||
+ expected = "2015-12-16T13:54:26+00:00 %s\n" % message
|
||||
+ else:
|
||||
+ expected = "2015-12-16T13:54:26.000000+00:00 %s\n" % message
|
||||
|
||||
self.log.info(message)
|
||||
|
||||
@@ -6,7 +6,7 @@ EAPI=8
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYPI_PN=${PN/-/.}
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
@@ -44,6 +44,12 @@ distutils_enable_sphinx doc/source \
|
||||
dev-python/openstackdocstheme \
|
||||
dev-python/oslo-config
|
||||
|
||||
PATCHES=(
|
||||
# https://review.opendev.org/c/openstack/oslo.log/+/921797
|
||||
# https://review.opendev.org/c/openstack/oslo.log/+/921798
|
||||
"${FILESDIR}/${P}-py313.patch"
|
||||
)
|
||||
|
||||
src_test() {
|
||||
# requires eventlet
|
||||
rm oslo_log/tests/unit/test_pipe_mutex.py || die
|
||||
|
||||
@@ -39,23 +39,15 @@
|
||||
# They are all unmaintained, most of the ebuilds are still EAPI 6, and together
|
||||
# they have around 40 bugs.
|
||||
# Removal: 2024-07-11. Bug #933998.
|
||||
app-admin/drush
|
||||
dev-php/PEAR-Archive_Tar
|
||||
dev-php/PEAR-Auth_SASL
|
||||
dev-php/PEAR-Cache
|
||||
dev-php/PEAR-Cache_Lite
|
||||
dev-php/PEAR-Console_CommandLine
|
||||
dev-php/PEAR-Console_Getargs
|
||||
dev-php/PEAR-Console_Getopt
|
||||
dev-php/PEAR-Console_Table
|
||||
dev-php/PEAR-Crypt_CHAP
|
||||
dev-php/PEAR-Crypt_GPG
|
||||
dev-php/PEAR-Crypt_HMAC
|
||||
dev-php/PEAR-Crypt_HMAC2
|
||||
dev-php/PEAR-DB
|
||||
dev-php/PEAR-DB_DataObject
|
||||
dev-php/PEAR-Date
|
||||
dev-php/PEAR-Exception
|
||||
dev-php/PEAR-File
|
||||
dev-php/PEAR-File_Archive
|
||||
dev-php/PEAR-File_Find
|
||||
@@ -89,7 +81,6 @@ dev-php/PEAR-MDB2_Driver_oci8
|
||||
dev-php/PEAR-MDB2_Driver_pgsql
|
||||
dev-php/PEAR-MIME_Type
|
||||
dev-php/PEAR-Mail
|
||||
dev-php/PEAR-Mail_Mime
|
||||
dev-php/PEAR-Mail_mimeDecode
|
||||
dev-php/PEAR-Math_BigInteger
|
||||
dev-php/PEAR-Net_DNS
|
||||
@@ -101,8 +92,6 @@ dev-php/PEAR-Net_IPv6
|
||||
dev-php/PEAR-Net_LDAP2
|
||||
dev-php/PEAR-Net_POP3
|
||||
dev-php/PEAR-Net_Ping
|
||||
dev-php/PEAR-Net_SMTP
|
||||
dev-php/PEAR-Net_Sieve
|
||||
dev-php/PEAR-Net_SmartIRC
|
||||
dev-php/PEAR-Net_Socket
|
||||
dev-php/PEAR-Net_Traceroute
|
||||
@@ -111,7 +100,6 @@ dev-php/PEAR-Net_URL2
|
||||
dev-php/PEAR-Net_UserAgent_Detect
|
||||
dev-php/PEAR-Numbers_Words
|
||||
dev-php/PEAR-OLE
|
||||
dev-php/PEAR-PEAR
|
||||
dev-php/PEAR-PHP_Beautifier
|
||||
dev-php/PEAR-PHP_Debug
|
||||
dev-php/PEAR-Pager
|
||||
@@ -119,7 +107,6 @@ dev-php/PEAR-Services_JSON
|
||||
dev-php/PEAR-Services_TinyURL
|
||||
dev-php/PEAR-Services_W3C_CSSValidator
|
||||
dev-php/PEAR-Spreadsheet_Excel_Writer
|
||||
dev-php/PEAR-Structures_Graph
|
||||
dev-php/PEAR-System_Command
|
||||
dev-php/PEAR-Text_CAPTCHA
|
||||
dev-php/PEAR-Text_CAPTCHA_Numeral
|
||||
@@ -134,10 +121,8 @@ dev-php/PEAR-Var_Dump
|
||||
dev-php/PEAR-XML_Parser
|
||||
dev-php/PEAR-XML_RSS
|
||||
dev-php/PEAR-XML_Serializer
|
||||
dev-php/PEAR-XML_Util
|
||||
dev-php/YAML
|
||||
dev-php/cphplib
|
||||
dev-php/pear
|
||||
www-apps/dotproject
|
||||
|
||||
# Michał Górny <mgorny@gentoo.org> (2024-06-10)
|
||||
|
||||
Reference in New Issue
Block a user