pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/py-magic-wormhole-transit-relay



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Nov  5 22:43:07 UTC 2023

Modified Files:
        pkgsrc/net/py-magic-wormhole-transit-relay: Makefile PLIST distinfo
Added Files:
        pkgsrc/net/py-magic-wormhole-transit-relay/patches: patch-versioneer.py

Log Message:
py-magic-wormhole-transit-relay: convert to wheel.mk

Fix build with Python 3.12.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/py-magic-wormhole-transit-relay/Makefile \
    pkgsrc/net/py-magic-wormhole-transit-relay/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/py-magic-wormhole-transit-relay/PLIST
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/net/py-magic-wormhole-transit-relay/patches/patch-versioneer.py

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

Modified files:

Index: pkgsrc/net/py-magic-wormhole-transit-relay/Makefile
diff -u pkgsrc/net/py-magic-wormhole-transit-relay/Makefile:1.3 pkgsrc/net/py-magic-wormhole-transit-relay/Makefile:1.4
--- pkgsrc/net/py-magic-wormhole-transit-relay/Makefile:1.3     Mon Oct 23 06:37:50 2023
+++ pkgsrc/net/py-magic-wormhole-transit-relay/Makefile Sun Nov  5 22:43:07 2023
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2023/10/23 06:37:50 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2023/11/05 22:43:07 wiz Exp $
 
 DISTNAME=      magic-wormhole-transit-relay-0.2.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    net python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=m/magic-wormhole-transit-relay/}
 
@@ -11,13 +11,14 @@ HOMEPAGE=   https://github.com/magic-wormh
 COMMENT=       Transit Relay server for Magic-Wormhole
 LICENSE=       mit
 
-PYTHON_VERSIONS_INCOMPATIBLE=          27
-
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-twisted>=17.5.0:../../net/py-twisted
 TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
 
 USE_LANGUAGES= # none
 
+PYTHON_VERSIONS_INCOMPATIBLE=          27
+
 .include "../../lang/python/batteries-included.mk"
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/net/py-magic-wormhole-transit-relay/distinfo
diff -u pkgsrc/net/py-magic-wormhole-transit-relay/distinfo:1.3 pkgsrc/net/py-magic-wormhole-transit-relay/distinfo:1.4
--- pkgsrc/net/py-magic-wormhole-transit-relay/distinfo:1.3     Tue Oct 26 11:06:39 2021
+++ pkgsrc/net/py-magic-wormhole-transit-relay/distinfo Sun Nov  5 22:43:07 2023
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 11:06:39 nia Exp $
+$NetBSD: distinfo,v 1.4 2023/11/05 22:43:07 wiz Exp $
 
 BLAKE2s (magic-wormhole-transit-relay-0.2.1.tar.gz) = a5f39eb301552ae98fe462c5d7fb4d6384c42e46abeae1bc800aa7c05ac070a0
 SHA512 (magic-wormhole-transit-relay-0.2.1.tar.gz) = 07eccfe4b5224d66cf31990adabf92e7057b186c509d454896073b3939508f7a3959979f9f1fe6d7423c95612e3bc472ff87995caf6df73b533bbeabc4313955
 Size (magic-wormhole-transit-relay-0.2.1.tar.gz) = 39621 bytes
+SHA1 (patch-versioneer.py) = de9fbb5b1ca5340ec119f130e9de9f1713f62aa1

Index: pkgsrc/net/py-magic-wormhole-transit-relay/PLIST
diff -u pkgsrc/net/py-magic-wormhole-transit-relay/PLIST:1.1 pkgsrc/net/py-magic-wormhole-transit-relay/PLIST:1.2
--- pkgsrc/net/py-magic-wormhole-transit-relay/PLIST:1.1        Sun Jun 27 16:25:23 2021
+++ pkgsrc/net/py-magic-wormhole-transit-relay/PLIST    Sun Nov  5 22:43:07 2023
@@ -1,9 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2021/06/27 16:25:23 wiz Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.2 2023/11/05 22:43:07 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/twisted/plugins/magic_wormhole_transit_relay.py
 ${PYSITELIB}/twisted/plugins/magic_wormhole_transit_relay.pyc
 ${PYSITELIB}/twisted/plugins/magic_wormhole_transit_relay.pyo

Added files:

Index: pkgsrc/net/py-magic-wormhole-transit-relay/patches/patch-versioneer.py
diff -u /dev/null pkgsrc/net/py-magic-wormhole-transit-relay/patches/patch-versioneer.py:1.1
--- /dev/null   Sun Nov  5 22:43:07 2023
+++ pkgsrc/net/py-magic-wormhole-transit-relay/patches/patch-versioneer.py      Sun Nov  5 22:43:07 2023
@@ -0,0 +1,18 @@
+$NetBSD: patch-versioneer.py,v 1.1 2023/11/05 22:43:07 wiz Exp $
+
+Fix build with Python 3.12.
+
+--- versioneer.py.orig 2017-09-13 19:30:37.000000000 +0000
++++ versioneer.py
+@@ -339,9 +339,9 @@ def get_config_from_root(root):
+     # configparser.NoOptionError (if it lacks "VCS="). See the docstring at
+     # the top of versioneer.py for instructions on writing your setup.cfg .
+     setup_cfg = os.path.join(root, "setup.cfg")
+-    parser = configparser.SafeConfigParser()
++    parser = configparser.ConfigParser()
+     with open(setup_cfg, "r") as f:
+-        parser.readfp(f)
++        parser.read_file(f)
+     VCS = parser.get("versioneer", "VCS")  # mandatory
+ 
+     def get(parser, name):



Home | Main Index | Thread Index | Old Index