From c74263019340ea5afb799fdf2f6509a9766eea5f36afde30c28e3deb8e9b16ee Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 30 Oct 2024 19:49:23 +0000 Subject: [PATCH] - update to 4.8.2: * Fix: Correctly update query cache when search results have changed (see #560). - update to 4.8.1: * Feature: Allow persisting empty tables (see #518). * Fix: Make replacing `doc_id` type work properly (see #545). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tinydb?expand=0&rev=27 --- .gitattributes | 23 +++++ .gitignore | 1 + python-tinydb.changes | 200 ++++++++++++++++++++++++++++++++++++++++++ python-tinydb.spec | 66 ++++++++++++++ tinydb-4.8.0.tar.gz | 3 + tinydb-4.8.2.tar.gz | 3 + 6 files changed, 296 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-tinydb.changes create mode 100644 python-tinydb.spec create mode 100644 tinydb-4.8.0.tar.gz create mode 100644 tinydb-4.8.2.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-tinydb.changes b/python-tinydb.changes new file mode 100644 index 0000000..41131d8 --- /dev/null +++ b/python-tinydb.changes @@ -0,0 +1,200 @@ +------------------------------------------------------------------- +Wed Oct 30 19:48:55 UTC 2024 - Dirk Müller + +- update to 4.8.2: + * Fix: Correctly update query cache when search results have + changed (see #560). +- update to 4.8.1: + * Feature: Allow persisting empty tables (see #518). + * Fix: Make replacing `doc_id` type work properly (see #545). + +------------------------------------------------------------------- +Sat Sep 30 17:01:10 UTC 2023 - Ben Greiner + +- Clean specfile and add sle15_python_module_pythons + (for mygnuhealth) + +------------------------------------------------------------------- +Sat Jul 8 20:34:19 UTC 2023 - Arun Persaud + +- specfile: + * update copyright year + * remove github tar-ball, tests are again included in pypi tar-ball + * switched from setuptools to poetry + +- update to version 4.8.0: + * Feature: Allow retrieve multiple documents by document ID using + Table.get(doc_ids=[...]) (see pull request 504). + +- changes from version 4.7.1: + * Improvement: Improve typing annotations (see pull request 477). + * Improvement: Fix some typos in the documentation (see pull request + 479 and pull request 498). + +------------------------------------------------------------------- +Tue Mar 22 08:34:06 UTC 2022 - Ben Greiner + +- Update to 4.7.0 + * Feature: Allow inserting Document instances using + Table.insert_multiple (see #455). + * Performance: Only convert document IDs of a table when + returning documents. This improves performance the Table.count + and Table.get operations and also for Table.search when only + returning a few documents (see #460). + * Internal change: Run all Table tests JSONStorage in addition to + MemoryStorage. + * Fix: Make using callables as queries work again (see #454) + * Feature: Add map() query operation to apply a transformation to + a document or field when evaluating a query (see PR #445). + * Note: This may break code that queries for a field named map + using the Query APIs property access syntax + * Feature: Add support for typing-extensions v4 +- Disable mypy tests for GNUHealth submission into 15.4 + jsc#SLE-23990 +- This package needs typing-extensions if used with Python 3.6 + +------------------------------------------------------------------- +Fri Nov 19 13:03:12 UTC 2021 - pgajdos@suse.com + +- 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) + +------------------------------------------------------------------- +Fri Aug 27 11:09:53 UTC 2021 - pgajdos@suse.com + +- version update to 4.5.1 + v4.5.1 (2021-07-17) + ^^^^^^^^^^^^^^^^^^^ + - Fix: Correctly install ``typing-extensions`` on Python 3.7 + (see `issue 413 `__) + v4.5.0 (2021-06-25) + ^^^^^^^^^^^^^^^^^^^ + - Feature: Better type hinting/IntelliSense for PyCharm, VS Code and MyPy + (see `issue 372 `__). + PyCharm and VS Code should work out of the box, for MyPy see + :ref:`MyPy Type Checking ` +- actually test the package + +------------------------------------------------------------------- +Sun Apr 4 23:28:01 UTC 2021 - Arun Persaud + +- specfile: + * update copyright year + +- update to version 4.4.0: + * Feature: Add operation for searching for all documents that match + a dict fragment (see issue 300) + * Fix: Correctly handle queries that use fields that are also Query + methods, e.g. Query()['test'] for searching for documents with a + test field (see issue 373) + +- changes from version 4.3.0: + * Feature: Add operation for updating multiple documents: + update_multiple (see issue 346) + * Improvement: Expose type information for MyPy typechecking (PEP + 561) (see pull request 352) + +------------------------------------------------------------------- +Sat Oct 10 18:44:41 UTC 2020 - Arun Persaud + +- update to version 4.2.0: + * Feature: Add support for specifying document IDs during insertion + (see issue 303) + * Internal change: Use OrderedDict.move_to_end() in the query cache + (see issue 338) + +------------------------------------------------------------------- +Thu Sep 24 12:08:57 UTC 2020 - Axel Braun + +- Version 4.1.1 + group added to .spec file (RPMLINT complain) + Python 3 only + +------------------------------------------------------------------- +Sun Dec 29 21:16:42 UTC 2019 - Arun Persaud + +- update to version 3.15.2: + * Fix: handle Query().search and Query().matches with non-string + values correctly (see a forum post by foprel). + +------------------------------------------------------------------- +Sat Nov 9 14:37:54 UTC 2019 - Arun Persaud + +- update to version 3.15.1: + * Internal change: fix missing values handling for LRUCache + +------------------------------------------------------------------- +Sat Oct 19 16:21:05 UTC 2019 - Arun Persaud + +- specfile: + * be more specific in %files section + +- update to version 3.15.0: + * Feature: allow setting the parameters of TinyDB’s default table + (see issue 278) + +- changes from version 3.14.2: + * Internal change: support correct iteration for LRUCache objects + +------------------------------------------------------------------- +Mon Sep 16 13:23:27 UTC 2019 - Tomáš Chvátal + +- Update to 3.14.1: + * More tes fixes + * Deprecate ujson support + * Fixed various deprecation warnings + +------------------------------------------------------------------- +Sun Jun 2 21:17:44 UTC 2019 - Jan Engelhardt + +- Avoid name repetition in summary. +- Ensure neutrality of description. + +------------------------------------------------------------------- +Sat May 11 12:25:49 UTC 2019 - John Vandenberg + +- Prevent use with python-json +- Remove unnecessary build dependencies +- Add optional build dependency PyYAML +- Trim summary and description +- Use fdupes +- Update to v3.13.0 + +------------------------------------------------------------------- +Fri Apr 27 17:24:10 UTC 2018 - arun@gmx.de + +- specfile: + * LICENSE now included in tar-ball + +- update to version 3.9.0: + * Feature: Allow setting a table class for single table only (see + issue 197) + * Internal change: call fsync after flushing JSONStorage (see issue + 208) + +- changes from version 3.8.1: + * Bugfix: Don't install tests as a package anymore (see pull request + #195) + +- changes from version 3.8.0: + * Feature: Allow disabling the query cache with db.table(name, + cache_size=0) (see pull request #187) + * Feature: Add db.write_back(docs) for replacing documents (see pull + request #184) + +------------------------------------------------------------------- +Wed Apr 4 21:54:42 UTC 2018 - arun@gmx.de + +- update to single-spec + +- specfile: + * added tests + * added license + +------------------------------------------------------------------- +Thu Feb 1 01:57:43 UTC 2018 - jchoy@suse.com + +- Initial tinydb package diff --git a/python-tinydb.spec b/python-tinydb.spec new file mode 100644 index 0000000..046f6cc --- /dev/null +++ b/python-tinydb.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-tinydb +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-tinydb +Version: 4.8.2 +Release: 0 +Summary: A document-oriented database +License: MIT +Group: Productivity/Databases/Servers +URL: https://github.com/msiemens/tinydb +Source: https://files.pythonhosted.org/packages/source/t/tinydb/tinydb-%{version}.tar.gz +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module pytest} +BuildRequires: dos2unix +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +TinyDB is a document oriented database written in +pure Python and has no external dependencies. +The target are small apps that would be “blown away” by a SQL-DB or an +external database server. + +%prep +%setup -q -n tinydb-%{version} +chmod a-x LICENSE +dos2unix LICENSE + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/tinydb +%{python_sitelib}/tinydb-%{version}*-info + +%changelog diff --git a/tinydb-4.8.0.tar.gz b/tinydb-4.8.0.tar.gz new file mode 100644 index 0000000..d9ec202 --- /dev/null +++ b/tinydb-4.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6dd686a9c5a75dfa9280088fd79a419aefe19cd7f4bd85eba203540ef856d564 +size 32178 diff --git a/tinydb-4.8.2.tar.gz b/tinydb-4.8.2.tar.gz new file mode 100644 index 0000000..099219c --- /dev/null +++ b/tinydb-4.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7dfc39b8d7fda7a1ca62a8dbb449ffd340a117c1206b68c50b1a481fb95181d +size 32566