Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-atom for openSUSE:Factory 
checked in at 2023-04-16 19:39:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-atom (Old)
 and      /work/SRC/openSUSE:Factory/.python-atom.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-atom"

Sun Apr 16 19:39:03 2023 rev:9 rq:1079774 version:0.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-atom/python-atom.changes  2023-03-01 
16:15:22.063008010 +0100
+++ /work/SRC/openSUSE:Factory/.python-atom.new.19717/python-atom.changes       
2023-04-16 19:39:04.086362671 +0200
@@ -1,0 +2,9 @@
+Sun Apr 16 16:47:35 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 0.9.1:
+  * fix generation of Value member from union containing
+    object/Any PR #198
+  * fix setdefault method of atomdict to return the actually
+    stored item PR #197
+
+-------------------------------------------------------------------

Old:
----
  atom-0.9.0.tar.gz

New:
----
  atom-0.9.1.tar.gz

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

Other differences:
------------------
++++++ python-atom.spec ++++++
--- /var/tmp/diff_new_pack.eBDPA8/_old  2023-04-16 19:39:05.310369957 +0200
+++ /var/tmp/diff_new_pack.eBDPA8/_new  2023-04-16 19:39:05.350370195 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-atom
-Version:        0.9.0
+Version:        0.9.1
 Release:        0
 Summary:        Memory efficient Python objects
 License:        BSD-3-Clause

++++++ atom-0.9.0.tar.gz -> atom-0.9.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/atom-0.9.0/PKG-INFO new/atom-0.9.1/PKG-INFO
--- old/atom-0.9.0/PKG-INFO     2023-02-21 13:18:53.328174600 +0100
+++ new/atom-0.9.1/PKG-INFO     2023-03-13 13:30:33.529261800 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: atom
-Version: 0.9.0
+Version: 0.9.1
 Summary: Memory efficient Python objects
 Author-email: The Nucleic Development Team <[email protected]>
 Maintainer-email: "Matthieu C. Dartiailh" <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/atom-0.9.0/atom/annotation_utils.py 
new/atom-0.9.1/atom/annotation_utils.py
--- old/atom-0.9.0/atom/annotation_utils.py     2023-02-21 13:18:35.000000000 
+0100
+++ new/atom-0.9.1/atom/annotation_utils.py     2023-03-13 13:30:16.000000000 
+0100
@@ -54,6 +54,7 @@
         )
     elif object in types or Any in types:
         m_cls = Value
+        parameters = ()
     # Int, Float, Str, Bytes, List, Dict, Set, Tuple, Bool, Callable
     elif len(types) == 1 and types[0] in _TYPE_TO_MEMBER:
         t = types[0]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/atom-0.9.0/atom/src/atomdict.cpp 
new/atom-0.9.1/atom/src/atomdict.cpp
--- old/atom-0.9.0/atom/src/atomdict.cpp        2023-02-21 13:18:35.000000000 
+0100
+++ new/atom-0.9.1/atom/src/atomdict.cpp        2023-03-13 13:30:16.000000000 
+0100
@@ -157,7 +157,8 @@
        {
                return 0;
        }
-       return cppy::incref( dfv );
+       // Get the dictionary from the dict itself in case it was corced.
+       return cppy::incref( PyDict_GetItem( pyobject_cast( self ), key ) );
 }
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/atom-0.9.0/atom/version.py 
new/atom-0.9.1/atom/version.py
--- old/atom-0.9.0/atom/version.py      2023-02-21 13:18:53.000000000 +0100
+++ new/atom-0.9.1/atom/version.py      2023-03-13 13:30:33.000000000 +0100
@@ -12,7 +12,7 @@
 #: A namedtuple of the version info for the current release.
 _version_info = namedtuple("_version_info", "major minor micro status")
 
-parts = "0.9.0".split(".", 3)
+parts = "0.9.1".split(".", 3)
 version_info = _version_info(
     int(parts[0]),
     int(parts[1]),
@@ -23,4 +23,4 @@
 # Remove everything but the 'version_info' from this module.
 del namedtuple, _version_info, parts
 
-__version__ = "0.9.0"
+__version__ = "0.9.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/atom-0.9.0/atom.egg-info/PKG-INFO 
new/atom-0.9.1/atom.egg-info/PKG-INFO
--- old/atom-0.9.0/atom.egg-info/PKG-INFO       2023-02-21 13:18:53.000000000 
+0100
+++ new/atom-0.9.1/atom.egg-info/PKG-INFO       2023-03-13 13:30:33.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: atom
-Version: 0.9.0
+Version: 0.9.1
 Summary: Memory efficient Python objects
 Author-email: The Nucleic Development Team <[email protected]>
 Maintainer-email: "Matthieu C. Dartiailh" <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/atom-0.9.0/releasenotes.rst 
new/atom-0.9.1/releasenotes.rst
--- old/atom-0.9.0/releasenotes.rst     2023-02-21 13:18:35.000000000 +0100
+++ new/atom-0.9.1/releasenotes.rst     2023-03-13 13:30:16.000000000 +0100
@@ -1,6 +1,12 @@
 Atom Release Notes
 ==================
 
+0.9.1 - 13/03/2023
+------------------
+
+- fix generation of Value member from union containing object/Any PR #198
+- fix setdefault method of atomdict to return the actually stored item PR #197
+
 0.9.0 - 21/02/2023
 ------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/atom-0.9.0/tests/test_atom_from_annotations.py 
new/atom-0.9.1/tests/test_atom_from_annotations.py
--- old/atom-0.9.0/tests/test_atom_from_annotations.py  2023-02-21 
13:18:35.000000000 +0100
+++ new/atom-0.9.1/tests/test_atom_from_annotations.py  2023-03-13 
13:30:16.000000000 +0100
@@ -238,6 +238,7 @@
         (str, Str, "a"),
         (bytes, Bytes, b"a"),
         (Any, Value, 1),
+        (Union[Any, None], Value, None),
         (object, Value, 2),
         (TCallable, Callable, lambda x: x),
         (TList, List, [1]),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/atom-0.9.0/tests/test_atomdict.py 
new/atom-0.9.1/tests/test_atomdict.py
--- old/atom-0.9.0/tests/test_atomdict.py       2023-02-21 13:18:35.000000000 
+0100
+++ new/atom-0.9.1/tests/test_atomdict.py       2023-03-13 13:30:16.000000000 
+0100
@@ -11,7 +11,7 @@
 """
 import pytest
 
-from atom.api import Atom, Dict, Int, atomdict
+from atom.api import Atom, Dict, Int, List, atomdict, atomlist
 
 
 @pytest.fixture
@@ -149,6 +149,16 @@
         atom_dict.fullytyped.setdefault(2, "")
 
 
+def test_setdefault_coercion():
+    class A(Atom):
+        d = Dict(int, List(int))
+
+    a = A()
+    content = a.d.setdefault(1, [])
+    assert isinstance(content, atomlist)
+    assert content is a.d[1]
+
+
 def test_update(atom_dict):
     """Test update a dict."""
     atom_dict.untyped.update({"": 1})

Reply via email to