mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-python/oslo-i18n: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST oslo.i18n-6.2.0.tar.gz 48228 BLAKE2B bb65caff703e2bbc82f4fecd4b0d491f64ec7d863f848f8f79497df9471257dec25a77ad7f084c6d88ac14a4b1a1f44fd302297e1e13919e69ebaf27c5491d6f SHA512 725d814c7db35250e8ffe06c0021fc9147bcdaa300791f1d50b0eef2897abe609b415a12b6aa58d50925516fd9e6a1ad54e141f77e11856de3ab765b4e06939b
|
||||
DIST oslo.i18n-6.3.0.tar.gz 48207 BLAKE2B 20a882516dd45da8dda34127ba422a619decd982f01adeee5909b8646d49c8609ecb6adad4fc48ab32e820c4dcf4a42d4baf7e776983daf4586ae944b738bb6e SHA512 483ff39425b3fc5c6c54a3502a78a53406ccb3cdb7aff0836b9c2a49b8146fd931e2b4f3133d708d33d16bd99155f8cbcf8505491d74de5016da5e647a069a15
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
From 151fa09cf0248b2dfc8bb9e960e0383583985781 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Wed, 15 Nov 2023 09:16:21 +0100
|
||||
Subject: [PATCH] Fix leftover `locale.getdefaultlocale` mock
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Replace the remaining `locale.getdefaultlocale` mock with
|
||||
`locale.getlocale`. 77a994a99385d33b1b2e626094cbd09fd0d85873 has
|
||||
replaced the `locale.getdefaultlocale()` call and updated all other
|
||||
mocks but this one remained, causing test failures on non-en_US locales.
|
||||
|
||||
Closes-Bug: 2043539
|
||||
Change-Id: I5ab36a0ead05fa7a83fc1c64e440482f2cc8e675
|
||||
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
||||
---
|
||||
oslo_i18n/fixture.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/oslo_i18n/fixture.py b/oslo_i18n/fixture.py
|
||||
index 5c5fddc..7a69aff 100644
|
||||
--- a/oslo_i18n/fixture.py
|
||||
+++ b/oslo_i18n/fixture.py
|
||||
@@ -160,5 +160,5 @@ class PrefixLazyTranslation(fixtures.Fixture):
|
||||
lambda *x, **y: self.languages))
|
||||
self.useFixture(fixtures.MonkeyPatch('gettext.translation',
|
||||
_prefix_translations))
|
||||
- self.useFixture(fixtures.MonkeyPatch('locale.getdefaultlocale',
|
||||
+ self.useFixture(fixtures.MonkeyPatch('locale.getlocale',
|
||||
lambda *x, **y: self.locale))
|
||||
--
|
||||
2.42.1
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYPI_PN=${PN/-/.}
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Oslo i18n library"
|
||||
HOMEPAGE="
|
||||
https://opendev.org/openstack/oslo.i18n/
|
||||
https://github.com/openstack/oslo.i18n/
|
||||
https://pypi.org/project/oslo.i18n/
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~riscv x86"
|
||||
|
||||
PATCHES=(
|
||||
# https://review.opendev.org/c/openstack/oslo.i18n/+/901002
|
||||
"${FILESDIR}/${P}-test.patch"
|
||||
)
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
>=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
Reference in New Issue
Block a user