* 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
121 lines
4.2 KiB
RPMSpec
121 lines
4.2 KiB
RPMSpec
#
|
|
# 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
|