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 2022-08-27 11:49:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nptyping (Old)
 and      /work/SRC/openSUSE:Factory/.python-nptyping.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nptyping"

Sat Aug 27 11:49:45 2022 rev:2 rq:999363 version:2.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nptyping/python-nptyping.changes  
2022-05-06 18:59:30.125367262 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-nptyping.new.2083/python-nptyping.changes    
    2022-08-27 11:49:46.461802378 +0200
@@ -1,0 +2,26 @@
+Thu Aug 25 20:59:58 UTC 2022 - Ben Greiner <[email protected]>
+
+- Update to 2.2.0
+  * Added support for expressing "at least N dimensions".
+- Release 2.1.3
+  * Fixed typing issue with Pyright/Pylance that caused the
+    message: "Literal" is not a class
+  * Fixed wrong error message when an invalid Structure was
+    provided to NDArray.
+- Release 2.1.2
+  * Fixed bug that caused MyPy to fail with the message: Value of
+    type variable "_DType_co" of "ndarray" cannot be
+    "floating[Any]"
+- Release 2.1.1
+  * Fixed bug that numpy ndarrays were incorrectly instance checked
+    against RecArray.
+- Release 2.1.0
+  * Added Structure and "structure expressions" to support
+    structured arrays.
+  * Added RecArray.
+- add skip-pyright-tests.patch
+- Expand use_system_packages.patch
+  * Don't build the wheel a second time in tests, the
+    `invoke wheel` command fails otherwise.
+
+-------------------------------------------------------------------

Old:
----
  nptyping-2.0.1.tar.gz

New:
----
  nptyping-2.2.0.tar.gz
  skip-pyright-tests.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-nptyping.spec ++++++
--- /var/tmp/diff_new_pack.4sD1IA/_old  2022-08-27 11:49:47.009803555 +0200
+++ /var/tmp/diff_new_pack.4sD1IA/_new  2022-08-27 11:49:47.013803564 +0200
@@ -19,18 +19,20 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define modname nptyping
 Name:           python-nptyping
-Version:        2.0.1
+Version:        2.2.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-UPSTREAM use_system_packages.patch gh#ramonhagenaars/nptyping#72 
[email protected]
-# When creating venv allow use of system packages
+# 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
 # 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
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
@@ -38,28 +40,17 @@
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
 Requires:       python-numpy >= 1.20.0
-Suggests:       python-autoflake
-Suggests:       python-beartype < 0.10.0
-Suggests:       python-beartype >= 0.10.0
-Suggests:       python-black
-Suggests:       python-codecov >= 2.1.0
-Suggests:       python-coverage
-Suggests:       python-invoke >= 1.6.0
-Suggests:       python-isort
-Suggests:       python-mypy
-Suggests:       python-pip-tools >= 6.5.0
-Suggests:       python-pylint
-Suggests:       python-setuptools
-Suggests:       python-typeguard
-Suggests:       python-typing_extensions
-Suggests:       python-wheel
+%if 0%{python_version_nodots} < 310
+Requires:       python-typing_extensions >= 4.0.0
+%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}
 BuildRequires:  %{python_module typeguard}
-BuildRequires:  %{python_module typing_extensions if %python-base < 3.10}
+BuildRequires:  %{python_module typing_extensions >= 4.0.0 if %python-base < 
3.10}
 # /SECTION
 %python_subpackages
 
@@ -69,8 +60,6 @@
 %prep
 %autosetup -p1 -n nptyping-%{version}
 
-sed -i -e 's/typing-extensions/typing_extensions/' constraints.txt
-
 %build
 %pyproject_wheel
 
@@ -79,6 +68,9 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
+# wheel in dist/ used by test/test_wheel.py
+mkdir -p dist/
+cp build/nptyping-%{version}-py3-none-any.whl dist/
 %pyunittest -v
 
 %files %{python_files}

++++++ nptyping-2.0.1.tar.gz -> nptyping-2.2.0.tar.gz ++++++
++++ 3834 lines of diff (skipped)

++++++ skip-pyright-tests.patch ++++++
Index: nptyping-2.2.0/tests/test_pyright.py
===================================================================
--- nptyping-2.2.0.orig/tests/test_pyright.py
+++ nptyping-2.2.0/tests/test_pyright.py
@@ -1,9 +1,12 @@
 from functools import partial
 from subprocess import PIPE, run
 from typing import Tuple
-from unittest import TestCase
+import unittest
 
-import pyright
+try:
+    import pyright
+except ImportError:
+    pyright = None
 
 from tests.test_helpers.temp_file import temp_file
 
@@ -21,8 +24,8 @@ def _check_pyright_on_code(python_code:
     finally:
         pyright.node.subprocess.run = run
 
-
-class PyrightTest(TestCase):
[email protected](pyright is None, "pyright not installed")
+class PyrightTest(unittest.TestCase):
     def test_pyright_accepts_array_with_shape(self):
         exit_code, stdout, sterr = _check_pyright_on_code(
             """

++++++ use_system_packages.patch ++++++
--- /var/tmp/diff_new_pack.4sD1IA/_old  2022-08-27 11:49:47.109803770 +0200
+++ /var/tmp/diff_new_pack.4sD1IA/_new  2022-08-27 11:49:47.113803779 +0200
@@ -2,9 +2,24 @@
  tests/test_wheel.py |    9 +++++----
  1 file changed, 5 insertions(+), 4 deletions(-)
 
---- a/tests/test_wheel.py
-+++ b/tests/test_wheel.py
-@@ -93,10 +93,9 @@ class WheelTest(TestCase):
+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)):

Reply via email to