Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-argh for openSUSE:Factory 
checked in at 2024-01-30 18:26:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-argh (Old)
 and      /work/SRC/openSUSE:Factory/.python-argh.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-argh"

Tue Jan 30 18:26:54 2024 rev:25 rq:1142777 version:0.31.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-argh/python-argh.changes  2024-01-21 
23:09:04.995095406 +0100
+++ /work/SRC/openSUSE:Factory/.python-argh.new.1815/python-argh.changes        
2024-01-30 18:27:01.977444105 +0100
@@ -1,0 +2,8 @@
+Tue Jan 30 12:20:53 UTC 2024 - Dirk Müller <dmuel...@suse.com>
+
+- update to 0.31.2:
+  * broken support for `Optional[List]` (but not
+    `Optional[list]`), a narrower case of the problem fixed
+    earlier
+
+-------------------------------------------------------------------

Old:
----
  argh-0.31.1.tar.gz

New:
----
  argh-0.31.2.tar.gz

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

Other differences:
------------------
++++++ python-argh.spec ++++++
--- /var/tmp/diff_new_pack.VOQvfI/_old  2024-01-30 18:27:03.481498366 +0100
+++ /var/tmp/diff_new_pack.VOQvfI/_new  2024-01-30 18:27:03.481498366 +0100
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-argh
-Version:        0.31.1
+Version:        0.31.2
 Release:        0
 Summary:        An argparse wrapper
 License:        LGPL-3.0-or-later

++++++ argh-0.31.1.tar.gz -> argh-0.31.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argh-0.31.1/PKG-INFO new/argh-0.31.2/PKG-INFO
--- old/argh-0.31.1/PKG-INFO    1970-01-01 01:00:00.000000000 +0100
+++ new/argh-0.31.2/PKG-INFO    1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: argh
-Version: 0.31.1
+Version: 0.31.2
 Summary: Plain Python functions as CLI commands without boilerplate
 Keywords: cli,command line,argparse,optparse,argument,option
 Author-email: Andy Mikhaylenko <neith...@gmail.com>
@@ -24,10 +24,10 @@
 Classifier: Topic :: Software Development :: User Interfaces
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Requires-Dist: argcomplete >= 2.0 ; extra == "completion"
-Requires-Dist: sphinx >= 6.1 ; extra == "docs"
-Requires-Dist: sphinx-pyproject == 0.1.0 ; extra == "docs"
-Requires-Dist: sphinx_rtd_theme >= 1.2.0 ; extra == "docs"
-Requires-Dist: readthedocs-sphinx-search == 0.2.0 ; extra == "docs"
+Requires-Dist: sphinx >= 7.2 ; extra == "docs"
+Requires-Dist: sphinx-pyproject == 0.3 ; extra == "docs"
+Requires-Dist: sphinx_rtd_theme >= 2.0 ; extra == "docs"
+Requires-Dist: readthedocs-sphinx-search == 0.3.2 ; extra == "docs"
 Requires-Dist: pre-commit >= 3.4.0 ; extra == "linters"
 Requires-Dist: tox >= 4.11.3 ; extra == "test"
 Requires-Dist: pytest >= 7.4 ; extra == "test"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argh-0.31.1/pyproject.toml 
new/argh-0.31.2/pyproject.toml
--- old/argh-0.31.1/pyproject.toml      2024-01-19 17:54:33.588502200 +0100
+++ new/argh-0.31.2/pyproject.toml      2024-01-24 22:30:05.402793000 +0100
@@ -4,7 +4,7 @@
 
 [project]
 name = "argh"
-version = "0.31.1"
+version = "0.31.2"
 description = "Plain Python functions as CLI commands without boilerplate"
 readme = "README.rst"
 requires-python = ">=3.8"
@@ -59,10 +59,10 @@
   "pytest-cov >= 4.1",
 ]
 docs = [
-  "sphinx >= 6.1",
-  "sphinx-pyproject == 0.1.0",
-  "sphinx_rtd_theme >= 1.2.0",
-  "readthedocs-sphinx-search == 0.2.0",
+  "sphinx >= 7.2",
+  "sphinx-pyproject == 0.3",
+  "sphinx_rtd_theme >= 2.0",
+  "readthedocs-sphinx-search == 0.3.2",
 ]
 linters = [
   "pre-commit >= 3.4.0",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argh-0.31.1/src/argh/assembling.py 
new/argh-0.31.2/src/argh/assembling.py
--- old/argh-0.31.1/src/argh/assembling.py      2024-01-19 17:54:33.588502200 
+0100
+++ new/argh-0.31.2/src/argh/assembling.py      2024-01-24 22:30:05.402793000 
+0100
@@ -770,10 +770,10 @@
             if first_subtype in cls.BASIC_TYPES:
                 retval["type"] = first_subtype
 
-            if first_subtype == list:
+            if first_subtype in (list, List):
                 retval["nargs"] = ZERO_OR_MORE
 
-            if get_origin(first_subtype) == list:
+            if first_subtype != List and get_origin(first_subtype) == list:
                 retval["nargs"] = ZERO_OR_MORE
                 item_type = 
cls._extract_item_type_from_list_type(first_subtype)
                 if item_type:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argh-0.31.1/tests/test_typing_hints.py 
new/argh-0.31.2/tests/test_typing_hints.py
--- old/argh-0.31.1/tests/test_typing_hints.py  2024-01-19 17:54:33.588502200 
+0100
+++ new/argh-0.31.2/tests/test_typing_hints.py  2024-01-24 22:30:05.402793000 
+0100
@@ -36,6 +36,7 @@
     assert guess(list) == {"nargs": "*"}
     assert guess(List) == {"nargs": "*"}
     assert guess(Optional[list]) == {"nargs": "*", "required": False}
+    assert guess(Optional[List]) == {"nargs": "*", "required": False}
 
     assert guess(List[str]) == {"nargs": "*", "type": str}
     assert guess(List[int]) == {"nargs": "*", "type": int}

Reply via email to