Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-nptyping for openSUSE:Factory
checked in at 2024-02-20 21:15:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nptyping (Old)
and /work/SRC/openSUSE:Factory/.python-nptyping.new.1706 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nptyping"
Tue Feb 20 21:15:00 2024 rev:4 rq:1147711 version:2.5.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nptyping/python-nptyping.changes
2022-12-10 21:18:22.801750037 +0100
+++
/work/SRC/openSUSE:Factory/.python-nptyping.new.1706/python-nptyping.changes
2024-02-20 21:15:17.155968690 +0100
@@ -1,0 +2,24 @@
+Tue Feb 20 08:10:28 UTC 2024 - Matej Cepl <[email protected]>
+
+- Did the upstream just released different tarball with the same
+ version number? Yes, they did!
+- Rebased patches
+
+-------------------------------------------------------------------
+Fri Feb 16 12:21:58 UTC 2024 - Ben Greiner <[email protected]>
+
+- Update to 2.5.0
+ * Added the column wildcard in structure expressions to allow
+ expressing 'a structure with at least ...'.
+ * Fixed the help text for functions that use nptyping types as
+ hints.
+ * Fixed the distribution of dataframe.pyi that was missing.
+ * Fixed the sdist to include tests and dependencies.
+- Fix the test suite.
+ * The -k parameter for unittests does not know negative patterns
+ * Don't test with beartype and typeguard:
+ gh#ramonhagenaars/nptyping#115
+ * Drop skip-pyright-tests.patch, delete file instead
+ * Drop skip_pandas.patch.
+
+-------------------------------------------------------------------
Old:
----
nptyping-2.4.1.tar.gz
skip-pyright-tests.patch
New:
----
nptyping-2.5.0.tar.gz
BETA DEBUG BEGIN:
Old: gh#ramonhagenaars/nptyping#115
* Drop skip-pyright-tests.patch, delete file instead
* Drop skip_pandas.patch.
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-nptyping.spec ++++++
--- /var/tmp/diff_new_pack.d5JSfz/_old 2024-02-20 21:15:17.988000977 +0100
+++ /var/tmp/diff_new_pack.d5JSfz/_new 2024-02-20 21:15:17.988000977 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-nptyping
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,40 +16,45 @@
#
-%define modname nptyping
+# pyright is a nodejs package and nobody dares to package it for openSUSE
+%bcond_with pyright
+# beartype and typeguard: https://github.com/ramonhagenaars/nptyping/issues/115
+%bcond_with beartype
+%bcond_with typeguard
+# mypy tests expect pandas_stubs, which are not in the distribution
+%bcond_with pandas_stubs
Name: python-nptyping
-Version: 2.4.1
+Version: 2.5.0
Release: 0
Summary: Type hints for NumPy
License: MIT
URL: https://github.com/ramonhagenaars/nptyping
-Source:
https://github.com/ramonhagenaars/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
-# PATCH-FIX-OPENSUSE use_system_packages.patch gh#ramonhagenaars/nptyping#72
[email protected]
-# Don't need to build the wheel a second time, when creating venv for install
check, allow use of system packages
-Patch0: use_system_packages.patch
+Source:
https://files.pythonhosted.org/packages/source/n/nptyping/nptyping-%{version}.tar.gz
# PATCH-FIX-UPSTREAM skip_on_other_archs.patch gh#ramonhagenaars/nptyping#73
[email protected]
# test_instance_check_performance doesn't seem to work well on some
architectures
-Patch1: skip_on_other_archs.patch
-# PATCH-FIX-OPENSUSE skip-pyright-tests.patch [email protected] -- pyright is
a nodejs package and nobody dares to package it for openSUSE
-Patch2: skip-pyright-tests.patch
+Patch0: skip_on_other_archs.patch
+# PATCH-FIX-OPENSUSE use_system_packages.patch gh#ramonhagenaars/nptyping#72
[email protected]
+# Don't need to build the wheel a second time, when creating venv for install
check, allow use of system packages
+Patch1: use_system_packages.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
-Requires: python-numpy >= 1.20.0
+Requires: (python-numpy >= 1.21.5 with python-numpy < 2)
%if 0%{python_version_nodots} < 310
-Requires: python-typing_extensions >= 4.0.0
+Requires: (python-typing_extensions >= 4.0.0 with
python-typing_extensions < 5)
%endif
BuildArch: noarch
# SECTION test requirements
-BuildRequires: %{python_module beartype}
BuildRequires: %{python_module feedparser}
-BuildRequires: %{python_module mypy}
-BuildRequires: %{python_module numpy >= 1.20.0}
+%{?_with_pandas_stubs:BuildRequires: %{python_module mypy}}
+%{?_with_beartype:BuildRequires: %{python_module beartype}}
+%{?_with_typeguard:BuildRequires: %{python_module typeguard}}
+BuildRequires: %{python_module numpy >= 1.20.0 with %python-numpy < 2}
BuildRequires: %{python_module pandas}
-BuildRequires: %{python_module typeguard}
+BuildRequires: %{python_module typing_extensions < 5 if %python-base < 3.10}
BuildRequires: %{python_module typing_extensions >= 4.0.0 if %python-base <
3.10}
# /SECTION
%python_subpackages
@@ -60,6 +65,8 @@
%prep
%autosetup -p1 -n nptyping-%{version}
+sed -i -e 's/\r//g' README.md
+
%build
%pyproject_wheel
@@ -71,12 +78,15 @@
# wheel in dist/ used by test/test_wheel.py
mkdir -p dist/
cp build/nptyping-%{version}-py3-none-any.whl dist/
-# There's no python-pandas-stubs package in Factory yet
-%pyunittest -v -k 'not test_mypi'
+%{!?_with_pyright:rm tests/test_pyright.py}
+%{!?_with_beartype:rm tests/test_beartype.py}
+%{!?_with_typeguard:rm tests/test_typeguard.py}
+%{!?_with_pandas_stubs:rm tests/test_mypy.py
tests/pandas_/test_mypy_dataframe.py tests/pandas_/test_fork_sync.py}
+%pyunittest -v
%files %{python_files}
%doc README.md
%license LICENSE
-%{python_sitelib}/%{modname}
-%{python_sitelib}/%{modname}-%{version}*-info
+%{python_sitelib}/nptyping
+%{python_sitelib}/nptyping-%{version}.dist-info
++++++ nptyping-2.4.1.tar.gz -> nptyping-2.5.0.tar.gz ++++++
++++ 11940 lines of diff (skipped)
++++++ skip_on_other_archs.patch ++++++
--- /var/tmp/diff_new_pack.d5JSfz/_old 2024-02-20 21:15:18.080004547 +0100
+++ /var/tmp/diff_new_pack.d5JSfz/_new 2024-02-20 21:15:18.084004703 +0100
@@ -5,22 +5,22 @@
--- a/tests/test_performance.py
+++ b/tests/test_performance.py
@@ -1,5 +1,6 @@
- from timeit import Timer
--from unittest import TestCase
-+import platform
-+import unittest
-
- import numpy as np
-
+ from timeit import Timer
+-from unittest import TestCase
++import platform
++import unittest
+
+ import numpy as np
+
@@ -10,7 +11,9 @@ from nptyping import (
- )
-
-
--class PerformanceTest(TestCase):
[email protected](platform.machine in ('i586', 'aarch64'),
-+ "not supported on this architecture")
-+class PerformanceTest(unittest.TestCase):
- def test_instance_check_performance(self):
-
- arr = np.random.randn(42, 42, 3, 5)
+ )
+
+
+-class PerformanceTest(TestCase):
[email protected](platform.machine in ('i586', 'aarch64'),
++ "not supported on this architecture")
++class PerformanceTest(unittest.TestCase):
+ def test_instance_check_performance(self):
+
+ arr = np.random.randn(42, 42, 3, 5)
++++++ use_system_packages.patch ++++++
--- /var/tmp/diff_new_pack.d5JSfz/_old 2024-02-20 21:15:18.096005169 +0100
+++ /var/tmp/diff_new_pack.d5JSfz/_new 2024-02-20 21:15:18.100005323 +0100
@@ -1,36 +1,41 @@
---
- tests/test_wheel.py | 9 +++++----
- 1 file changed, 5 insertions(+), 4 deletions(-)
+ tests/test_wheel.py | 13 +++----------
+ 1 file changed, 3 insertions(+), 10 deletions(-)
-Index: nptyping-2.2.0/tests/test_wheel.py
-===================================================================
---- nptyping-2.2.0.orig/tests/test_wheel.py
-+++ nptyping-2.2.0/tests/test_wheel.py
-@@ -80,12 +80,8 @@ class WheelTest(TestCase):
-
- def test_wheel_is_built_correctly(self):
- with working_dir(_ROOT):
-- subprocess.check_output(f"{sys.executable} -m invoke wheel",
shell=True)
- wheel_files = glob(f"dist/*{__version__}*.whl")
-- src_files = glob(f"dist/*{__version__}*.tar.gz")
--
- self.assertEqual(1, len(wheel_files))
-- self.assertEqual(1, len(src_files))
-
- with ZipFile(_ROOT / Path(wheel_files[0]), "r") as zip_:
- files_in_wheel = set(
-@@ -98,10 +94,9 @@ class WheelTest(TestCase):
-
- def test_wheel_can_be_installed(self):
- with working_dir(Path(self.temp_dir.name)):
-- venv.create(_VENV_NAME, with_pip=False)
-- # For some reason, with_pip=True fails, so we do it separately.
-- subprocess.check_output(
-- f"{self.py} -m ensurepip --upgrade --default-pip", shell=True
-+ venv.create(_VENV_NAME, system_site_packages=True, with_pip=True)
-+ print(
-+ f"{self.pip} install {_ROOT / 'dist' / _WHEEL_NAME}"
- )
- subprocess.check_output(
- f"{self.pip} install {_ROOT / 'dist' / _WHEEL_NAME}",
shell=True
+--- a/tests/test_wheel.py
++++ b/tests/test_wheel.py
+@@ -90,12 +90,9 @@ class WheelTest(TestCase):
+
+ def test_wheel_is_built_correctly(self):
+ with working_dir(_ROOT):
+- subprocess.check_output(f"{sys.executable} -m invoke wheel",
shell=True)
+ wheel_files = glob(f"dist/*{__version__}*.whl")
+- src_files = glob(f"dist/*{__version__}*.tar.gz")
+
+ self.assertEqual(1, len(wheel_files))
+- self.assertEqual(1, len(src_files))
+
+ with ZipFile(_ROOT / Path(wheel_files[0]), "r") as zip_:
+ files_in_wheel = set(
+@@ -108,17 +105,13 @@ class WheelTest(TestCase):
+
+ def test_wheel_can_be_installed(self):
+ with working_dir(Path(self.temp_dir.name)):
+- venv.create(_VENV_NAME, with_pip=False)
+- # For some reason, with_pip=True fails, so we do it separately.
+- subprocess.check_output(
+- f"{self.py} -m ensurepip --upgrade --default-pip", shell=True
++ venv.create(_VENV_NAME, system_site_packages=True, with_pip=True)
++ print(
++ f"{self.pip} install {_ROOT / 'dist' / _WHEEL_NAME}"
+ )
+ subprocess.check_output(
+ f"{self.py} -m pip install --upgrade pip", shell=True
+ )
+- subprocess.check_output(
+- f"{self.pip} install {_ROOT / 'dist' / _WHEEL_NAME}",
shell=True
+- )
+ # No errors raised? Then the install succeeded.
+
+ def test_basic_nptyping_code(self):