15
0
forked from pool/python-zict
Files
python-zict/python-zict.spec
Steve Kowalik 2b80dd0ed3 Accepting request 1110150 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 3.0.0
  * The library is now almost completely thread-safe (#82, #90,
    #92, #93)
  * Dropped support for Python 3.7 (#84)
  * File.__getitem__ now returns bytearray instead of bytes. This
    prevents a memcpy when deserializing numpy arrays with dask.
    (#74)
  * Removed dependency from heapdict; sped up LRU (#77)
  * Fixed broken LRU state when the underlying mapping starts
    non-empty. (#77)
  * File and LMDB now support pathlib.Path and pytest’s tmpdir
    (#78)
  * LMDB now uses memory-mapped I/O on MacOSX and is usable on
    Windows (#78)
  * LRU and Buffer now support delayed eviction (#87)
  * New object InsertionSortedSet (#87)
  * All mappings now return proper KeysView, ItemsView, and
    ValuesView objects from their keys(), items(), and values()
    methods (#93)
  * File, LMDB, and Zip now behave coherently with unexpected
    key/value types (#95)
  * Zip.__contains__ no longer reads the value from disk (#95)
  * Zip.__setitem__ will now raise when updating an
    already-existing key instead of quietly corrupting the mapping
    (#95)
  * Can now change LRU.n on the fly. Added LRU.offset attribute.
    Added accessors to n and offset to Buffer. (#101)
  * New object AsyncBuffer; new method LRU.get_all_or_nothing()
    (#88)

OBS-URL: https://build.opensuse.org/request/show/1110150
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zict?expand=0&rev=18
2023-09-11 04:55:30 +00:00

70 lines
2.0 KiB
RPMSpec

#
# spec file for package python-zict
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
Name: python-zict
Version: 3.0.0
Release: 0
Summary: Mutable mapping tools
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/dask/zict/
Source: https://files.pythonhosted.org/packages/source/z/zict/zict-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module lmdb}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
Mutable Mapping interfaces for python.
%prep
%setup -q -n zict-%{version}
# needs more memory than what we have on generic hosts
rm zict/tests/test_lmdb.py
# ignore pytest-repeat marker: we don't stress test on OBS
sed -i '/markers =/ a \ repeat: Ignore me' setup.cfg
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/zict
%{python_sitelib}/zict-%{version}.dist-info
%changelog