From owner-dev-commits-ports-all@freebsd.org Tue Sep 21 03:48:41 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 825D86B2A12; Tue, 21 Sep 2021 03:48:41 +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 4HD6pw72Btz4cvH; Tue, 21 Sep 2021 03:48:40 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 B3A161CE97; Tue, 21 Sep 2021 03:48:40 +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 18L3meIw017100; Tue, 21 Sep 2021 03:48:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18L3mecw017099; Tue, 21 Sep 2021 03:48:40 GMT (envelope-from git) Date: Tue, 21 Sep 2021 03:48:40 GMT Message-Id: <202109210348.18L3mecw017099@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: cc7cd6a77051 - main - math/py-rvlib: Add py-rvlib 0.0.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cc7cd6a77051deb9e9b11bcab369a264d8529250 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2021 03:48:41 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=cc7cd6a77051deb9e9b11bcab369a264d8529250 commit cc7cd6a77051deb9e9b11bcab369a264d8529250 Author: Po-Chuan Hsieh AuthorDate: 2021-09-21 03:06:10 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-09-21 03:35:08 +0000 math/py-rvlib: Add py-rvlib 0.0.5 Anyone who has used Distributions.jl will tell you how nice the interface is relative to the "exotic" (the most polite word we can think of) interface to distributions exposed by scipy.stats. Distributions.jl also brings better performace, particularly when its methods are used inside loops. For these reason we've put together rvlib, which mimics the interface of Distributions.jl, while at the same time attaining similar performance by exploiting numba. This package was inspired by Joshua Adelman's (@synapticarbors) blog post describing how to call the Rmath C library from numba using CFFI, and utilizes his build script to set up the CFFI interface. WWW: https://github.com/QuantEcon/rvlib --- math/Makefile | 1 + math/py-rvlib/Makefile | 28 ++++++++++++++++++++++++++++ math/py-rvlib/distinfo | 3 +++ math/py-rvlib/pkg-descr | 14 ++++++++++++++ 4 files changed, 46 insertions(+) diff --git a/math/Makefile b/math/Makefile index 5090666a3da5..dddeef58a892 100644 --- a/math/Makefile +++ b/math/Makefile @@ -904,6 +904,7 @@ SUBDIR += py-random2 SUBDIR += py-roman SUBDIR += py-rpy2 + SUBDIR += py-rvlib SUBDIR += py-scikit-umfpack SUBDIR += py-scs SUBDIR += py-seaborn diff --git a/math/py-rvlib/Makefile b/math/py-rvlib/Makefile new file mode 100644 index 000000000000..46715273250a --- /dev/null +++ b/math/py-rvlib/Makefile @@ -0,0 +1,28 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= rvlib +PORTVERSION= 0.0.5 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Probability distributions mimicking Distrbutions.jl + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numba>=0.49:devel/py-numba@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/math/py-rvlib/distinfo b/math/py-rvlib/distinfo new file mode 100644 index 000000000000..ae94c1e594ad --- /dev/null +++ b/math/py-rvlib/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1632036828 +SHA256 (rvlib-0.0.5.tar.gz) = d79b45bedff32653ed4662da1a273d3b3d70ea960ad4fd8d74509888d7f7f45d +SIZE (rvlib-0.0.5.tar.gz) = 183776 diff --git a/math/py-rvlib/pkg-descr b/math/py-rvlib/pkg-descr new file mode 100644 index 000000000000..927d84eb5968 --- /dev/null +++ b/math/py-rvlib/pkg-descr @@ -0,0 +1,14 @@ +Anyone who has used Distributions.jl will tell you how nice the interface is +relative to the "exotic" (the most polite word we can think of) interface to +distributions exposed by scipy.stats. Distributions.jl also brings better +performace, particularly when its methods are used inside loops. + +For these reason we've put together rvlib, which mimics the interface of +Distributions.jl, while at the same time attaining similar performance by +exploiting numba. + +This package was inspired by Joshua Adelman's (@synapticarbors) blog post +describing how to call the Rmath C library from numba using CFFI, and utilizes +his build script to set up the CFFI interface. + +WWW: https://github.com/QuantEcon/rvlib