15
0
forked from pool/python-BTrees

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
This commit is contained in:
2021-05-24 12:11:34 +00:00
committed by Git OBS Bridge
parent 7bcd90ba99
commit 46e727a713
4 changed files with 82 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-BTrees
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-BTrees
Version: 4.7.2
Version: 4.8.0
Release: 0
Summary: Persistent B-tree object containers for Python
License: ZPL-2.1
@@ -27,6 +27,7 @@ URL: https://github.com/zopefoundation/BTrees
Source: https://files.pythonhosted.org/packages/source/B/BTrees/BTrees-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module persistent-devel >= 4.1.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module transaction}
BuildRequires: %{python_module zope.interface}
@@ -69,7 +70,10 @@ rm -rf BTrees.egg-info
}
%check
%python_exec setup.py -q test
# testPurePython tests would require this step which setup.py test did:
#%%{python_expand cp build/lib.linux-*/BTrees/*.so src/BTrees/}
# it can be overcome with --import-mode=append
%pytest_arch -k 'not testPurePython'
%files %{python_files}
%doc CHANGES.rst README.rst PKG-INFO