Skip to contentSkip to conversation

package/python-iptables: bump to version 1.2.0

PATCH In review James Hilliard 2 participants 2 messages Jan 2 – Jan 3

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-iptables: bump to version 1.2.0

Drop patch which is no longer required.

---
 ...g-get_path-instead-of-get_python_lib.patch | 40 -------------------
 package/python-iptables/python-iptables.hash  |  7 ++--
 package/python-iptables/python-iptables.mk    |  5 ++-
 3 files changed, 6 insertions(+), 46 deletions(-)
 delete mode 100644 package/python-iptables/0001-use-sysconfig-get_path-instead-of-get_python_lib.patch
package/python-iptables/0001-use-sysconfig-get_path-instead-of-get_python_lib.patch deleted +0 -40
deleted file mode 100644
index 2a4de3daf2..0000000000
@@ -1,40 +0,0 @@
-From fd415a3613fad872062fb7cb4e271ac1476402ef Mon Sep 17 00:00:00 2001
-From: Adam Duskett <[email protected]>
-Date: Tue, 24 Oct 2023 08:47:12 +0200
-Subject: [PATCH] use sysconfig.get_path instead of get_python_lib
-
-Distutils has been removed from python 3.12.0. Use sysconfig.get_path instead
-of get_python_lib.
-
-Upstream: https://github.com/ldx/python-iptables/pull/340
-
-Signed-off-by: Adam Duskett <[email protected]>
----
- iptc/util.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/iptc/util.py b/iptc/util.py
-index 04fe905..94befc5 100644
---- a/iptc/util.py
-+++ b/iptc/util.py
-@@ -3,7 +3,7 @@ import os
- import sys
- import ctypes
- import ctypes.util
--from distutils.sysconfig import get_python_lib
-+import sysconfig
- from itertools import product
- from subprocess import Popen, PIPE
- from sys import version_info
-@@ -64,7 +64,7 @@ def _do_find_library(name):
- 
-     # probably we have been installed in a virtualenv
-     try:
--        lib = ctypes.CDLL(os.path.join(get_python_lib(), name),
-+        lib = ctypes.CDLL(os.path.join(sysconfig.get_path("purelib"), name),
-                           mode=ctypes.RTLD_GLOBAL)
-         return lib
-     except:
--- 
-2.41.0
-
package/python-iptables/python-iptables.hash +3 -4
index 1b7c9e9324..e1d66aa691 100644
@@ -1,6 +1,5 @@
 # md5, sha256 from https://pypi.org/pypi/python-iptables/json
-md5  bd6950c1ed9c6b48b7d552ff8e6766c5  python-iptables-1.0.1.tar.gz
-sha256  1989f2b48598392c3574052a95f456985cb06fb4287b61bf8794e93ebc37eddb  python-iptables-1.0.1.tar.gz
-
-# Locally calculated
+md5  b93381df79a3d6f61040f399cb2bd57c  python_iptables-1.2.0.tar.gz
+sha256  60f120d548f6d940f682f2c78851956018588936de05b9d5d338c3cb9bb47ca2  python_iptables-1.2.0.tar.gz
+# Locally computed sha256 checksums
 sha256  b827789c74144d9bb92595ed3bc568aef767a7e8d930fba61c2cdd9f6ec27599  NOTICE
package/python-iptables/python-iptables.mk +3 -2
index d01545d8b2..21698a0458 100644
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-PYTHON_IPTABLES_VERSION = 1.0.1
-PYTHON_IPTABLES_SITE = https://files.pythonhosted.org/packages/35/e4/33e639b9e153c2d798d73342a96715a4edca6f46431d763b275a34b3aeca
+PYTHON_IPTABLES_VERSION = 1.2.0
+PYTHON_IPTABLES_SOURCE = python_iptables-$(PYTHON_IPTABLES_VERSION).tar.gz
+PYTHON_IPTABLES_SITE = https://files.pythonhosted.org/packages/55/3c/a2626b88fffb5bcebae80a2dca1e09ff539ab454a8e5fb2e50141943a1f8
 PYTHON_IPTABLES_SETUP_TYPE = setuptools
 PYTHON_IPTABLES_LICENSE = Apache-2.0
 PYTHON_IPTABLES_LICENSE_FILES = NOTICE
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot