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:
@@ -1,3 +1,75 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 18 07:13:46 UTC 2021 - pgajdos@suse.com
|
||||
|
||||
- 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
|
||||
``ImportError`` will be raised if the C extensions are unavailable.
|
||||
See `issue 156
|
||||
<https://github.com/zopefoundation/BTrees/issues/156>`_.
|
||||
* Make the BTree objects (``BTree``, ``TreeSet``, ``Set``, ``Bucket``)
|
||||
of each module actually provide the interfaces defined in
|
||||
``BTrees.Interfaces``. Previously, they provided no interfaces.
|
||||
* Make all the BTree and Bucket objects instances of
|
||||
``collections.abc.MutableMapping`` (that is, ``isinstance(btree,
|
||||
MutableMapping)`` is now true; no actual inheritance has changed).
|
||||
As part of this, they now provide the ``popitem()`` method.
|
||||
* Make all the TreeSet and Set objects instances of
|
||||
``collections.abc.MutableSet`` (that is, ``isinstance(tree_set,
|
||||
MutableSet)`` is now true; no actual inheritance has changed).
|
||||
As part of this, they now provide several more methods, including
|
||||
``isdisjoint``, ``discard``, and ``pop``, and support in-place
|
||||
mutation operators such as ``tree_set |= other``, ``tree_set +=
|
||||
other``, ``tree_set -= other`` and ``tree_set ^= other``. See `issue
|
||||
121 <https://github.com/zopefoundation/BTrees/issues/121>`_.
|
||||
* Update the definitions of ``ISized`` and ``IReadSequence`` to simply
|
||||
be ``zope.interface.common.collections.ISized`` and
|
||||
``zope.interface.common.sequence.IMinimalSequence`` respectively.
|
||||
* Remove the ``__nonzero__`` interface method from ``ICollection``. No
|
||||
objects actually implemented such a method; instead, the boolean value
|
||||
is typically taken from ``__len__``.
|
||||
* Adjust the definition of ``ISet`` to produce the same resolution
|
||||
order under the C3 and legacy orderings. This means that the legacy
|
||||
order has changed slightly, but that this package emits no warnings
|
||||
when ``ZOPE_INTERFACE_LOG_CHANGED_IRO=1``. Note that the legacy
|
||||
order was not being used for these objects because the C3 ordering
|
||||
was still consistent; it could only be obtained using
|
||||
``ZOPE_INTERFACE_USE_LEGACY_IRO=1``. See `PR 159
|
||||
<https://github.com/zopefoundation/BTrees/pull/159>`_ for all the
|
||||
interface updates.
|
||||
* Fix the ``get``, ``setdefault`` and ``pop`` methods, as well as the
|
||||
``in`` operator, to not suppress ``POSKeyError`` if the object or
|
||||
subobjects are corrupted. Previously, such errors were logged by
|
||||
ZODB, but not propagated. See `issue 161
|
||||
<https://github.com/zopefoundation/BTrees/issues/161>`_.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 09:19:56 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user