Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-tinydb for openSUSE:Factory 
checked in at 2021-11-21 23:52:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tinydb (Old)
 and      /work/SRC/openSUSE:Factory/.python-tinydb.new.1895 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tinydb"

Sun Nov 21 23:52:11 2021 rev:11 rq:932770 version:4.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tinydb/python-tinydb.changes      
2021-08-28 22:29:34.690003340 +0200
+++ /work/SRC/openSUSE:Factory/.python-tinydb.new.1895/python-tinydb.changes    
2021-11-21 23:52:40.354158062 +0100
@@ -1,0 +2,9 @@
+Fri Nov 19 13:03:12 UTC 2021 - [email protected]
+
+- version update to 4.5.2
+  - Fix: Make Table.delete()'s argument priorities consistent with
+    other table methods. This means that if you pass both cond as
+    well as doc_ids to Table.delete(), the latter will be prefered
+    (see #424)
+
+-------------------------------------------------------------------

Old:
----
  tinydb-4.5.1.tar.gz
  v4.5.1.tar.gz

New:
----
  tinydb-4.5.2.tar.gz
  v4.5.2.tar.gz

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

Other differences:
------------------
++++++ python-tinydb.spec ++++++
--- /var/tmp/diff_new_pack.oBMMzo/_old  2021-11-21 23:52:40.926156217 +0100
+++ /var/tmp/diff_new_pack.oBMMzo/_new  2021-11-21 23:52:40.926156217 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-tinydb
-Version:        4.5.1
+Version:        4.5.2
 Release:        0
 Summary:        A document-oriented database
 License:        MIT

++++++ tinydb-4.5.1.tar.gz -> tinydb-4.5.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinydb-4.5.1/PKG-INFO new/tinydb-4.5.2/PKG-INFO
--- old/tinydb-4.5.1/PKG-INFO   2021-07-17 10:35:20.332101300 +0200
+++ new/tinydb-4.5.2/PKG-INFO   2021-09-23 20:07:31.814720000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tinydb
-Version: 4.5.1
+Version: 4.5.2
 Summary: TinyDB is a tiny, document oriented database optimized for your 
happiness :)
 Home-page: https://github.com/msiemens/tinydb
 License: MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinydb-4.5.1/pyproject.toml 
new/tinydb-4.5.2/pyproject.toml
--- old/tinydb-4.5.1/pyproject.toml     2021-07-17 10:34:48.424737200 +0200
+++ new/tinydb-4.5.2/pyproject.toml     2021-09-23 20:06:56.811656200 +0200
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "tinydb"
-version = "4.5.1"
+version = "4.5.2"
 description = "TinyDB is a tiny, document oriented database optimized for your 
happiness :)"
 authors = ["Markus Siemens <[email protected]>"]
 license = "MIT"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinydb-4.5.1/setup.py new/tinydb-4.5.2/setup.py
--- old/tinydb-4.5.1/setup.py   2021-07-17 10:35:20.331332700 +0200
+++ new/tinydb-4.5.2/setup.py   2021-09-23 20:07:31.813995800 +0200
@@ -12,7 +12,7 @@
 
 setup_kwargs = {
     'name': 'tinydb',
-    'version': '4.5.1',
+    'version': '4.5.2',
     'description': 'TinyDB is a tiny, document oriented database optimized for 
your happiness :)',
     'long_description': ".. image:: 
https://raw.githubusercontent.com/msiemens/tinydb/master/artwork/logo.png\n    
:scale: 100%\n    :height: 150px\n\n|Build Status| |Coverage| 
|Version|\n\nQuick Links\n***********\n\n- `Example Code`_\n- `Supported Python 
Versions`_\n- `Documentation <http://tinydb.readthedocs.org/>`_\n- `Changelog 
<https://tinydb.readthedocs.io/en/latest/changelog.html>`_\n- `Extensions 
<https://tinydb.readthedocs.io/en/latest/extensions.html>`_\n- 
`Contributing`_\n\nIntroduction\n************\n\nTinyDB is a lightweight 
document oriented database optimized for your happiness :)\nIt's written in 
pure Python and has no external dependencies. The target are\nsmall apps that 
would be blown away by a SQL-DB or an external database server.\n\nTinyDB 
is:\n\n- **tiny:** The current source code has 1800 lines of code (with about 
40%\n  documentation) and 1600 lines tests.\n\n- **document oriented:** Like 
MongoDB_, you can store any document\n  (represented as ``dict``) in 
 TinyDB.\n\n- **optimized for your happiness:** TinyDB is designed to be simple 
