aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-04-17 18:47:19 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-04-18 01:38:08 +0000
commitdb7d12d423e499399299d8ca18d6ce4ecc3d0bc9 (patch)
treeba9482b8e4482238397e254ac74e0a92a5f1a925
parent569ccc1faab223aa719be6b250b61f1a6fa1aed0 (diff)
math/py-arviz-plots: New port: Ready to use and composable plots for Bayesian Workflow
-rw-r--r--math/Makefile1
-rw-r--r--math/py-arviz-plots/Makefile42
-rw-r--r--math/py-arviz-plots/distinfo3
-rw-r--r--math/py-arviz-plots/files/patch-pyproject.toml11
-rw-r--r--math/py-arviz-plots/files/patch-src_arviz__plots_____init____.py17
-rw-r--r--math/py-arviz-plots/files/patch-tests_conftest.py11
-rw-r--r--math/py-arviz-plots/pkg-descr4
7 files changed, 89 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 8e00d7427614..8d92f4c90b2f 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -949,6 +949,7 @@
SUBDIR += py-apgl
SUBDIR += py-arviz
SUBDIR += py-arviz-base
+ SUBDIR += py-arviz-plots
SUBDIR += py-arviz-stats
SUBDIR += py-arybo
SUBDIR += py-autograd
diff --git a/math/py-arviz-plots/Makefile b/math/py-arviz-plots/Makefile
new file mode 100644
index 000000000000..388347c4ef05
--- /dev/null
+++ b/math/py-arviz-plots/Makefile
@@ -0,0 +1,42 @@
+PORTNAME= arviz-plots
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0.0
+CATEGORIES= math python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Ready to use and composable plots for Bayesian Workflow
+WWW= https://python.arviz.org/projects/plots/en/latest/ \
+ https://github.com/arviz-devs/arviz-plots
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>0:devel/py-flit-core@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arviz-base>=1.0.0:math/py-arviz-base@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}arviz-stats>=1.0.0:math/py-arviz-stats@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}matplotlib>=3.9:math/py-matplotlib@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}h5netcdf>0:science/py-h5netcdf@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 concurrent autoplist pytest
+
+USE_GITHUB= yes
+GH_ACCOUNT= arviz-devs
+
+NO_ARCH= yes
+
+TEST_ARGS= -p no:benchmark -p no:xdist -p no:relaxed \
+ -W ignore::RuntimeWarning \
+ --ignore=tests/test_plotly.py \
+ --ignore=tests/test_backend.py
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
+ MPLBACKEND=Agg
+
+PYTEST_IGNORED_TESTS= bokeh plotly
+
+# tests as of 1.0.0: 367 passed, 1 skipped, 276 deselected, 1 warning in 179.40s (0:02:59)
+
+.include <bsd.port.mk>
diff --git a/math/py-arviz-plots/distinfo b/math/py-arviz-plots/distinfo
new file mode 100644
index 000000000000..ab20800ed7d3
--- /dev/null
+++ b/math/py-arviz-plots/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1776438805
+SHA256 (arviz-devs-arviz-plots-v1.0.0_GH0.tar.gz) = 233e836e2ebf292ea9510ac06e5a4f75eb8c46d1e3ec62d5f84a561a2a8375b9
+SIZE (arviz-devs-arviz-plots-v1.0.0_GH0.tar.gz) = 11258646
diff --git a/math/py-arviz-plots/files/patch-pyproject.toml b/math/py-arviz-plots/files/patch-pyproject.toml
new file mode 100644
index 000000000000..c7827e2b0844
--- /dev/null
+++ b/math/py-arviz-plots/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2026-04-17 15:47:09 UTC
++++ pyproject.toml
+@@ -5,7 +5,7 @@ readme = "README.md"
+ [project]
+ name = "arviz-plots"
+ readme = "README.md"
+-requires-python = ">=3.12"
++requires-python = ">=3.11"
+ license = {file = "LICENSE"}
+ authors = [
+ {name = "ArviZ team", email = "arvizdevs@gmail.com"}
diff --git a/math/py-arviz-plots/files/patch-src_arviz__plots_____init____.py b/math/py-arviz-plots/files/patch-src_arviz__plots_____init____.py
new file mode 100644
index 000000000000..5634baf35505
--- /dev/null
+++ b/math/py-arviz-plots/files/patch-src_arviz__plots_____init____.py
@@ -0,0 +1,17 @@
+--- src/arviz_plots/__init__.py.orig 2026-04-17 17:39:26 UTC
++++ src/arviz_plots/__init__.py
+@@ -330,6 +330,14 @@ try:
+ pio.templates["arviz-vibrant"] = arviz_vibrant_template
+ pio.templates["arviz-tumma"] = arviz_tumma_template
+
++ del (
++ pio,
++ arviz_cetrino_template,
++ arviz_tenui_template,
++ arviz_variat_template,
++ arviz_vibrant_template,
++ arviz_tumma_template,
++ )
+
+ except ImportError:
+ pass
diff --git a/math/py-arviz-plots/files/patch-tests_conftest.py b/math/py-arviz-plots/files/patch-tests_conftest.py
new file mode 100644
index 000000000000..69a2de6b9b5e
--- /dev/null
+++ b/math/py-arviz-plots/files/patch-tests_conftest.py
@@ -0,0 +1,11 @@
+--- tests/conftest.py.orig 2026-04-17 17:07:02 UTC
++++ tests/conftest.py
+@@ -16,7 +16,7 @@ _log = logging.getLogger("arviz_plots")
+
+ _log = logging.getLogger("arviz_plots")
+
+-settings.register_profile("fast", deadline=3000, max_examples=20)
++settings.register_profile("fast", deadline=None, max_examples=20)
+ settings.register_profile("chron", deadline=3000, max_examples=500)
+ settings.load_profile(os.getenv("HYPOTHESIS_PROFILE", "fast"))
+
diff --git a/math/py-arviz-plots/pkg-descr b/math/py-arviz-plots/pkg-descr
new file mode 100644
index 000000000000..564e13683676
--- /dev/null
+++ b/math/py-arviz-plots/pkg-descr
@@ -0,0 +1,4 @@
+arviz-plots provides ready to use and composable plots for Bayesian
+Workflow. It includes static battery included plots for posterior
+analysis, MCMC diagnostics, model comparison, and other visualizations
+for Bayesian models. Supports matplotlib, bokeh, and plotly backends.