aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-11-17 18:00:57 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2024-11-17 18:10:33 +0000
commit58ea7bb26cdad7a66b7a09543cb01164f5cd1743 (patch)
tree69b405d357d3c1b39c7e49b1cbf7ab11183b378f
parente72021a192dcea9726738e5d1eb524cb837d6b15 (diff)
math/py-emcee: New port: Python ensemble sampling toolkit for MCMC
-rw-r--r--math/Makefile1
-rw-r--r--math/py-emcee/Makefile30
-rw-r--r--math/py-emcee/distinfo3
-rw-r--r--math/py-emcee/pkg-descr3
4 files changed, 37 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index f19f19df3499..4919985dbeff 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -948,6 +948,7 @@
SUBDIR += py-docplex
SUBDIR += py-ducc0
SUBDIR += py-ecos
+ SUBDIR += py-emcee
SUBDIR += py-evalidate
SUBDIR += py-faiss
SUBDIR += py-fastcluster
diff --git a/math/py-emcee/Makefile b/math/py-emcee/Makefile
new file mode 100644
index 000000000000..dc76c5458f8f
--- /dev/null
+++ b/math/py-emcee/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= emcee
+DISTVERSION= 3.1.6
+CATEGORIES= math
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Python ensemble sampling toolkit for MCMC
+WWW= https://emcee.readthedocs.io/en/stable/ \
+ https://github.com/dfm/emcee
+
+LICENSE= LGPL21 MIT
+LICENSE_COMB= multi
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+NO_ARCH= yes
+
+# tests as of 3.1.6: 126 passed, 1 warning in 303.87s (0:05:03)
+
+.include <bsd.port.mk>
diff --git a/math/py-emcee/distinfo b/math/py-emcee/distinfo
new file mode 100644
index 000000000000..47881a0a3f62
--- /dev/null
+++ b/math/py-emcee/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1731865537
+SHA256 (emcee-3.1.6.tar.gz) = 11af4daf6ab8f9ca69681e3c29054665db7bbd87fd4eb8e437d2c3a1248c637d
+SIZE (emcee-3.1.6.tar.gz) = 2871117
diff --git a/math/py-emcee/pkg-descr b/math/py-emcee/pkg-descr
new file mode 100644
index 000000000000..1118957b3579
--- /dev/null
+++ b/math/py-emcee/pkg-descr
@@ -0,0 +1,3 @@
+emcee is an MIT licensed pure-Python implementation of Goodman & Weare's Affine
+Invariant Markov chain Monte Carlo (MCMC) Ensemble sampler and these pages will
+show you how to use it.