commit:     b6c2d2522f6abcab513c685e69506a72e0ecdf77
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 12 21:29:27 2021 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Wed Jan 13 07:55:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6c2d252

dev-python/tld: 0.12.5 bump, enable tests

Closes: https://bugs.gentoo.org/763207
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 dev-python/tld/Manifest                            |  1 +
 .../tld/files/tld-0.12.5-names_cli_test.patch      | 18 +++++++++++++++
 dev-python/tld/tld-0.12.5.ebuild                   | 26 ++++++++++++++++++++++
 3 files changed, 45 insertions(+)

diff --git a/dev-python/tld/Manifest b/dev-python/tld/Manifest
index 6c2bfc01892..f220f98005e 100644
--- a/dev-python/tld/Manifest
+++ b/dev-python/tld/Manifest
@@ -1,2 +1,3 @@
 DIST tld-0.12.2.tar.gz 1347015 BLAKE2B 
d284581917a9ddee026d316961f2cdc6efc8a3c8dee8112c7266d55a9493f1aca831db0635db02b737bb3e02b3910a8822e121a5317ab02f5078075839e02c91
 SHA512 
b997bd3cdf22f65862c9b3e7d446014325d9538dd06eeed86f4b9b6c6ba440829b5d611cc19fed9bf8bf039ef01c4258c71b5c765bbecdfc345dd00e73c7fca1
 DIST tld-0.12.3.tar.gz 1498596 BLAKE2B 
7a1d33c3527bc1dfeb18bfcc5af4d153f9cc39b52e858f4ac5907d0edece67da6bb6f900d028937bafb468b31534ed284a54effae6d97397dd33e27261af3730
 SHA512 
fe33bb18bceea6e1eb4ba3ca46dc54c81a8d3a1f4187078488676b951e6734a885a44525f6f5c4dc8c2fea1b0f4ffd8060244fbf33f9b1bd9dfafbec12876711
+DIST tld-0.12.5.tar.gz 1500013 BLAKE2B 
d6b51e144f9c1305212ccb537b3488b7643190598674103e8fc7772c34f1e5a6eefb09d957a6ecd1ffa3e9ab0cc41b07dd97ef70f031259393c7410cd05e0b29
 SHA512 
90fa3911f64368e3c75d034b5854d4460ac41b603b431ef94bb0b49bbd37f5fadb0a084f24849aa8fa2a74608ea9555eec2d4372641bc4d135e1cb4fd3ad23ed

diff --git a/dev-python/tld/files/tld-0.12.5-names_cli_test.patch 
b/dev-python/tld/files/tld-0.12.5-names_cli_test.patch
new file mode 100644
index 00000000000..05af5236b1e
--- /dev/null
+++ b/dev-python/tld/files/tld-0.12.5-names_cli_test.patch
@@ -0,0 +1,18 @@
+diff -Naur tld-0.12.5.orig/src/tld/tests/test_core.py 
tld-0.12.5/src/tld/tests/test_core.py
+--- tld-0.12.5.orig/src/tld/tests/test_core.py 2021-01-11 22:28:08.000000000 
+0100
++++ tld-0.12.5/src/tld/tests/test_core.py      2021-01-12 22:27:47.286114741 
+0100
+@@ -710,14 +710,6 @@
+                 )
+             )
+ 
+-    @internet_available_only
+-    @log_info
+-    def test_19_update_tld_names_cli(self):
+-        """Test the return code of the CLI version of `update_tld_names`."""
+-        reset_tld_names()
+-        res = update_tld_names_cli()
+-        self.assertEqual(res, 0)
+-
+     @log_info
+     def test_20_parse_tld_custom_tld_names_good_patterns(self):
+         """Test `parse_tld` good URL patterns for custom tld names."""

diff --git a/dev-python/tld/tld-0.12.5.ebuild b/dev-python/tld/tld-0.12.5.ebuild
new file mode 100644
index 00000000000..cd2b2de5be2
--- /dev/null
+++ b/dev-python/tld/tld-0.12.5.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7,8,9} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit distutils-r1
+
+DESCRIPTION="Extract the top level domain (TLD) from the URL given"
+HOMEPAGE="https://github.com/barseghyanartur/tld";
+SRC_URI="https://github.com/barseghyanartur/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+BDEPEND="test? (
+       dev-python/Faker[${PYTHON_USEDEP}]
+       dev-python/tox[${PYTHON_USEDEP}]
+       )"
+
+# Calls system binary directly
+PATCHES=( "${FILESDIR}"/${PN}-0.12.5-names_cli_test.patch )
+
+distutils_enable_tests setup.py

Reply via email to