diff options
Diffstat (limited to 'net-libs/stem')
-rw-r--r-- | net-libs/stem/Manifest | 5 | ||||
-rw-r--r-- | net-libs/stem/files/1.8.0-replace-all-usages-of-inspect.getargspec.patch | 53 | ||||
-rw-r--r-- | net-libs/stem/stem-1.8.1.ebuild | 50 | ||||
-rw-r--r-- | net-libs/stem/stem-1.8.2.ebuild | 2 |
4 files changed, 2 insertions, 108 deletions
diff --git a/net-libs/stem/Manifest b/net-libs/stem/Manifest index 90375e9159c7..09e750d4d532 100644 --- a/net-libs/stem/Manifest +++ b/net-libs/stem/Manifest @@ -1,7 +1,4 @@ -AUX 1.8.0-replace-all-usages-of-inspect.getargspec.patch 1842 BLAKE2B eef46aa34262df0b7c08596c5040f4688508764cf07bfcefb4368c5cc4cbdf62542880a57c1d53e135d3b70ed3da24dc02225d520afb5972d55175c7930088d3 SHA512 d06d668303bb0b23c223c25d0978ed4573560870c9cb054509ca3244213c76257e165c2ea0789955e045f28067e09fc4833bcf4cbd714f3d7dd96d93a8e8e5e1 AUX 1.8.1-Add-an-exclude-test-argument.patch 7797 BLAKE2B eff2398cf44ee619075be6e49c32d82f99715bfe542922eaa28dc8efd665686411c093174fb19aff084b2f4c25a16219006cf6bcf1396351148a3f737b81c9c4 SHA512 ef9f394be7069e13e303512a2ea73dfe628588f09123df7f72b4f32b17d1eb7d17a5801406f4167f630547adcd5bad84688b5a35471930ad02c70653ba87be87 -DIST stem-1.8.1.tar.gz 2859634 BLAKE2B f78da079791583a17eb439a4e2459c7e0af454e45300202df1085d1b1ba150ee097cfa1b93df5ad0d7090644fad6e035604382c73b94744076cad490ab52459a SHA512 bad2f4f96e37caa3ee2928bb027318c4941ca3f6c0072c5f6e87fe647d2b68400ad352d9c27fa2a35c00f4f327aa9cc00e2907b21a9cbd26fab46ec21e2a038a DIST stem-1.8.2.tar.gz 2859640 BLAKE2B 4539fc42a463cd1c2ebba10bb31a69d529c41cdaee623beebd3219a2c1d59f8f9b8242b537dd4244e666fb765c5af2729caeeb22a7f8cd1ca6c13dd3cf6aac93 SHA512 f054bbc9a61e04fb7e3b7d1534803b938b855c29795471953661f8fd9c0a5196fe1f9ccfd01e5b3256ea42893a7d57fda34fa54932012e345f74bb3303ff98c5 -EBUILD stem-1.8.1.ebuild 1482 BLAKE2B 74799c4c26538e682a771e321515cd228e866ab7448e65672bbc3a90675de3be49b34122f11cd10f1c348e467241102b741ad309451676d3c9a53975d61fb486 SHA512 920e1ca2e66d0a70180d7eebbb06ddd56bb69cd37a2154c09c5c056e2f5b595b54acc23f3b45a6859e5e893880573d4d6dd95438fc11b687501082ef83c0a85f -EBUILD stem-1.8.2.ebuild 1623 BLAKE2B 70615fd27a6017a0560a53090ec1b5d388ecec7c35eb7aa5cbf1430ce057632cdab71e5e0b20958c2380c914d359a27ae63a4b6bf4bceb10848d3732af2facb2 SHA512 472c3a93dfe9b05c0691b552b41ee2948009077fd3fa72502edc62d256e8f91fa4e372df04aff9f93e9030c34b36693553df7df4707c38205019c62358bfefcf +EBUILD stem-1.8.2.ebuild 1646 BLAKE2B 717ad83f498a56b3a173c9483de55e752d4218b199f4973245723dceecb135428176f0d62a706bec66b6759a9ed5ac01c0f41422947a7f79615e0c1715aa3a49 SHA512 eaf4d40d72fc2637e69a4966fe8b790c11c15c3c209ca8fd0d9ed671595b64aa2924fcf3d20ee7767e399b99bbc66100f471f863ee780864ff8c0d169d4be5ec MISC metadata.xml 297 BLAKE2B 9da181ceb341f1e4c5bf37cbcc8f40536c237a20095b4ffc0553996a4cd5d24ccb2b85d248f654a36757a4db5154335949f298a09df7e3d63c3cf74f38253788 SHA512 1400ff80faae768418f7c2e246c09e36a1ea0d66b686adf3251b4b7a57930ad39e935912a539ef3b3c9316f686d7c1191658a28188f3eb1b90ed1a07e7751c77 diff --git a/net-libs/stem/files/1.8.0-replace-all-usages-of-inspect.getargspec.patch b/net-libs/stem/files/1.8.0-replace-all-usages-of-inspect.getargspec.patch deleted file mode 100644 index 608fe5f5224f..000000000000 --- a/net-libs/stem/files/1.8.0-replace-all-usages-of-inspect.getargspec.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 6497514ea89ba44d404b661d495a8cd2649ac628 Mon Sep 17 00:00:00 2001 -From: Juan Orti Alcaine <jortialc@redhat.com> -Date: Fri, 1 Jul 2022 09:40:41 +0200 -Subject: [PATCH] Replace all usages of inspect.getargspec - ---- - stem/control.py | 2 +- - stem/prereq.py | 2 +- - stem/util/conf.py | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/stem/control.py b/stem/control.py -index 42736486..3b29898d 100644 ---- a/stem/control.py -+++ b/stem/control.py -@@ -474,7 +474,7 @@ def with_default(yields = False): - - def decorator(func): - def get_default(func, args, kwargs): -- arg_names = inspect.getargspec(func).args[1:] # drop 'self' -+ arg_names = inspect.getfullargspec(func).args[1:] # drop 'self' - default_position = arg_names.index('default') if 'default' in arg_names else None - - if default_position is not None and default_position < len(args): -diff --git a/stem/prereq.py b/stem/prereq.py -index 4af6c093..4009c317 100644 ---- a/stem/prereq.py -+++ b/stem/prereq.py -@@ -241,7 +241,7 @@ def is_mock_available(): - - # check for mock's new_callable argument for patch() which was introduced in version 0.8.0 - -- if 'new_callable' not in inspect.getargspec(mock.patch).args: -+ if 'new_callable' not in inspect.getfullargspec(mock.patch).args: - raise ImportError() - - return True -diff --git a/stem/util/conf.py b/stem/util/conf.py -index 80399810..15c4db8b 100644 ---- a/stem/util/conf.py -+++ b/stem/util/conf.py -@@ -285,7 +285,7 @@ def uses_settings(handle, path, lazy_load = True): - config.load(path) - config._settings_loaded = True - -- if 'config' in inspect.getargspec(func).args: -+ if 'config' in inspect.getfullargspec(func).args: - return func(*args, config = config, **kwargs) - else: - return func(*args, **kwargs) --- -2.36.1 - diff --git a/net-libs/stem/stem-1.8.1.ebuild b/net-libs/stem/stem-1.8.1.ebuild deleted file mode 100644 index 6cd30508aeaa..000000000000 --- a/net-libs/stem/stem-1.8.1.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} pypy3 ) -DISTUTILS_USE_PEP517=setuptools - -inherit distutils-r1 pypi - -DESCRIPTION="Stem is a Python controller library for Tor" -HOMEPAGE="https://stem.torproject.org" - -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~riscv ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND="test? ( dev-python/pyflakes[${PYTHON_USEDEP}] - net-vpn/tor )" - -RDEPEND="net-vpn/tor" - -DOCS=( docs/{_static,_templates,api,tutorials,{api,change_log,contents,download,faq,index,tutorials}.rst} ) - -src_prepare() { - default - - # https://bugzilla.redhat.com/2021902 - eapply "${FILESDIR}/1.8.0-replace-all-usages-of-inspect.getargspec.patch" - - # https://github.com/torproject/stem/issues/53 - eapply "${FILESDIR}/${PV}-Add-an-exclude-test-argument.patch" - - # https://github.com/torproject/stem/issues/56 - sed -i '/MOCK_VERSION/d' run_tests.py || die -} - -python_test() { - # Disable failing test - ${PYTHON} run_tests.py --all --target RUN_ALL \ - --exclude-test test.integ.installation.TestInstallation.test_install \ - --exclude-test test.integ.util.system.TestSystem.test_expand_path \ - --exclude-test test.integ.control.controller.TestController.test_get_listeners \ - --exclude-test test.integ.control.controller.TestController.test_get_ports \ - --exclude-test test.integ.control.controller.TestController.test_getinfo_freshrelaydescs \ - || die - -} diff --git a/net-libs/stem/stem-1.8.2.ebuild b/net-libs/stem/stem-1.8.2.ebuild index 26857d59447a..b93e6db9fa91 100644 --- a/net-libs/stem/stem-1.8.2.ebuild +++ b/net-libs/stem/stem-1.8.2.ebuild @@ -4,8 +4,8 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} pypy3 ) +PYTHON_REQ_USE="sqlite" DISTUTILS_USE_PEP517=setuptools - inherit distutils-r1 pypi DESCRIPTION="Stem is a Python controller library for Tor" |