diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-02-12 22:37:38 -0800 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-02-12 22:39:14 -0800 |
commit | 2193b8afb7e967d8684c0ceb1f34874dc5b63f06 (patch) | |
tree | 296ea43a774e466c8cfcb2de26bf11a5eec9e7a7 | |
parent | 38dfb18e110b7b4b9646228592d23ba899755f44 (diff) | |
download | freebsd-ports-2193b8afb7e967d8684c0ceb1f34874dc5b63f06.zip |
finance/py-ta-lib: Add tests and improve based on finance/py-TA-Lib
Also take maintainership.
-rw-r--r-- | finance/py-ta-lib/Makefile | 19 |
1 files 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> |