pkgsrc-Changes archive

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

CVS commit: pkgsrc/finance/py-alphalens



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Jan 20 16:10:37 UTC 2024

Modified Files:
        pkgsrc/finance/py-alphalens: distinfo
Added Files:
        pkgsrc/finance/py-alphalens/patches: patch-versioneer.py

Log Message:
py-alphalens: fix build with Python 3.12


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/finance/py-alphalens/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/finance/py-alphalens/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/finance/py-alphalens/distinfo
diff -u pkgsrc/finance/py-alphalens/distinfo:1.7 pkgsrc/finance/py-alphalens/distinfo:1.8
--- pkgsrc/finance/py-alphalens/distinfo:1.7    Sat Feb  5 14:50:00 2022
+++ pkgsrc/finance/py-alphalens/distinfo        Sat Jan 20 16:10:37 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.7 2022/02/05 14:50:00 adam Exp $
+$NetBSD: distinfo,v 1.8 2024/01/20 16:10:37 wiz Exp $
 
 BLAKE2s (alphalens-0.4.0.tar.gz) = f5a9843706a15824715d4311693c1ee0a275b4685a2c125bef55fc62330fbd6c
 SHA512 (alphalens-0.4.0.tar.gz) = ab749a200ee2c1585e1c6ac50598a9c7166af970d17edc714e750b79e03c75a40bca0ca8e812cefd35a07f09d88fdf0298a8f64e7ad2b21037f656361bd2a16c
 Size (alphalens-0.4.0.tar.gz) = 24037878 bytes
+SHA1 (patch-versioneer.py) = 1d76058af3871a26f0740e8392c60f7c8b6d36ae

Added files:

Index: pkgsrc/finance/py-alphalens/patches/patch-versioneer.py
diff -u /dev/null pkgsrc/finance/py-alphalens/patches/patch-versioneer.py:1.1
--- /dev/null   Sat Jan 20 16:10:37 2024
+++ pkgsrc/finance/py-alphalens/patches/patch-versioneer.py     Sat Jan 20 16:10:37 2024
@@ -0,0 +1,18 @@
+$NetBSD: patch-versioneer.py,v 1.1 2024/01/20 16:10:37 wiz Exp $
+
+Adapt for deprecations.
+
+--- versioneer.py.orig 2024-01-20 16:09:08.157756624 +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