python3-stem: update to 1.8.1, unbreak for python3.11, adopt.

This commit is contained in:
Frank Steinborn 2022-11-10 15:36:40 +01:00 committed by classabbyamp
parent 11b825f79e
commit f0a33066c9
2 changed files with 58 additions and 5 deletions

View File

@ -0,0 +1,53 @@
From 4bd809d07cfe76eabb83c918a468bd88dfb0476b Mon Sep 17 00:00:00 2001
From: Frank Steinborn <steinex@nognu.de>
Date: Thu, 10 Nov 2022 16:05:45 +0100
Subject: [PATCH] unbreak for python 3.11
---
stem/control.py | 2 +-
stem/prereq.py | 2 +-
stem/util/conf.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git stem/control.py stem/control.py
index e192e29..e6fab6c 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 stem/prereq.py stem/prereq.py
index 4af6c09..4009c31 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 stem/util/conf.py stem/util/conf.py
index 8039981..15c4db8 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.38.1

View File

@ -1,15 +1,15 @@
# Template file for 'python3-stem'
pkgname=python3-stem
version=1.8.0
revision=5
version=1.8.1
revision=1
build_style=python3-module
hostmakedepends="python3-devel"
depends="python3-cryptography"
short_desc="Python3 controller library for Tor"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="Frank Steinborn <steinex@nognu.de>"
license="LGPL-3.0-or-later"
homepage="https://stem.torproject.org/"
changelog="https://stem.torproject.org/change_log.html#version-1-7"
changelog="https://stem.torproject.org/change_log.html"
distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.gz"
checksum=a0b48ea6224e95f22aa34c0bc3415f0eb4667ddeae3dfb5e32a6920c185568c2
checksum=81d43a7c668ba9d7bc1103b2e7a911e9d148294b373d27a59ae8da79ef7a3e2f
conflicts="python-stem>=0"