From: steinex <steinex@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] python3-stem: update to 1.8.1, unbreak for python3.11, adpot.
Date: Thu, 10 Nov 2022 17:43:03 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40445@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1278 bytes --]
There is a new pull request by steinex against master on the void-packages repository
https://github.com/steinex/void-packages python3-stem
https://github.com/void-linux/void-packages/pull/40445
python3-stem: update to 1.8.1, unbreak for python3.11, adpot.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/40445.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-stem-40445.patch --]
[-- Type: text/x-diff, Size: 3559 bytes --]
From 23387c98c1aef00ca38923fded391be9ed3d161f Mon Sep 17 00:00:00 2001
From: Frank Steinborn <steinex@nognu.de>
Date: Thu, 10 Nov 2022 15:36:40 +0100
Subject: [PATCH] python3-stem: update to 1.8.1, unbreak for python3.11, adpot.
---
.../patches/unbreak-for-python-3.11.patch | 53 +++++++++++++++++++
srcpkgs/python3-stem/template | 8 +--
2 files changed, 57 insertions(+), 4 deletions(-)
create mode 100644 srcpkgs/python3-stem/patches/unbreak-for-python-3.11.patch
diff --git a/srcpkgs/python3-stem/patches/unbreak-for-python-3.11.patch b/srcpkgs/python3-stem/patches/unbreak-for-python-3.11.patch
new file mode 100644
index 000000000000..c8578a5074cb
--- /dev/null
+++ b/srcpkgs/python3-stem/patches/unbreak-for-python-3.11.patch
@@ -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
+
diff --git a/srcpkgs/python3-stem/template b/srcpkgs/python3-stem/template
index 47d9c05a15ea..8a8ab5279c82 100644
--- a/srcpkgs/python3-stem/template
+++ b/srcpkgs/python3-stem/template
@@ -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"
distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.gz"
-checksum=a0b48ea6224e95f22aa34c0bc3415f0eb4667ddeae3dfb5e32a6920c185568c2
+checksum=81d43a7c668ba9d7bc1103b2e7a911e9d148294b373d27a59ae8da79ef7a3e2f
conflicts="python-stem>=0"
next reply other threads:[~2022-11-10 16:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-10 16:43 steinex [this message]
2022-11-10 16:48 ` [PR PATCH] [Updated] " steinex
2022-11-10 22:52 ` [PR REVIEW] python3-stem: update to 1.8.1, unbreak for python3.11, adopt classabbyamp
2022-11-11 10:55 ` [PR PATCH] [Updated] " steinex
2022-11-11 11:08 ` [PR PATCH] [Merged]: " classabbyamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40445@inbox.vuxu.org \
--to=steinex@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).