From nobody Mon Feb 13 06:39:20 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PFZSS54K2z3rF48; Mon, 13 Feb 2023 06:39:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFZSS4c4yz4JSx; Mon, 13 Feb 2023 06:39:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676270360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hYxUgM/el9M07yiZfOOxb8y3M1HeFB7Zm37KIEOC/J8=; b=lxH7YPx2NFih4i/zW6VEgXJ4/wKf3ZrkgFLska1epV1cjiE74+leFSl+pGYia0jE93m5sJ 5KCfRUYR9P+4ecjG6Lpwkbu8fd+xB/KXZhKN2mMKUt3pLgDclTo05Sj6dHsEOylO08jlx9 GzyAj+BGZ+nqKW2xsN+5fK4D65V2uzFaJ6Wi+QdFDJx8gDCxxV3U2Zte/9ucj2YW+9CrC2 zgWEfzKQQVN4/gAXiRhMV9GRr79Ie3rjFhrvWSr48SxPYnz8en6V3kz72hjs2xcp1J5vc3 jEa7WGgTcwCCo+FXWqWBgFnizso23oWCsBZZgjih/P0n245uPoopUAtDQEkFsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676270360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hYxUgM/el9M07yiZfOOxb8y3M1HeFB7Zm37KIEOC/J8=; b=OXIgSkW3slOl/C4asq/UlNhKlfBwbC2N++R94PuUkK+4BemMVvVrLJJQ5Hv3Enup/X8Y8p 78KRN5pwxa9mgQJkFXa/KYj1F2BqQqhrsCJHFn+SRNW8PVDvqa2XAG0YJizHZgJ/FWbmK3 UPwyI9nXw2FFVBTcS+Gt8QfQ7q024YeqnldPOm2NXUtrQ/UkvPFEB/rojUv8WCbYdKiKJq DyPCe4oSJhplcy3xs9conqGqiJDIRRfwxUDHD0M4IHcUid5GULTCJqiwJ4WYjjSSAVTVlh 3SZn3Bf6k0GyxXc1SA8LGLipDfbyV1UPhZrczmU9C18RfK8IvRVIylv7gSmo6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676270360; a=rsa-sha256; cv=none; b=S0fA56MI+I1cpybc0QgC+mrPD6etPMHoGWzRTQ4jXoA6EfAby0UBB44GVsBjb+XzowvMKj eLChN38qDBX8fbVYx4QrtQYIIM33fcIOI3d43o5z4ZNrbYlmUMuxgaPqtWbjl3pQ6v6V/l MwmMIHgw4DyuRiUYQCs6I+D0oxHPVAXmjHz1F5nIZCQGi6NST66WpOARGQS01/LY4kk3yb JFVXRtR4WoCCZiIhT415Gz45NSxS7ULUY4Jx86QyWUWFUP3/KXhyc2vtc7Q0H936+Mac9F nD3mMhzFWgBOpYwZFF3P0AV1JYiTinXB/1IM35LHG6u59i2y6XIkyoTtRx7V5g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PFZSS3Rmnz17rW; Mon, 13 Feb 2023 06:39:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31D6dKRL011137; Mon, 13 Feb 2023 06:39:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31D6dKqZ011136; Mon, 13 Feb 2023 06:39:20 GMT (envelope-from git) Date: Mon, 13 Feb 2023 06:39:20 GMT Message-Id: <202302130639.31D6dKqZ011136@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 2193b8afb7e9 - main - finance/py-ta-lib: Add tests and improve based on finance/py-TA-Lib List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2193b8afb7e967d8684c0ceb1f34874dc5b63f06 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=2193b8afb7e967d8684c0ceb1f34874dc5b63f06 commit 2193b8afb7e967d8684c0ceb1f34874dc5b63f06 Author: Yuri Victorovich AuthorDate: 2023-02-13 06:37:38 +0000 Commit: Yuri Victorovich 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