git: cdbb08ff8767 - main - math/py-statsmodels: Update to 0.14.5

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 19 Oct 2025 00:03:59 UTC
The branch main has been updated by sunpoet:

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

commit cdbb08ff8767f55cd29e2b6bb58324ef1744f369
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-10-18 23:53:43 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-10-18 23:53:43 +0000

    math/py-statsmodels: Update to 0.14.5
    
    Changes:        https://github.com/statsmodels/statsmodels/releases
                    https://www.statsmodels.org/stable/release/
---
 math/py-statsmodels/Makefile                   | 12 ++++++------
 math/py-statsmodels/distinfo                   |  6 +++---
 math/py-statsmodels/files/patch-pyproject.toml | 23 +++++++++++------------
 math/py-statsmodels/pkg-plist                  |  6 ++++++
 4 files changed, 26 insertions(+), 21 deletions(-)

diff --git a/math/py-statsmodels/Makefile b/math/py-statsmodels/Makefile
index d6cbc65701a2..137d74113404 100644
--- a/math/py-statsmodels/Makefile
+++ b/math/py-statsmodels/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	statsmodels
-PORTVERSION=	0.14.1
+PORTVERSION=	0.14.5
 CATEGORIES=	math python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,18 +13,18 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.22.3,1<2,1:math/py-numpy@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}scipy>=1.4:science/py-scipy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=1.8,1<2,1:science/py-scipy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8<9:devel/py-setuptools-scm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.22.3,1<2,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pandas>=0.25,1:math/py-pandas@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}patsy>=0.5.4:math/py-patsy@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}scipy>=1.4:science/py-scipy@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}pandas>=1.4,1:math/py-pandas@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}patsy>=0.5.6:math/py-patsy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=1.8,1:science/py-scipy@${PY_FLAVOR}
 
 USES=		python shebangfix
-USE_PYTHON=	autoplist concurrent cython pep517
+USE_PYTHON=	autoplist concurrent cython3 pep517
 
 SHEBANG_GLOB=	*.py
 
diff --git a/math/py-statsmodels/distinfo b/math/py-statsmodels/distinfo
index 9578578320cd..c1ce930d0c9f 100644
--- a/math/py-statsmodels/distinfo
+++ b/math/py-statsmodels/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1703227906
-SHA256 (statsmodels-0.14.1.tar.gz) = 2260efdc1ef89f39c670a0bd8151b1d0843567781bcafec6cda0534eb47a94f6
-SIZE (statsmodels-0.14.1.tar.gz) = 20309647
+TIMESTAMP = 1759774697
+SHA256 (statsmodels-0.14.5.tar.gz) = de260e58cccfd2ceddf835b55a357233d6ca853a1aa4f90f7553a52cc71c6ddf
+SIZE (statsmodels-0.14.5.tar.gz) = 20525016
diff --git a/math/py-statsmodels/files/patch-pyproject.toml b/math/py-statsmodels/files/patch-pyproject.toml
index 631b260e6364..e7b6ab880b99 100644
--- a/math/py-statsmodels/files/patch-pyproject.toml
+++ b/math/py-statsmodels/files/patch-pyproject.toml
@@ -1,17 +1,16 @@
---- pyproject.toml.orig	2023-12-07 13:22:55 UTC
+--- pyproject.toml.orig	2025-07-02 15:55:37 UTC
 +++ pyproject.toml
-@@ -3,12 +3,9 @@ requires = [
+@@ -2,10 +2,10 @@ requires = [
+ # These are strictly build requirements. Runtime requirements are listed in
  # INSTALL_REQUIRES in setup.py
  requires = [
-     "setuptools>=69.0.2; python_version>='3.12'",
--    "setuptools>=63.4.3",
-+    "setuptools>=63.1.0",
-     "cython>=0.29.33,<4",  # Sync with CYTHON_MIN_VER in setup
--    # Workaround for oldest supported numpy using 1.21.6, but SciPy 1.9.2+ requiring 1.22.3+
--    "oldest-supported-numpy; python_version!='3.10' or platform_system!='Windows' or platform_python_implementation=='PyPy'",
--    "numpy>=1.22.3,<2; python_version=='3.10' and platform_system=='Windows' and platform_python_implementation != 'PyPy'",
--    "numpy<2; python_version>='3.12'",
-+    "numpy>=1.22.3,<2",
-     "scipy>=1.4",
+-    "setuptools>=69.0.2",
++    "setuptools>=61.0.0",
+     "cython>=3.0.10,<4",  # Sync with CYTHON_MIN_VER in setup
+-    "numpy>=2.0.0,<3",
+-    "scipy>=1.13,<2",
++    "numpy>=1.22.3,<3",
++    "scipy>=1.8,<2",
      "setuptools_scm[toml]>=8,<9"
  ]
+ build-backend = "setuptools.build_meta"
diff --git a/math/py-statsmodels/pkg-plist b/math/py-statsmodels/pkg-plist
index a7822be5d42d..544be1519514 100644
--- a/math/py-statsmodels/pkg-plist
+++ b/math/py-statsmodels/pkg-plist
@@ -90,6 +90,7 @@
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/chi2_fitting.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/contrasts.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/copula.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/count_hurdle.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/deterministics.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/discrete_choice_example.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/discrete_choice_overview.py
@@ -114,10 +115,12 @@
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/mediation_survival.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/metaanalysis1.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/mixed_lm_example.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/mstl_decomposition.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/ols.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/ordinal_regression.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/pca_fertility_factors.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/plots_boxplots.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/postestimation_poisson.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/predict.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/quantile_regression.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/quasibinomial.py
@@ -146,8 +149,11 @@
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/statespace_tvpvar_mcmc_cfa.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/statespace_varmax.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/stationarity_detrending_adf_kpss.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/stats_poisson.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/stats_rankcompare.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/stl_decomposition.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/theta-model.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/treatment_effect.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/tsa_arma_0.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/tsa_arma_1.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/python/tsa_dates.py