pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-rns: Update to 0.5.0



Module Name:	pkgsrc-wip
Committed By:	Greg Troxel <gdt%lexort.com@localhost>
Pushed By:	gdt
Date:		Wed Mar 8 10:24:19 2023 -0500
Changeset:	7bd97b8d582c7257644786032a2a7a0009ea59ca

Modified Files:
	py-rns/Makefile
	py-rns/PLIST
	py-rns/distinfo
Removed Files:
	py-rns/patches/patch-RNS_Interfaces_AutoInterface.py

Log Message:
py-rns: Update to 0.5.0

This release brings two major new additions to the Reticulum API: The
Channel and Buffer classes, that provides reliable delivery, and
streams over Reticulum. Thanks to @acehoss, @erethon, @gdt and
@faragher, who contributed to this release!

**Changes**
- Added the Buffer class to the API
- Added the Channel class to the API
- Improved error messages for offline RNode flashing
- Improved RNode reconnection when serial device disappears
- Fixed embedded scope identifier handling for AutoInterface on BSD
- Fixed AutoInterface not ignoring lo0 on BSD
- Fixed a bug causing JSON output from rnstatus to fail
- Fixed invalid installation of test suite into root module path
- Added EPUB version of the documentation
- Updated documentation

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7bd97b8d582c7257644786032a2a7a0009ea59ca

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-rns/Makefile                                    |  3 +-
 py-rns/PLIST                                       | 21 +++------
 py-rns/distinfo                                    |  7 ++-
 .../patches/patch-RNS_Interfaces_AutoInterface.py  | 50 ----------------------
 4 files changed, 10 insertions(+), 71 deletions(-)

diffs:
diff --git a/py-rns/Makefile b/py-rns/Makefile
index ab7d79b50c..643592c45c 100644
--- a/py-rns/Makefile
+++ b/py-rns/Makefile
@@ -1,8 +1,7 @@
 # $NetBSD$
 
-DISTNAME=	rns-0.4.9
+DISTNAME=	rns-0.5.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=	1
 CATEGORIES=	comms python
 MASTER_SITES=	${MASTER_SITE_PYPI:=r/rns/}
 
diff --git a/py-rns/PLIST b/py-rns/PLIST
index fbe6756a2c..c6c884a662 100644
--- a/py-rns/PLIST
+++ b/py-rns/PLIST
@@ -7,6 +7,12 @@ bin/rnprobe
 bin/rnsd
 bin/rnstatus
 bin/rnx
+${PYSITELIB}/RNS/Buffer.py
+${PYSITELIB}/RNS/Buffer.pyc
+${PYSITELIB}/RNS/Buffer.pyo
+${PYSITELIB}/RNS/Channel.py
+${PYSITELIB}/RNS/Channel.pyc
+${PYSITELIB}/RNS/Channel.pyo
 ${PYSITELIB}/RNS/Cryptography/AES.py
 ${PYSITELIB}/RNS/Cryptography/AES.pyc
 ${PYSITELIB}/RNS/Cryptography/AES.pyo
@@ -217,18 +223,3 @@ ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/tests/__init__.py
-${PYSITELIB}/tests/__init__.pyc
-${PYSITELIB}/tests/__init__.pyo
-${PYSITELIB}/tests/all.py
-${PYSITELIB}/tests/all.pyc
-${PYSITELIB}/tests/all.pyo
-${PYSITELIB}/tests/hashes.py
-${PYSITELIB}/tests/hashes.pyc
-${PYSITELIB}/tests/hashes.pyo
-${PYSITELIB}/tests/identity.py
-${PYSITELIB}/tests/identity.pyc
-${PYSITELIB}/tests/identity.pyo
-${PYSITELIB}/tests/link.py
-${PYSITELIB}/tests/link.pyc
-${PYSITELIB}/tests/link.pyo
diff --git a/py-rns/distinfo b/py-rns/distinfo
index 5e97715d20..a9275212d8 100644
--- a/py-rns/distinfo
+++ b/py-rns/distinfo
@@ -1,6 +1,5 @@
 $NetBSD$
 
