changeset e7041ac5d0ea in tryton-overlay:default details: https://hg.tryton.org/tryton-overlay?cmd=changeset&node=e7041ac5d0ea description: dev-python/pycountry: restore version 20.7.3 diffstat:
dev-python/pycountry/Manifest | 4 + dev-python/pycountry/files/pycountry-20.7.3-fix-tests-for-pypy3.patch | 21 ++++++++ dev-python/pycountry/metadata.xml | 8 +++ dev-python/pycountry/pycountry-20.7.3.ebuild | 26 ++++++++++ 4 files changed, 59 insertions(+), 0 deletions(-) diffs (75 lines): diff -r 655fea8073f4 -r e7041ac5d0ea dev-python/pycountry/Manifest --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-python/pycountry/Manifest Tue Jun 14 00:25:12 2022 +0200 @@ -0,0 +1,4 @@ +AUX pycountry-20.7.3-fix-tests-for-pypy3.patch 740 BLAKE2B 64113481df5b7fb385604f16d7b3be066a12b6a5e1dab38cdf879101da132bcacf407fdf773d5f15381789114be265c7e1ee3ab880c38dae6e904e6820923ee5 SHA512 0df7756ac4d3dd3ccc409307f21a95021c93851ad3b6ce07ce244eade4957d9906dc6aaabdbafe671cf6f9619623cdd22097119642c0c926376e4991eb6a1a4f +DIST pycountry-20.7.3.tar.gz 10137217 BLAKE2B 2b32d450a1d16eab95e0c1ab6cae3bf89c07742d48cf6f8473854119ac0483b5490523e03e823c9b314231983f39d1c8bf595aac201756fee9897a8d15a84c08 SHA512 df88a34307a4275267a7f3af282b73ca5e762c49ad158bfcd39b97c5d852bf045bcfe72351fc6f232c55003a7c4b0a04801eb562ba65ed5d599bd45b2bd3bc58 +EBUILD pycountry-20.7.3.ebuild 766 BLAKE2B 4cd39651c2f7ff7144fec10604bcebcaa7733c0e83ed83ff1a68690f301cd5dba5d03a2371bafde0a4150b819fe138cff34bf847591d4a1b9922fc0e5e074f76 SHA512 84d780db4ee81c2af7f3de2201c5f2a5cd61beb9aba1722d5fa0298913748a63ba3ab8c3f4dab7eecff3abfe7dd58e9a60d649803b03937a8b47a5f78a64c97a +MISC metadata.xml 241 BLAKE2B 8d27e5418bef2dffe2becb2e4dee0ae1cf02da46ae6c8f9d7f0f4191b9b1d6e1f0b3f97b989633875ddcc9ab0be83b3d76da02d73d6189d22c56dd9872e0ddaf SHA512 822d51a7a83ac88dc470a783fd47c26009fe930492b69eb540739c23f724654eab8252950d276ee07a040465bd41ec4fd206d9ec340cf92b232cc2a99b965886 diff -r 655fea8073f4 -r e7041ac5d0ea dev-python/pycountry/files/pycountry-20.7.3-fix-tests-for-pypy3.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-python/pycountry/files/pycountry-20.7.3-fix-tests-for-pypy3.patch Tue Jun 14 00:25:12 2022 +0200 @@ -0,0 +1,21 @@ +commit 57a64b69704640bd85270d886c369ef5a31eee80 +Author: Louis Sautier <[email protected]> +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(): diff -r 655fea8073f4 -r e7041ac5d0ea dev-python/pycountry/metadata.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-python/pycountry/metadata.xml Tue Jun 14 00:25:12 2022 +0200 @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Cédric Krier</name> + </maintainer> +</pkgmetadata> diff -r 655fea8073f4 -r e7041ac5d0ea dev-python/pycountry/pycountry-20.7.3.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-python/pycountry/pycountry-20.7.3.ebuild Tue Jun 14 00:25:12 2022 +0200 @@ -0,0 +1,26 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{7..10} ) +# The package uses pkg_resources to determine its version +DISTUTILS_USE_SETUPTOOLS=manual + +inherit distutils-r1 + +DESCRIPTION="Database of countries, subdivisions, languages, currencies and script" +HOMEPAGE="https://github.com/flyingcircusio/pycountry" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~riscv ~sparc ~x86" + +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +BDEPEND="${RDEPEND}" + +distutils_enable_tests --install pytest + +# https://github.com/flyingcircusio/pycountry/pull/51 +PATCHES=( "${FILESDIR}/${P}-fix-tests-for-pypy3.patch" )
