Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Apr 2026 01:38:18 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: db7d12d423e4 - main - math/py-arviz-plots: New port: Ready to use and composable plots for Bayesian Workflow
Message-ID:  <69e2e08a.477b2.3f070c92@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=db7d12d423e499399299d8ca18d6ce4ecc3d0bc9

commit db7d12d423e499399299d8ca18d6ce4ecc3d0bc9
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-04-17 18:47:19 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-04-18 01:38:08 +0000

    math/py-arviz-plots: New port: Ready to use and composable plots for Bayesian Workflow
---
 math/Makefile                                      |  1 +
 math/py-arviz-plots/Makefile                       | 42 ++++++++++++++++++++++
 math/py-arviz-plots/distinfo                       |  3 ++
 math/py-arviz-plots/files/patch-pyproject.toml     | 11 ++++++
 .../files/patch-src_arviz__plots_____init____.py   | 17 +++++++++
 math/py-arviz-plots/files/patch-tests_conftest.py  | 11 ++++++
 math/py-arviz-plots/pkg-descr                      |  4 +++
 7 files changed, 89 insertions(+)

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.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e2e08a.477b2.3f070c92>