Github messages for voidlinux
 help / color / mirror / Atom feed
From: steinex <steinex@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] python3-stem: update to 1.8.1, unbreak for python3.11, adopt.
Date: Fri, 11 Nov 2022 11:55:39 +0100	[thread overview]
Message-ID: <20221111105539.4B8LE05ZNflWwX2rL6RJApWaE3bXlTvXEuvRXlef43U@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40445@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1283 bytes --]

There is an updated 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, adopt.
<!-- 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: 3617 bytes --]

From 0b1356d9fc679f442d64f0afd883a578190300d9 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, adopt.

---
 .../patches/unbreak-for-python-3.11.patch     | 53 +++++++++++++++++++
 srcpkgs/python3-stem/template                 | 10 ++--
 2 files changed, 58 insertions(+), 5 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..53e2aafff796 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"
+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"

  parent reply	other threads:[~2022-11-11 10:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-10 16:43 [PR PATCH] python3-stem: update to 1.8.1, unbreak for python3.11, adpot steinex
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 ` steinex [this message]
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=20221111105539.4B8LE05ZNflWwX2rL6RJApWaE3bXlTvXEuvRXlef43U@z \
    --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).