Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2023 06:39:20 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2193b8afb7e9 - main - finance/py-ta-lib: Add tests and improve based on finance/py-TA-Lib
Message-ID:  <202302130639.31D6dKqZ011136@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2193b8afb7e967d8684c0ceb1f34874dc5b63f06

commit 2193b8afb7e967d8684c0ceb1f34874dc5b63f06
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-02-13 06:37:38 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-02-13 06:39:14 +0000

    finance/py-ta-lib: Add tests and improve based on finance/py-TA-Lib
    
    Also take maintainership.
---
 finance/py-ta-lib/Makefile | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/finance/py-ta-lib/Makefile b/finance/py-ta-lib/Makefile
index c54c1c12e2c4..d6947fa90229 100644
--- a/finance/py-ta-lib/Makefile
+++ b/finance/py-ta-lib/Makefile
@@ -1,25 +1,30 @@
-PORTNAME=	ta-lib
+PORTNAME=	ta-lib # provides Python namespace 'talib'
 PORTVERSION=	0.4.25
+PORTREVISION=	1
 CATEGORIES=	finance python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	TA-Lib-${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Python wrapper for TA-Lib (Technical Analysis Library)
 WWW=		https://mrjbq7.github.io/ta-lib/
 
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYNUMPY}
 LIB_DEPENDS=	libta_lib.so:devel/ta-lib
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR}
+RUN_DEPENDS=	${PYNUMPY}
+#TEST_DEPENDS=	misc/py-polars - fails to build, see https://github.com/rust-lang/hashbrown/issues/377
 
-USES=		localbase python:3.7+
-USE_PYTHON=	autoplist concurrent cython distutils
+USES=		python
+USE_PYTHON=	distutils cython autoplist pytest
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_WRKSRC=	${WRKSRC}/talib
 
 post-install:
-	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/talib/_ta_lib${PYTHON_EXT_SUFFIX}.so
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302130639.31D6dKqZ011136>