Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-statsmodels for openSUSE:Factory checked in at 2023-01-14 00:02:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-statsmodels (Old) and /work/SRC/openSUSE:Factory/.python-statsmodels.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-statsmodels" Sat Jan 14 00:02:56 2023 rev:13 rq:1058136 version:0.13.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-statsmodels/python-statsmodels.changes 2022-11-25 16:40:27.165580370 +0100 +++ /work/SRC/openSUSE:Factory/.python-statsmodels.new.32243/python-statsmodels.changes 2023-01-14 00:03:38.961861748 +0100 @@ -1,0 +2,12 @@ +Thu Jan 12 15:34:03 UTC 2023 - Ben Greiner <c...@bnavigator.de> + +- Don't remove the tests after install, we need them in the check + section. + +------------------------------------------------------------------- +Thu Nov 24 01:10:17 UTC 2022 - Matej Cepl <mc...@suse.com> + +- Add use_old_setuptools_scm.patch allowing use older version + setuptools_scm. + +------------------------------------------------------------------- New: ---- use_old_setuptools_scm.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-statsmodels.spec ++++++ --- /var/tmp/diff_new_pack.SSBVpM/_old 2023-01-14 00:03:40.341869785 +0100 +++ /var/tmp/diff_new_pack.SSBVpM/_new 2023-01-14 00:03:40.345869809 +0100 @@ -32,12 +32,15 @@ License: BSD-3-Clause URL: https://github.com/statsmodels/statsmodels Source: https://files.pythonhosted.org/packages/source/s/statsmodels/statsmodels-%{version}.tar.gz +# PATCH-FIX-OPENSUSE use_old_setuptools_scm.patch mc...@suse.com +# Use older version setuptools_scm +Patch0: use_old_setuptools_scm.patch BuildRequires: %{python_module Cython >= 0.29.32} BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module numpy-devel >= 1.17} BuildRequires: %{python_module scipy >= 1.3} BuildRequires: %{python_module setuptools >= 0.59.2} -BuildRequires: %{python_module setuptools_scm >= 7} +BuildRequires: %{python_module setuptools_scm >= 6} BuildRequires: fdupes BuildRequires: gcc-fortran BuildRequires: python-rpm-macros @@ -72,6 +75,7 @@ %prep %autosetup -p1 -n statsmodels-%{version} + rm -rf statsmodels/.pytest_cache find . -type f -name "*.py" -exec sed -i -e '1{/env python/ d}' -e 's/\r$//' {} \; find . -type f -exec chmod a-x {} \; @@ -111,7 +115,7 @@ %define donttest -k "not (test_seasonal_order or (test_holtwinters and test_forecast_index) or (test_discrete and test_basic))" %endif # not slow: some tests in tsa and discrete take AGES to run in OBS, like 2h per the folder -%pytest_arch -n auto -p no:cacheprovider -m "not slow" %{$python_sitearch}/statsmodels %{?donttest} +%pytest_arch -n auto -p no:cacheprovider -m "not slow" %{?donttest} %{$python_sitearch}/statsmodels popd rm -r $testdir %endif ++++++ use_old_setuptools_scm.patch ++++++ >From 38215fcb462598a3d60eeebdf30b5e7568d5c973 Mon Sep 17 00:00:00 2001 From: Kevin Sheppard <kevin.shepp...@gmail.com> Date: Mon, 24 Oct 2022 00:48:12 +0100 Subject: [PATCH] Restore setuptools_scm verion bump --- pyproject.toml | 2 +- requirements-dev.txt | 2 +- statsmodels/__init__.py | 6 ++++-- statsmodels/tools/web.py | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ requires = [ # Cap at 1.9.x for all other platforms "scipy>=1.3,<1.10; (python_version>'3.9' or platform_system!='Windows' or platform_machine!='x86') and python_version<'3.12'", "scipy>=1.9; python_version>='3.12'", - "setuptools_scm[toml]>=7.0,<8" + "setuptools_scm[toml]>=6.4.2,<7.0.0" ] build-backend = "setuptools.build_meta" --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,6 @@ # build cython>=0.29.32,<3.0.0 -setuptools_scm[toml]~=7.0.0 +setuptools_scm[toml]>=6.4.2,<7.0.0 oldest-supported-numpy>=2022.4.18 # run --- a/statsmodels/__init__.py +++ b/statsmodels/__init__.py @@ -1,4 +1,6 @@ -from statsmodels._version import __version__, __version_tuple__ +from statsmodels._version import ( + version as __version__, version_tuple as __version_info__ +) debug_warnings = False @@ -32,4 +34,4 @@ def test(extra_args=None, exit=False): return tst(extra_args=extra_args, exit=exit) -__all__ = ["__version__", "__version_tuple__", "test"] +__all__ = ["__version__", "__version_info__", "test"] --- a/statsmodels/tools/web.py +++ b/statsmodels/tools/web.py @@ -5,7 +5,7 @@ to a function's reference import webbrowser from urllib.parse import urlencode -from statsmodels import __version__ +from statsmodels._version import __version__ BASE_URL = 'https://www.statsmodels.org/'