From 411c51db4279cce0c8273fe80ccf04657f345692b17c24c29020c50863670f92 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 10 Nov 2025 08:26:26 +0000 Subject: [PATCH] - update to 6.1: * get_transaction(). Use transaction.get() instead. transaction.commit() is a shortcut spelling of transaction.get().commit(), and transaction.abort() of transaction.get().abort(). Note that importing ZODB no longer installs get_transaction as a name in Python's __builtin__ module either. * The begin() method of Transaction objects. Use the begin() method of a transaction manager instead. transaction.begin() is a shortcut spelling to call the default transaction manager's begin() method. * The dt argument to Connection.cacheMinimize(). * The Connection.cacheFullSweep() method. Use cacheMinimize() instead. * The Connection.getTransaction() method. Pass a transaction manager to DB.open() instead. * The Connection.getLocalTransaction() method. Pass a transaction manager to DB.open() instead. * The cache_deactivate_after and version_cache_deactivate_after arguments to the DB constructor. * The temporary, force, and waitflag arguments to DB.open(). DB.open() no longer blocks (there's no longer a fixed limit on the number of open connections). * The transaction and txn_mgr``arguments to ``DB.open(). Use the transaction_manager argument instead. * The getCacheDeactivateAfter, setCacheDeactivateAfter, getVersionCacheDeactivateAfter and setVersionCacheDeactivateAfter methods of DB. - Update to 5.8.0: - Update to 5.7.0: OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ZODB?expand=0&rev=37 --- .gitattributes | 23 +++++ .gitignore | 1 + python-ZODB.changes | 216 ++++++++++++++++++++++++++++++++++++++++++++ python-ZODB.spec | 120 ++++++++++++++++++++++++ zodb-6.0.1.tar.gz | 3 + zodb-6.1.tar.gz | 3 + 6 files changed, 366 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-ZODB.changes create mode 100644 python-ZODB.spec create mode 100644 zodb-6.0.1.tar.gz create mode 100644 zodb-6.1.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-ZODB.changes b/python-ZODB.changes new file mode 100644 index 0000000..015ae3b --- /dev/null +++ b/python-ZODB.changes @@ -0,0 +1,216 @@ +------------------------------------------------------------------- +Mon Nov 10 08:25:49 UTC 2025 - Dirk Müller + +- update to 6.1: + * get_transaction(). Use transaction.get() instead. + transaction.commit() is a shortcut spelling of + transaction.get().commit(), and transaction.abort() of + transaction.get().abort(). Note that importing ZODB no + longer installs get_transaction as a name in Python's + __builtin__ module either. + * The begin() method of Transaction objects. Use the begin() + method of a transaction manager instead. transaction.begin() + is a shortcut spelling to call the default transaction + manager's begin() method. + * The dt argument to Connection.cacheMinimize(). + * The Connection.cacheFullSweep() method. Use cacheMinimize() + instead. + * The Connection.getTransaction() method. Pass a transaction + manager to DB.open() instead. + * The Connection.getLocalTransaction() method. Pass a + transaction manager to DB.open() instead. + * The cache_deactivate_after and version_cache_deactivate_after + arguments to the DB constructor. + * The temporary, force, and waitflag arguments to DB.open(). + DB.open() no longer blocks (there's no longer a fixed limit + on the number of open connections). + * The transaction and txn_mgr``arguments to ``DB.open(). Use + the transaction_manager argument instead. + * The getCacheDeactivateAfter, setCacheDeactivateAfter, + getVersionCacheDeactivateAfter and + setVersionCacheDeactivateAfter methods of DB. + +------------------------------------------------------------------- +Wed Jun 4 15:21:36 UTC 2025 - Nico Krapp + +- fix usage of libalternatives + +------------------------------------------------------------------- +Tue May 13 12:06:18 UTC 2025 - Markéta Machová + +- Update to 6.0.1 + * repozo: fix restoring on stdout. + * repozo: prevent an incorrect "option ignored" warning when running + backup or verify. + * FileStorage: fix restore regression introduced in ZODB 6.0 in #395: + when restoring data records with undo the restore was no longer + emitting backpointers and was emitting duplicate data copies instead. + #409 fixes restore back to emit data records with backpointers for + undo again. +- Add conflict with fstail, since ZODB has a binary with the same name. + +------------------------------------------------------------------- +Tue May 13 06:37:07 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu May 30 12:34:58 UTC 2024 - Markéta Machová + +- Update to 6.0 + * Add support for Python 3.12. + * Drop support for Python 2.7, 3.5, 3.6. + * Fix sorting issue in scripts/space.py. + * FileStorage: fix a rare data corruption when using restore after multiple undos. + * Fix exit code of repozo script in case of verification error. +- Fix deduplication of documentation. + +------------------------------------------------------------------- +Sun Jan 7 16:42:08 UTC 2024 - Dirk Müller + +- update to 5.8.1: + * Fix racetest problems. For details see #376. + * Fix --with-verify argument in script repozo --recover. For + details see #381. + +------------------------------------------------------------------- +Thu Dec 1 20:18:21 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 5.8.0: + * Add support for Python 3.11. + * Expand and refactor tests for race conditions. + +------------------------------------------------------------------- +Wed Sep 7 16:00:22 UTC 2022 - Yogalakshmi Arunachalam + +- Renamed doc dir to docs in spec + +------------------------------------------------------------------- +Wed Sep 7 15:57:07 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 5.7.0: + * Fix TypeError: can't concat str to bytes when running fsoids.py script with Python 3. See issue 350. + * Readd transaction size information to fsdump output; adapt fsstats to fsdump's exchanged order for + size and class information in data records; (fixes #354 _). + Make ``fsdump` callable via Python's -m command line option. + * Fix UnboundLocalError when running fsoids.py script. See issue 285. + * Rework fsrefs script to work significantly faster by optimizing how it does IO. See PR 340. + * Require Python 3 to build the documentation. + * Fix deprecation warnings occurring on Python 3.10. + * Add support for Python 3.9 and 3.10. + +------------------------------------------------------------------- +Thu Apr 14 08:57:22 UTC 2022 - pgajdos@suse.com + +- python-mock is not required for build + +------------------------------------------------------------------- +Fri Jun 12 03:50:06 UTC 2020 - Jason Craig + +- Update to 5.6.0: + * Fix tests with transaction 3.0 (remove patch). + + transaction3.patch + * Fix race with invalidations when starting a new transaction. + * Fix inconsistent resolution order with zope.interface v5. + * Drop support for Python 3.4. + * Add support for Python 3.8. + * See CHANGES.rst for more. + +------------------------------------------------------------------- +Mon May 4 10:50:45 UTC 2020 - Tomáš Chvátal + +- Add patch to work with transaction 3.x: + * transaction3.patch + +------------------------------------------------------------------- +Mon Mar 4 14:15:53 UTC 2019 - Tomáš Chvátal + +- Update to 5.5.1: + * Add support for Python 3.7. + * Bump the dependency on zodbpickle to at least 1.0.1. This is required to avoid a memory leak on Python 2.7. See issue 203. + * Bump the dependency on persistent to at least 4.4.0. + * Make the internal support functions for dealing with OIDs (p64 and u64) somewhat faster and raise more informative exceptions on certain types of bad input. See issue 216. + * Remove support for python setup.py test. It hadn't been working for some time. See issue #218. + * Make the tests run faster by avoiding calls to time.sleep(). +- Drop no longer needed python-ZODB-testsuite.patch + +------------------------------------------------------------------- +Thu Jul 26 10:43:46 UTC 2018 - tchvatal@suse.com + +- Disable tests for now as 16 of them fail + +------------------------------------------------------------------- +Thu Jul 26 10:33:16 UTC 2018 - tchvatal@suse.com + +- Add patch to fix testsuite execution: + * python-ZODB-testsuite.patch + +------------------------------------------------------------------- +Thu Jul 26 10:16:02 UTC 2018 - tchvatal@suse.com + +- Version update to 5.4.0: + * Dropped support for py3.3 and added support for new ones + * ZODB now uses pickle protocol 3 for both Python 2 and Python 3. + * The zodbpickle package provides a zodbpickle.binary string type that should be used in Python 2 to cause binary strings to be saved in a pickle binary format, so they can be loaded correctly in Python 3. Pickle protocol 3 is needed for this to work correctly. + * Object identifiers in persistent references are saved as zodbpickle.binary strings in Python 2, so that they are loaded correctly in Python 3. + * If an object is missing from the index while packing a FileStorage, report its full oid. + * Storage imports are a bit faster. + * Storages can be important from non-seekable sources, like file-wrapped pipes. + +------------------------------------------------------------------- +Fri Aug 25 11:55:40 UTC 2017 - toddrme2178@gmail.com + +- Fix doc package dependencies + +------------------------------------------------------------------- +Tue Aug 15 15:25:19 UTC 2017 - toddrme2178@gmail.com + +- Fix doc package dependency problem + +------------------------------------------------------------------- +Sat Jul 8 07:07:44 UTC 2017 - aloisio@gmx.com + +- Update to 5.2.4 (see CHANGES.rst) +- Converted to single-spec + +------------------------------------------------------------------- +Fri May 15 10:52:45 UTC 2015 - benoit.monin@gmx.fr + +- update to version 4.1.0: + * Fix registration of custom logging level names ("BLATHER", + "TRACE). We have been registering them in the wrong order since + 2004. Before Python 3.4, the stdlib logging module masked the + error by registering them in both directions. + * Add support for Python 3.4. +- additional changes from version 4.0.1: + * Fix POSKeyError during transaction.commit when after + savepoint.rollback. see #16 + * Ensure that the pickler used in PyPy always has a persistent_id + attribute (inst_persistent_id is not present on the pure-Python + pickler). (PR #17) + * Provide better error reporting when trying to load an object on + a closed connection. +- drop fix-for-upstream-test.patch: fixed upstream +- delete backup files in sources +- remove unwanted shebang in python file +- do not set the executable bit of python files +- pass -q to the test to avoid spamming the build log + +------------------------------------------------------------------- +Sat Feb 1 21:17:50 UTC 2014 - os-dev@jacraig.com + +- Add patch to fix test during build. This is fixed upstream for next release. +- Update old package URL. +- Update to 4.0.0 (minor changes from git commit log): + * Try invoking parent close() via super(), hoping to squash ResourceWarning. + Also, avoid shadowing the 'file' builtin / alias with locals. + * Bend over backward to avoid ResourceWarnings. + * Use os.pathsep when constructing $PYTHONPATH (fix test failure on Windows). + * Update to latest 2.2.0 bootstrap.py + * Correctly quote Windows pathnames + +------------------------------------------------------------------- +Sat Aug 3 20:34:31 UTC 2013 - hpj@urpla.net + +- version 4.0.0b3: initial build + diff --git a/python-ZODB.spec b/python-ZODB.spec new file mode 100644 index 0000000..b4c9766 --- /dev/null +++ b/python-ZODB.spec @@ -0,0 +1,120 @@ +# +# spec file for package python-ZODB +# +# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2013 LISA GmbH, Bingen, Germany. +# +# 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/ +# + + +%bcond_without libalternatives +Name: python-ZODB +Version: 6.1 +Release: 0 +Summary: Zope Object Database: object database and persistence +License: ZPL-2.1 +URL: https://github.com/zopefoundation/ZODB +Source: https://files.pythonhosted.org/packages/source/z/zodb/zodb-%{version}.tar.gz +BuildRequires: %{python_module BTrees >= 4.2.0} +BuildRequires: %{python_module ZConfig} +BuildRequires: %{python_module manuel} +BuildRequires: %{python_module persistent-devel >= 4.4.0} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module transaction >= 2.4.0} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module zc.lockfile} +BuildRequires: %{python_module zodbpickle >= 1.0.1} +BuildRequires: %{python_module zope.interface} +BuildRequires: %{python_module zope.testing} +BuildRequires: %{python_module zope.testrunner >= 4.4.6} +BuildRequires: alts +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts +Requires: python-BTrees >= 4.2.0 +Requires: python-ZConfig +Requires: python-persistent >= 4.4.0 +Requires: python-transaction >= 2.4.0 +Requires: python-zc.lockfile +Requires: python-zodbpickle >= 1.0.1 +Requires: python-zope.interface +Conflicts: fstail +BuildArch: noarch +%python_subpackages + +%description +The Zope Object Database provides an object-oriented database for Python that +provides a high-degree of transparency. Applications can take advantage of +object database features with few, if any, changes to application logic. ZODB +includes features such as a plugable storage interface, rich transaction +support, and undo. + +%package -n %{name}-doc +Summary: Zope Object Database: object database and persistence +Provides: %{python_module ZODB-doc = %{version}} + +%description -n %{name}-doc +This package contains documentation files for %{name}. + +%prep +%autosetup -p1 -n zodb-%{version} +# delete backup files +find . -name "*~" -print -delete +# remove unwanted shebang +find src -name "*.py" | xargs sed -i '1 { /^#!/ d }' +rm -rf src/ZODB.egg-info +# do not test docu generating +rm -f src/ZODB/tests/testdocumentation.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%python_clone -a %{buildroot}%{_bindir}/fsdump +%python_clone -a %{buildroot}%{_bindir}/fsoids +%python_clone -a %{buildroot}%{_bindir}/fsrefs +%python_clone -a %{buildroot}%{_bindir}/fstail +%python_clone -a %{buildroot}%{_bindir}/repozo + +mkdir -p %{buildroot}%{_defaultdocdir}/python-ZODB-doc/docs +cp -r docs/* %{buildroot}%{_defaultdocdir}/python-ZODB-doc/docs/ +%fdupes %{buildroot}%{_defaultdocdir}/python-ZODB-doc + +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} zope-testrunner-%{$python_bin_suffix} --test-path=src + +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative fsdump fsoids fsrefs fstail repozo + +# post and postun macro call is not needed with only libalternatives + +%files %{python_files} +%license LICENSE.txt COPYRIGHT.txt +%doc 3.11.txt CHANGES.rst HISTORY.rst README.rst +%{python_sitelib}/ZODB/ +%{python_sitelib}/[Zz][Oo][Dd][Bb]-%{version}*-info +%python_alternative %{_bindir}/fsdump +%python_alternative %{_bindir}/fsoids +%python_alternative %{_bindir}/fsrefs +%python_alternative %{_bindir}/fstail +%python_alternative %{_bindir}/repozo + +%files -n %{name}-doc +%doc %{_defaultdocdir}/python-ZODB-doc + +%changelog diff --git a/zodb-6.0.1.tar.gz b/zodb-6.0.1.tar.gz new file mode 100644 index 0000000..7ccf080 --- /dev/null +++ b/zodb-6.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89f70fae1852123e243547909c311441d63405dec26f6ec42f365a2191db9509 +size 788213 diff --git a/zodb-6.1.tar.gz b/zodb-6.1.tar.gz new file mode 100644 index 0000000..1998535 --- /dev/null +++ b/zodb-6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:854a269f78977cdfda06aff08e93a8aa512c214202caae301222db2ef98ba365 +size 788711