and\n  fun to use by providing a simple and clean API.\n\n- **written in pure 
Python:** TinyDB neither needs an external server (as\n  e.g. `PyMongo 
<https://api.mongodb.org/python/current/>`_) nor any dependencies\n  from 
PyPI.\n\n- **works on Python 3.6+ and PyPy3:** TinyDB works on all modern 
versions of Python\n  and PyPy.\n\n- **powerfully extensible:** You can easily 
extend TinyDB by writing new\n  storages or modify the behaviour of storages 
with Middlewares.\n\n- **100% test coverage:** No explanation needed.\n\nTo 
dive straight into all the details, head over to the `TinyDB 
docs\n<https://tinydb.readthedocs.io/>`_. You can also discuss everything 
related\nto TinyDB like general development, extensions or showcase your 
TinyDB-based\nprojects on the `discussion forum 
<http://forum.m-siemens.de/.>`_.\n\nSupported Python 
Versions\n*************************\n\nTinyDB has been tested with Python 3.6 - 
 3.9 and PyPy3.\n\nExample Code\n************\n\n.. code-block:: python\n\n    
>>> from tinydb import TinyDB, Query\n    >>> db = TinyDB('/path/to/db.json')\n 
   >>> db.insert({'int': 1, 'char': 'a'})\n    >>> db.insert({'int': 1, 'char': 
'b'})\n\nQuery Language\n==============\n\n.. code-block:: python\n\n    >>> 
User = Query()\n    >>> # Search for a field value\n    >>> db.search(User.name 
== 'John')\n    [{'name': 'John', 'age': 22}, {'name': 'John', 'age': 37}]\n\n  
  >>> # Combine two queries with logical and\n    >>> db.search((User.name == 
'John') & (User.age <= 30))\n    [{'name': 'John', 'age': 22}]\n\n    >>> # 
Combine two queries with logical or\n    >>> db.search((User.name == 'John') | 
(User.name == 'Bob'))\n    [{'name': 'John', 'age': 22}, {'name': 'John', 
'age': 37}, {'name': 'Bob', 'age': 42}]\n\n    >>> # More possible comparisons: 
 !=  <  >  <=  >=\n    >>> # More possible checks: where(...).matches(regex), 
where(...).test(your_test_func)\n\nTables\n======\n\n.. c
 ode-block:: python\n\n    >>> table = db.table('name')\n    >>> 
table.insert({'value': True})\n    >>> table.all()\n    [{'value': 
True}]\n\nUsing Middlewares\n=================\n\n.. code-block:: python\n\n    
>>> from tinydb.storages import JSONStorage\n    >>> from tinydb.middlewares 
import CachingMiddleware\n    >>> db = TinyDB('/path/to/db.json', 
storage=CachingMiddleware(JSONStorage))\n\n\nContributing\n************\n\nWhether
 reporting bugs, discussing improvements and new ideas or writing\nextensions: 
Contributions to TinyDB are welcome! Here's how to get started:\n\n1. Check for 
open issues or open a fresh issue to start a discussion around\n   a feature 
idea or a bug\n2. Fork `the repository <https://github.com/msiemens/tinydb/>`_ 
on Github,\n   create a new branch off the `master` branch and start making 
your changes\n   (known as `GitHub Flow 
<https://guides.github.com/introduction/flow/index.html>`_)\n3. Write a test 
which shows that the bug was fixed or that the featur
 e works\n   as expected\n4. Send a pull request and bug the maintainer until 
it gets merged and\n   published ???\n\n.. |Build Status| image:: 
https://img.shields.io/azure-devops/build/msiemens/3e5baa75-12ec-43ac-9728-89823ee8c7e2/2.svg?style=flat-square\n
   :target: https://dev.azure.com/msiemens/github/_build?definitionId=2\n.. 
|Coverage| image:: 
http://img.shields.io/coveralls/msiemens/tinydb.svg?style=flat-square\n   
:target: https://coveralls.io/r/msiemens/tinydb\n.. |Version| image:: 
http://img.shields.io/pypi/v/tinydb.svg?style=flat-square\n   :target: 
https://pypi.python.org/pypi/tinydb/\n.. _Buzhug: 
http://buzhug.sourceforge.net/\n.. _CodernityDB: 
https://github.com/perchouli/codernitydb\n.. _MongoDB: http://mongodb.org/\n";,
     'author': 'Markus Siemens',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinydb-4.5.1/tinydb/table.py 
