pkgsrc-Changes archive

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

CVS commit: pkgsrc/finance/py-empyrical



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Nov 15 00:52:01 UTC 2023

Modified Files:
        pkgsrc/finance/py-empyrical: Makefile PLIST distinfo
Added Files:
        pkgsrc/finance/py-empyrical/patches: patch-versioneer.py

Log Message:
py-empyrical: fix build with Python 3.12.

Convert to wheel.mk.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/finance/py-empyrical/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/finance/py-empyrical/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/finance/py-empyrical/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/finance/py-empyrical/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-empyrical/Makefile
diff -u pkgsrc/finance/py-empyrical/Makefile:1.8 pkgsrc/finance/py-empyrical/Makefile:1.9
--- pkgsrc/finance/py-empyrical/Makefile:1.8    Tue Aug  1 23:20:42 2023
+++ pkgsrc/finance/py-empyrical/Makefile        Wed Nov 15 00:52:01 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2023/08/01 23:20:42 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2023/11/15 00:52:01 wiz Exp $
 
 DISTNAME=      empyrical-0.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -11,15 +11,17 @@ HOMEPAGE=   https://github.com/quantopian/
 COMMENT=       Common financial risk and performance metrics
 LICENSE=       apache-2.0
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-bottleneck>=1.0.0:../../math/py-bottleneck
 DEPENDS+=      ${PYPKGPREFIX}-numpy>=1.9.2:../../math/py-numpy
 DEPENDS+=      ${PYPKGPREFIX}-pandas>=0.16.1:../../math/py-pandas
 DEPENDS+=      ${PYPKGPREFIX}-pandas-datareader>=0.2:../../math/py-pandas-datareader
 DEPENDS+=      ${PYPKGPREFIX}-scipy>=0.15.1:../../math/py-scipy
+TEST_DEPENDS+= ${PYPKGPREFIX}-parameterized>=0:../../devel/py-parameterized
 
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27 38
 
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/finance/py-empyrical/PLIST
diff -u pkgsrc/finance/py-empyrical/PLIST:1.2 pkgsrc/finance/py-empyrical/PLIST:1.3
--- pkgsrc/finance/py-empyrical/PLIST:1.2       Mon Jun 17 15:24:34 2019
+++ pkgsrc/finance/py-empyrical/PLIST   Wed Nov 15 00:52:01 2023
@@ -1,10 +1,10 @@
-@comment $NetBSD: PLIST,v 1.2 2019/06/17 15:24:34 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/pbr.json
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.3 2023/11/15 00:52:01 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/pbr.json
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/empyrical/__init__.py
 ${PYSITELIB}/empyrical/__init__.pyc
 ${PYSITELIB}/empyrical/__init__.pyo

Index: pkgsrc/finance/py-empyrical/distinfo
diff -u pkgsrc/finance/py-empyrical/distinfo:1.4 pkgsrc/finance/py-empyrical/distinfo:1.5
--- pkgsrc/finance/py-empyrical/distinfo:1.4    Tue Oct 26 10:26:04 2021
+++ pkgsrc/finance/py-empyrical/distinfo        Wed Nov 15 00:52:01 2023
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:26:04 nia Exp $
+$NetBSD: distinfo,v 1.5 2023/11/15 00:52:01 wiz Exp $
 
 BLAKE2s (empyrical-0.5.0.tar.gz) = 5e577d91af90d921ef496eb1868a663c7dc9e310c7bec5c5608c185ba66e3049
 SHA512 (empyrical-0.5.0.tar.gz) = 0715414e7781b9593aba4e748ad6198c4a9694423727286a437c5b8d68d11797d7b7ce475a96aa56a05916d10bc303effea964c3254a4fda3a8d9d26f3eacaaf
 Size (empyrical-0.5.0.tar.gz) = 49802 bytes
+SHA1 (patch-versioneer.py) = a131c7607694dd46c4c60d4573b447c70f988189

Added files:

Index: pkgsrc/finance/py-empyrical/patches/patch-versioneer.py
diff -u /dev/null pkgsrc/finance/py-empyrical/patches/patch-versioneer.py:1.1
--- /dev/null   Wed Nov 15 00:52:01 2023
+++ pkgsrc/finance/py-empyrical/patches/patch-versioneer.py     Wed Nov 15 00:52:01 2023
@@ -0,0 +1,19 @@
+$NetBSD: patch-versioneer.py,v 1.1 2023/11/15 00:52:01 wiz Exp $
+
+Fix build with Python 3.12.
+https://github.com/quantopian/empyrical/pull/137
+
+--- versioneer.py.orig 2016-09-01 16:23:20.000000000 +0000
++++ versioneer.py
+@@ -409,9 +409,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