Date: Sunday, April 23, 2023 @ 20:57:43
Author: kpcyrd
Revision: 1448430
archrelease: copy trunk to community-staging-any
Added:
python-stem/repos/community-staging-any/
python-stem/repos/community-staging-any/PKGBUILD
(from rev 1448429, python-stem/trunk/PKGBUILD)
python-stem/repos/community-staging-any/keys/
python-stem/repos/community-staging-any/python3-11.patch
(from rev 1448429, python-stem/trunk/python3-11.patch)
------------------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
python3-11.patch | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 92 insertions(+)
Copied: python-stem/repos/community-staging-any/PKGBUILD (from rev 1448429,
python-stem/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-23 20:57:43 UTC (rev 1448430)
@@ -0,0 +1,53 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Spider.007 <archlinux AT spider007 DOT net>
+
+pkgname=python-stem
+_pypiname=${pkgname#*-}
+pkgver=1.8.1
+pkgrel=2
+pkgdesc='Python controller library for Tor'
+url='https://stem.torproject.org/'
+arch=('any')
+license=('LGPL3')
+depends=('python' 'python-cryptography' 'python-pynacl' 'procps-ng')
+checkdepends=('tor')
+optdepends=('tor: tor-server to talk to')
+replaces=('stem')
+provides=('stem')
+source=(https://files.pythonhosted.org/packages/source/${_pypiname::1}/${_pypiname}/${_pypiname}-${pkgver}.tar.gz{,.asc}
+ python3-11.patch)
+sha256sums=('81d43a7c668ba9d7bc1103b2e7a911e9d148294b373d27a59ae8da79ef7a3e2f'
+ 'SKIP'
+ '8d5b906ec0a007946a943516e0bb997e0fcf10a6544bca893ce06600c6114d4c')
+validpgpkeys=('68278CC5DD2D1E85C4E45AD90445B7AB9ABBEEC6') # Damian Johnson
(www.atagar.com) <[email protected]>
+
+prepare() {
+ cd ${_pypiname}-${pkgver}
+ # https://github.com/torproject/stem/issues/56
+ sed -i '/MOCK_VERSION/d' run_tests.py
+ # remove flaky integration tests
+ sed -i test/settings.cfg \
+ -e '/|test.integ.client.connection.TestConnection/d' \
+ -e '/|test.integ.process.TestProcess/d' \
+ -e '/|test.integ.installation.TestInstallation/d' \
+ -e '/|test.integ.control.controller.TestController/d'
+ rm
test/integ/{client/connection,{installation,process},control/controller}.py
+ patch -Np1 -i ../python3-11.patch
+}
+
+build() {
+ cd ${_pypiname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pypiname}-${pkgver}
+ ./run_tests.py --all
+}
+
+package() {
+ cd ${_pypiname}-${pkgver}
+ python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
+}
+
+# vim: ts=2 sw=2 et:
Copied: python-stem/repos/community-staging-any/python3-11.patch (from rev
1448429, python-stem/trunk/python3-11.patch)
===================================================================
--- community-staging-any/python3-11.patch (rev 0)
+++ community-staging-any/python3-11.patch 2023-04-23 20:57:43 UTC (rev
1448430)
@@ -0,0 +1,39 @@
+diff --git a/stem/control.py b/stem/control.py
+index e192e295..e6fab6cf 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)