pkgsrc-Changes archive

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

CVS commit: pkgsrc/finance/py-pyfolio



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Jan 20 16:14:58 UTC 2024

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/finance/py-pyfolio/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/finance/py-pyfolio/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-pyfolio/distinfo
diff -u pkgsrc/finance/py-pyfolio/distinfo:1.4 pkgsrc/finance/py-pyfolio/distinfo:1.5
--- pkgsrc/finance/py-pyfolio/distinfo:1.4      Tue Oct 26 10:26:05 2021
+++ pkgsrc/finance/py-pyfolio/distinfo  Sat Jan 20 16:14:58 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:26:05 nia Exp $
+$NetBSD: distinfo,v 1.5 2024/01/20 16:14:58 wiz Exp $
 
 BLAKE2s (pyfolio-0.9.2.tar.gz) = f81b6fa3fc8cb062c8cc98aa57981493535af39d15abf942eb110adb8a519fbd
 SHA512 (pyfolio-0.9.2.tar.gz) = fd0910a334864a41a0b5cdebc537a95c7f27119ecfe9622e6be7325bc3d8d09ba6401336b2587e39151c534b4a3f7c74b9e2050fcf646ffa9f341a86b573c53b
 Size (pyfolio-0.9.2.tar.gz) = 91135 bytes
+SHA1 (patch-versioneer.py) = 0226d16357b7e381033228d5299650ba0d46972d

Added files:

Index: pkgsrc/finance/py-pyfolio/patches/patch-versioneer.py
diff -u /dev/null pkgsrc/finance/py-pyfolio/patches/patch-versioneer.py:1.1
--- /dev/null   Sat Jan 20 16:14:58 2024
+++ pkgsrc/finance/py-pyfolio/patches/patch-versioneer.py       Sat Jan 20 16:14:58 2024
@@ -0,0 +1,18 @@
+$NetBSD: patch-versioneer.py,v 1.1 2024/01/20 16:14:58 wiz Exp $
+
+Adapt for deprecations.
+
+--- versioneer.py.orig 2024-01-20 16:14:03.241808037 +0000
++++ versioneer.py
+@@ -396,9 +396,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