python-stem: update to v1.8.1
authorJavier Marcet <javier@marcet.info>
Sun, 2 Oct 2022 16:58:15 +0000 (18:58 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sat, 14 Oct 2023 15:56:59 +0000 (17:56 +0200)
Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit e6cc43a7f0077019c3dd9b43cb1c2850afee155d)

lang/python/python-stem/Makefile
lang/python/python-stem/patches/001-fixes-for-Python310.patch [deleted file]

index 5f8a877eebe2123673e734236963f58821a9db8f..2c342fab1d6bc2f4bc746a4c4c07bfbf7ebdb970 100644 (file)
@@ -1,11 +1,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-stem
-PKG_VERSION:=1.8.0
-PKG_RELEASE:=3
+PKG_VERSION:=1.8.1
+PKG_RELEASE:=$(AUTORELEASE)
 
 PYPI_NAME:=stem
-PKG_HASH:=a0b48ea6224e95f22aa34c0bc3415f0eb4667ddeae3dfb5e32a6920c185568c2
+PKG_HASH:=81d43a7c668ba9d7bc1103b2e7a911e9d148294b373d27a59ae8da79ef7a3e2f
 
 PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
 PKG_LICENSE:=LGPL-3.0-only
diff --git a/lang/python/python-stem/patches/001-fixes-for-Python310.patch b/lang/python/python-stem/patches/001-fixes-for-Python310.patch
deleted file mode 100644 (file)
index d7a5f6c..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-From 36bcb170ba9097885902513640075eac2e6ce384 Mon Sep 17 00:00:00 2001
-From: Calin Culianu <calin.culianu@gmail.com>
-Date: Mon, 8 Nov 2021 18:15:59 -0600
-Subject: [PATCH] Fixup for Python 3.10
-
-Closes issue #109.  Long story short: a few names from collection are
-now moved to collection.abc exclusively starting in Python 3.10. The
-only name this app uses from there that was moved is
-`collections.Iterable`.  Python versions starting from 3.3 support both
-`collections.Iterable` and `collections.abc.Iterable` as the way to refer to
-this class, which Python 3.10 being the first one to drop
-`collections.Iterable`.  So.. we just work around this API quirk
-and always refer ot it as `collections.abc.Iterable`.
----
- stem/control.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
---- a/stem/control.py
-+++ b/stem/control.py
-@@ -249,6 +249,7 @@ If you're fine with allowing your script
- import calendar
- import collections
-+import collections.abc
- import functools
- import inspect
- import io
-@@ -2532,7 +2533,7 @@ class Controller(BaseController):
-     for param, value in params:
-       if isinstance(value, str):
-         query_comp.append('%s="%s"' % (param, value.strip()))
--      elif isinstance(value, collections.Iterable):
-+      elif isinstance(value, collections.abc.Iterable):
-         query_comp.extend(['%s="%s"' % (param, val.strip()) for val in value])
-       elif not value:
-         query_comp.append(param)