-BLAKE2s (rns-0.4.9.tar.gz) = 002a7e2c2bfc0b4b3f50be07df0759411a85fae7f190986fd1e74061d785d5d4
-SHA512 (rns-0.4.9.tar.gz) = 240100857d5613870b60427f6d12a1a48568177109e43eaea404d4ddde32724cd84ca1146af8621b0b0487c2b06535d3593c5b01f5def09bbde138a33a79e264
-Size (rns-0.4.9.tar.gz) = 276828 bytes
-SHA1 (patch-RNS_Interfaces_AutoInterface.py) = 13881b2957a52e6b10cfb0c9b81a4ce07565f1ff
+BLAKE2s (rns-0.5.0.tar.gz) = b9994f88f8b04366bab90e7b1a0f549bebec38c4b7e7220c9fdbeb3ab1ce7127
+SHA512 (rns-0.5.0.tar.gz) = d0b21b1f5281220ac575560d74c7b5eaf42c16d4c1c190b64bed0b045c2e60e8cc81399c0a44f6fc24d38b571b967eeeef5f73cb20f02e9d34f3fdce456ccc9d
+Size (rns-0.5.0.tar.gz) = 276740 bytes
diff --git a/py-rns/patches/patch-RNS_Interfaces_AutoInterface.py b/py-rns/patches/patch-RNS_Interfaces_AutoInterface.py
deleted file mode 100644
index 298a63880a..0000000000
--- a/py-rns/patches/patch-RNS_Interfaces_AutoInterface.py
+++ /dev/null
@@ -1,50 +0,0 @@
-$NetBSD$
-
-https://github.com/gdt/Reticulum/commits/fix-transmit-hash
-
---- RNS/Interfaces/AutoInterface.py.orig	2023-02-03 16:36:43.000000000 +0000
-+++ RNS/Interfaces/AutoInterface.py
-@@ -23,6 +23,7 @@
- from .Interface import Interface
- import socketserver
- import threading
-+import re
- import socket
- import struct
- import time
-@@ -53,6 +54,13 @@ class AutoInterface(Interface):
-             return AutoInterfaceHandler(callback, *args, **keys)
-         return create_handler
- 
-+    def descope_linklocal(self, link_local_addr):
-+        # Drop scope specifier expressd as %ifname (macOS)
-+        link_local_addr = link_local_addr.split("%")[0]
-+        # Drop embedded scope specifier (NetBSD, OpenBSD)
-+        link_local_addr = re.sub(r"fe80:[0-9a-f]*::","fe80::", link_local_addr)
-+        return link_local_addr
-+
-     def __init__(self, owner, name, group_id=None, discovery_scope=None, discovery_port=None, data_port=None, allowed_interfaces=None, ignored_interfaces=None, configured_bitrate=None):
-         import importlib
-         if importlib.util.find_spec('netifaces') != None:
-@@ -158,9 +166,9 @@ class AutoInterface(Interface):
-                         for address in addresses[self.netifaces.AF_INET6]:
-                             if "addr" in address:
-                                 if address["addr"].startswith("fe80:"):
--                                    link_local_addr = address["addr"]
--                                    self.link_local_addresses.append(link_local_addr.split("%")[0])
--                                    self.adopted_interfaces[ifname] = link_local_addr.split("%")[0]
-+                                    link_local_addr = self.descope_linklocal(address["addr"])
-+                                    self.link_local_addresses.append(link_local_addr)
-+                                    self.adopted_interfaces[ifname] = link_local_addr
-                                     self.multicast_echoes[ifname] = time.time()
-                                     RNS.log(str(self)+" Selecting link-local address "+str(link_local_addr)+" for interface "+str(ifname), RNS.LOG_EXTREME)
- 
-@@ -278,7 +286,7 @@ class AutoInterface(Interface):
-                         for address in addresses[self.netifaces.AF_INET6]:
-                             if "addr" in address:
-                                 if address["addr"].startswith("fe80:"):
--                                    link_local_addr = address["addr"].split("%")[0]
-+                                    link_local_addr = self.descope_linklocal(address["addr"])
-                                     if link_local_addr != self.adopted_interfaces[ifname]:
-                                         old_link_local_address = self.adopted_interfaces[ifname]
-                                         RNS.log("Replacing link-local address "+str(old_link_local_address)+" for "+str(ifname)+" with "+str(link_local_addr), RNS.LOG_DEBUG)


Home | Main Index | Thread Index | Old Index