dev-python/pycountry: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-06-02 13:17:23 +02:00
parent 154e9224cf
commit 531fabe3ef
3 changed files with 0 additions and 51 deletions

View File

@@ -1,3 +1,2 @@
DIST pycountry-22.3.5.tar.gz 10141551 BLAKE2B d645eade8ce9be3b99f4f2b189cc50c3395ecb3899ab9fa668066993abbfa576191cfcc05b7bb2764d088a86df492770bcc0a8834f04e6fde58a01defe8a1b14 SHA512 07dc507ee94f1880727761df197f81704386d9246163c9a5872f47083d37c7d1205dfbd28c6663ef0731a0b05277ade03a1a1929ab84087e0e85c05028c68b89
DIST pycountry-23.12.11.tar.gz 5927399 BLAKE2B a8d32593d80a881abd03b482a99afc22996a730d911577f91eb8035336f07a25a8cd74cd19f9396675acacbab953098bf831119f8b9f7c72fc6c2807713fe6c9 SHA512 25b5a74c0dd8115473571976a64b6fed7010f62c1b3b4c1888b9e13a7cf4f533173f51d4652d55c426adee4e0ff119bb6e3132d04dce150b9d1ca4b11366c579
DIST pycountry-24.6.1.tar.gz 6043910 BLAKE2B 53e5f3bb89edb95a10cc7bef3d5cef463d957b9bd80da1aea57c274f76f9fc5f4848c9ceabcf97d369343a5bc39f6b8e7fb2e80344ff29ccd5856a4de9770b3b SHA512 36d8f68b830d74259a5f9ac1c9c97c1b228b0072613229e6f579ea5af587ab1cd25f0637a2cdd1dbf2ae8225e2aa2958d25f1e6df42d577da821d85c4c49ae93

View File

@@ -1,21 +0,0 @@
commit 57a64b69704640bd85270d886c369ef5a31eee80
Author: Louis Sautier <sautier.louis@gmail.com>
Date: Thu Sep 17 13:01:07 2020 +0200
Do not rely on CPython-specific __builtins__ for tests
This makes test_locales pass with PyPy3.
diff --git a/src/pycountry/tests/test_general.py b/src/pycountry/tests/test_general.py
index ea697ae..ad1090f 100644
--- a/src/pycountry/tests/test_general.py
+++ b/src/pycountry/tests/test_general.py
@@ -149,7 +149,7 @@ def test_locales():
german = gettext.translation(
"iso3166", pycountry.LOCALES_DIR, languages=["de"])
german.install()
- assert __builtins__["_"]("Germany") == "Deutschland"
+ assert _("Germany") == "Deutschland"
def test_removed_countries():

View File

@@ -1,29 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3 python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="Database of countries, subdivisions, languages, currencies and script"
HOMEPAGE="
https://github.com/flyingcircusio/pycountry/
https://pypi.org/project/pycountry/
"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
BDEPEND="${RDEPEND}"
distutils_enable_tests pytest
# https://github.com/flyingcircusio/pycountry/pull/51
PATCHES=(
"${FILESDIR}/pycountry-22.3.5-fix-tests-for-pypy3.patch"
)