new/tinydb-4.5.2/tinydb/table.py
--- old/tinydb-4.5.1/tinydb/table.py    2021-07-17 10:34:48.424737200 +0200
+++ new/tinydb-4.5.2/tinydb/table.py    2021-09-23 20:06:56.811656200 +0200
@@ -494,6 +494,25 @@
         :param doc_ids: a list of document IDs
         :returns: a list containing the removed documents' ID
         """
+        if doc_ids is not None:
+            # This function returns the list of IDs for the documents that have
+            # been removed. When removing documents identified by a set of
+            # document IDs, it's this list of document IDs we need to return
+            # later.
+            # We convert the document ID iterator into a list so we can both
+            # use the document IDs to remove the specified documents as well as
+            # to return the list of affected document IDs
+            removed_ids = list(doc_ids)
+
+            def updater(table: dict):
+                for doc_id in removed_ids:
+                    table.pop(doc_id)
+
+            # Perform the remove operation
+            self._update_table(updater)
+
+            return removed_ids
+
         if cond is not None:
             removed_ids = []
 
@@ -521,25 +540,6 @@
 
             # Perform the remove operation
             self._update_table(updater)
-
-            return removed_ids
-
-        if doc_ids is not None:
-            # This function returns the list of IDs for the documents that have
-            # been removed. When removing documents identified by a set of
-            # document IDs, it's this list of document IDs we need to return
-            # later.
-            # We convert the document ID iterator into a list so we can both
-            # use the document IDs to remove the specified documents as well as
-            # to return the list of affected document IDs
-            removed_ids = list(doc_ids)
-
-            def updater(table: dict):
-                for doc_id in removed_ids:
-                    table.pop(doc_id)
-
-            # Perform the remove operation
-            self._update_table(updater)
 
             return removed_ids
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinydb-4.5.1/tinydb/version.py 
new/tinydb-4.5.2/tinydb/version.py
--- old/tinydb-4.5.1/tinydb/version.py  2021-07-17 10:34:48.424737200 +0200
+++ new/tinydb-4.5.2/tinydb/version.py  2021-09-23 20:06:56.811656200 +0200
@@ -1 +1 @@
-__version__ = '4.5.1'
+__version__ = '4.5.2'

++++++ v4.5.1.tar.gz -> v4.5.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinydb-4.5.1/docs/changelog.rst 
new/tinydb-4.5.2/docs/changelog.rst
--- old/tinydb-4.5.1/docs/changelog.rst 2021-07-17 10:34:14.000000000 +0200
+++ new/tinydb-4.5.2/docs/changelog.rst 2021-09-23 20:03:11.000000000 +0200
@@ -12,6 +12,14 @@
 
 - *nothing yet*
 
+v4.5.2 (2021-09-23)
+^^^^^^^^^^^^^^^^^^^
+
+- Fix: Make ``Table.delete()``'s argument priorities consistent with
+  other table methods. This means that if you pass both ``cond`` as
+  well as ``doc_ids`` to ``Table.delete()``, the latter will be prefered
+  (see `issue 424 <https://github.com/msiemens/tinydb/issues/424>`__)
+
 v4.5.1 (2021-07-17)
 ^^^^^^^^^^^^^^^^^^^
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinydb-4.5.1/pyproject.toml 
new/tinydb-4.5.2/pyproject.toml
--- old/tinydb-4.5.1/pyproject.toml     2021-07-17 10:34:14.000000000 +0200
+++ new/tinydb-4.5.2/pyproject.toml     2021-09-23 20:03:11.000000000 +0200
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "tinydb"
-version = "4.5.1"
+version = "4.5.2"
 description = "TinyDB is a tiny, document oriented database optimized for your 
happiness :)"
 authors = ["Markus Siemens <[email protected]>"]
 license = "MIT"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinydb-4.5.1/tinydb/table.py 
new/tinydb-4.5.2/tinydb/table.py
--- old/tinydb-4.5.1/tinydb/table.py    2021-07-17 10:34:14.000000000 +0200
+++ new/tinydb-4.5.2/tinydb/table.py    2021-09-23 20:03:11.000000000 +0200
@@ -494,6 +494,25 @@
         :param doc_ids: a list of document IDs
         :returns: a list containing the removed documents' ID
         """
+        if doc_ids is not None:
+            # This function returns the list of IDs for the documents that have
+            # been removed. When removing documents identified by a set of
+            # document IDs, it's this list of document IDs we need to return
+            # later.
+            # We convert the document ID iterator into a list so we can both
+            # use the document IDs to remove the specified documents as well as
+            # to return the list of affected document IDs
+            removed_ids = list(doc_ids)
+
+            def updater(table: dict):
+                for doc_id in removed_ids:
+                    table.pop(doc_id)
+
+            # Perform the remove operation
+            self._update_table(updater)
+
+            return removed_ids
+
         if cond is not None:
             removed_ids = []
 
@@ -521,25 +540,6 @@
 
             # Perform the remove operation
             self._update_table(updater)
-
-            return removed_ids
-
-        if doc_ids is not None:
-            # This function returns the list of IDs for the documents that have
-            # been removed. When removing documents identified by a set of
-            # document IDs, it's this list of document IDs we need to return
-            # later.
-            # We convert the document ID iterator into a list so we can both
-            # use the document IDs to remove the specified documents as well as
-            # to return the list of affected document IDs
-            removed_ids = list(doc_ids)
-
-            def updater(table: dict):
-                for doc_id in removed_ids:
-                    table.pop(doc_id)
-
-            # Perform the remove operation
-            self._update_table(updater)
 
             return removed_ids
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinydb-4.5.1/tinydb/version.py 
new/tinydb-4.5.2/tinydb/version.py
--- old/tinydb-4.5.1/tinydb/version.py  2021-07-17 10:34:14.000000000 +0200
+++ new/tinydb-4.5.2/tinydb/version.py  2021-09-23 20:03:11.000000000 +0200
@@ -1 +1 @@
-__version__ = '4.5.1'
+__version__ = '4.5.2'

Reply via email to