2013-08-08 11:22:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-BTrees
|
|
|
|
#
|
2023-01-02 14:29:08 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-11-07 08:43:02 +00:00
|
|
|
# Copyright (c) 2015-2022 LISA GmbH, Bingen, Germany.
|
2013-08-08 11:22:25 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-10 11:47:44 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-08-08 11:22:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-06-11 07:55:53 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2013-08-08 11:22:25 +00:00
|
|
|
Name: python-BTrees
|
2023-11-02 23:49:34 +00:00
|
|
|
Version: 5.1
|
2013-08-08 11:22:25 +00:00
|
|
|
Release: 0
|
2017-07-10 13:51:20 +00:00
|
|
|
Summary: Persistent B-tree object containers for Python
|
2013-08-08 11:22:25 +00:00
|
|
|
License: ZPL-2.1
|
2020-04-14 09:27:37 +00:00
|
|
|
URL: https://github.com/zopefoundation/BTrees
|
2017-06-29 08:42:37 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/B/BTrees/BTrees-%{version}.tar.gz
|
2023-02-16 21:06:10 +00:00
|
|
|
BuildRequires: %{python_module devel >= 3.7}
|
2019-10-14 11:43:22 +00:00
|
|
|
BuildRequires: %{python_module persistent-devel >= 4.1.0}
|
Accepting request 895156 from home:pgajdos:python
- version update to 4.8.0
* Make Python 2 forbid the use of type objects as keys (unless a
custom metaclass is used that implements comparison as required by
BTrees.) On Python 3, types are not orderable so they were already
forbidden, but on Python 2 types can be ordered by memory address,
which makes them unsuitable for use as keys. See `issue
<https://github.com/zopefoundation/BTrees/issues/153>`_.
* Make the ``multiunion``, ``union``, ``intersection``, and
``difference`` functions accept arbitrary Python iterables (that
iterate across the correct types). Previously, the Python
implementation allowed this, but the C implementation only allowed
objects (like ``TreeSet`` or ``Bucket``) defined in the same module
providing the function. See `issue 24
<https://github.com/zopefoundation/BTrees/issues/24>`_.
* Fix persistency bug in the Python version
(`#118 <https://github.com/zopefoundation/BTrees/issues/118>`_).
* Fix ``Tree.__setstate__`` to no longer accept children besides
tree or bucket types to prevent crashes. See `PR 143
<https://github.com/zopefoundation/BTrees/pull/143>`_ for details.
* Make BTrees, TreeSet, Set and Buckets implements the ``__and__``,
``__or__`` and ``__sub__`` special methods as shortcuts for
``BTrees.Interfaces.IMerge.intersection``,
``BTrees.Interfaces.IMerge.union`` and
``BTrees.Interfaces.IMerge.difference``.
* Add support for Python 3.9.
* Build and upload aarch64 wheels.
* Make a value of ``0`` in the ``PURE_PYTHON`` environment variable
require the C extensions (except on PyPy). Previously, and if this
variable is unset, missing or unusable C extensions would be
silently ignored. With this variable set to ``0``, an
OBS-URL: https://build.opensuse.org/request/show/895156
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-BTrees?expand=0&rev=22
2021-05-24 12:11:34 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-10-14 11:43:22 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-06-29 08:42:37 +00:00
|
|
|
BuildRequires: %{python_module transaction}
|
2019-10-14 11:43:22 +00:00
|
|
|
BuildRequires: %{python_module zope.interface}
|
2019-02-10 11:47:44 +00:00
|
|
|
BuildRequires: %{python_module zope.testrunner}
|
2019-10-14 11:43:22 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-02-10 11:47:44 +00:00
|
|
|
Requires: python-persistent >= 4.1.0
|
2017-06-29 08:42:37 +00:00
|
|
|
Requires: python-zope.interface
|
2022-01-13 07:09:23 +00:00
|
|
|
Provides: %{name}-doc = %{version}-%{release}
|
2020-04-14 09:27:37 +00:00
|
|
|
Obsoletes: %{name}-doc
|
2017-06-29 08:42:37 +00:00
|
|
|
%python_subpackages
|
2013-08-08 11:22:25 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains a generic BTrees implementation for Python. It is
|
|
|
|
mainly used by the ZODB, though.
|
|
|
|
|
|
|
|
Note that the data manager API, BTrees.interfaces.IDataManager, is
|
|
|
|
syntactically simple, but semantically complex. The semantics were not easy to
|
|
|
|
express in the interface. This could probably use more work. The semantics are
|
|
|
|
presented in detail through examples of a sample data manager in
|
|
|
|
BTrees.tests.test_SampleDataManager.
|
|
|
|
|
2017-06-29 08:42:37 +00:00
|
|
|
%package devel
|
2017-07-10 13:51:20 +00:00
|
|
|
Summary: Development files for the python-BTrees module
|
2013-08-08 11:22:25 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
2017-06-29 08:42:37 +00:00
|
|
|
%description devel
|
2013-08-08 11:22:25 +00:00
|
|
|
This package contains the files needed for binding the %{name} C module.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n BTrees-%{version}
|
2017-06-29 08:42:37 +00:00
|
|
|
rm -rf BTrees.egg-info
|
2013-08-08 11:22:25 +00:00
|
|
|
|
|
|
|
%build
|
2017-06-29 08:42:37 +00:00
|
|
|
%python_build
|
2013-08-08 11:22:25 +00:00
|
|
|
|
|
|
|
%install
|
2017-06-29 08:42:37 +00:00
|
|
|
%python_install
|
|
|
|
%{python_expand rm %{buildroot}%{$python_sitearch}/BTrees/*.c
|
2019-10-14 11:43:22 +00:00
|
|
|
%fdupes %{buildroot}%{$python_sitearch}
|
2017-06-29 08:42:37 +00:00
|
|
|
}
|
2013-08-08 11:22:25 +00:00
|
|
|
|
|
|
|
%check
|
2022-11-07 08:43:02 +00:00
|
|
|
# the failing tests would require this step which setup.py test did:
|
Accepting request 895156 from home:pgajdos:python
- version update to 4.8.0
* Make Python 2 forbid the use of type objects as keys (unless a
custom metaclass is used that implements comparison as required by
BTrees.) On Python 3, types are not orderable so they were already
forbidden, but on Python 2 types can be ordered by memory address,
which makes them unsuitable for use as keys. See `issue
<https://github.com/zopefoundation/BTrees/issues/153>`_.
* Make the ``multiunion``, ``union``, ``intersection``, and
``difference`` functions accept arbitrary Python iterables (that
iterate across the correct types). Previously, the Python
implementation allowed this, but the C implementation only allowed
objects (like ``TreeSet`` or ``Bucket``) defined in the same module
providing the function. See `issue 24
<https://github.com/zopefoundation/BTrees/issues/24>`_.
* Fix persistency bug in the Python version
(`#118 <https://github.com/zopefoundation/BTrees/issues/118>`_).
* Fix ``Tree.__setstate__`` to no longer accept children besides
tree or bucket types to prevent crashes. See `PR 143
<https://github.com/zopefoundation/BTrees/pull/143>`_ for details.
* Make BTrees, TreeSet, Set and Buckets implements the ``__and__``,
``__or__`` and ``__sub__`` special methods as shortcuts for
``BTrees.Interfaces.IMerge.intersection``,
``BTrees.Interfaces.IMerge.union`` and
``BTrees.Interfaces.IMerge.difference``.
* Add support for Python 3.9.
* Build and upload aarch64 wheels.
* Make a value of ``0`` in the ``PURE_PYTHON`` environment variable
require the C extensions (except on PyPy). Previously, and if this
variable is unset, missing or unusable C extensions would be
silently ignored. With this variable set to ``0``, an
OBS-URL: https://build.opensuse.org/request/show/895156
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-BTrees?expand=0&rev=22
2021-05-24 12:11:34 +00:00
|
|
|
#%%{python_expand cp build/lib.linux-*/BTrees/*.so src/BTrees/}
|
|
|
|
# it can be overcome with --import-mode=append
|
2022-11-07 08:43:02 +00:00
|
|
|
%pytest_arch -k 'not testPurePython and not testSubclassesCanHaveAttributes and not testCannotSetArbitraryAttributeOnBase'
|
2013-08-08 11:22:25 +00:00
|
|
|
|
2017-06-29 08:42:37 +00:00
|
|
|
%files %{python_files}
|
2019-02-10 11:47:44 +00:00
|
|
|
%doc CHANGES.rst README.rst PKG-INFO
|
|
|
|
%license COPYRIGHT.txt LICENSE.txt
|
2017-06-29 08:42:37 +00:00
|
|
|
%exclude %{python_sitearch}/BTrees/*.h
|
2022-11-07 09:55:29 +00:00
|
|
|
%{python_sitearch}/BTrees
|
|
|
|
%{python_sitearch}/BTrees-%{version}*-info
|
2013-08-08 11:22:25 +00:00
|
|
|
|
2017-06-29 08:42:37 +00:00
|
|
|
%files %{python_files devel}
|
|
|
|
%{python_sitearch}/BTrees/*.h
|
2013-08-08 11:22:25 +00:00
|
|
|
|
|
|
|
%changelog
|