python-persistent/python-persistent.spec
Hans-Peter Jansen 85b88baf1a Accepting request 915761 from home:pgajdos:python
- version update to 4.7.0
  4.7.0 (2021-04-13)
  ==================
  - Add support for Python 3.9.
  - Move from Travis CI to Github Actions.
  - Supply manylinux wheels for aarch64 (ARM).
  - Fix the pure-Python implementation to activate a ghost object
    when setting its ``__class__`` and ``__dict__``. This matches the
    behaviour of the C implementation. See `issue 155
    <https://github.com/zopefoundation/persistent/issues/155>`_.
  - Fix the CFFI cache implementation (used on CPython when
    ``PURE_PYTHON=1``) to not print unraisable ``AttributeErrors`` from
    ``_WeakValueDictionary`` during garbage collection. See `issue 150
    <https://github.com/zopefoundation/persistent/issues/150>`_.
  - Make the pure-Python implementation of the cache run a garbage
    collection (``gc.collect()``) on ``full_sweep``, ``incrgc`` and
    ``minimize`` *if* it detects that an object that was weakly
    referenced has been ejected. This solves issues on PyPy with ZODB raising
    ``ConnectionStateError`` when there are persistent
    ``zope.interface`` utilities/adapters registered. This partly
    reverts a change from release 4.2.3.
  4.6.4 (2020-03-26)
  ==================
  - Fix an overly specific test failure using zope.interface 5. See
    `issue 144 <https://github.com/zopefoundation/persistent/issues/144>`_.
  - Fix two reference leaks that could theoretically occur as the result
    of obscure errors. See `issue 143 <https://github.com/zopefoundation/persistent/issues/143>`
- %check: use %pyunittest rpm macro

OBS-URL: https://build.opensuse.org/request/show/915761
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-persistent?expand=0&rev=26
2021-09-02 17:23:05 +00:00

86 lines
2.6 KiB
RPMSpec

#
# spec file for package python-persistent
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2013-2019 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-persistent
Version: 4.7.0
Release: 0
Summary: Translucent persistent objects
License: ZPL-2.1
URL: https://github.com/zopefoundation/persistent
Source: https://files.pythonhosted.org/packages/source/p/persistent/persistent-%{version}.tar.gz
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module manuel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module zope.interface}
BuildRequires: %{python_module zope.testrunner}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cffi
Requires: python-zope.interface
%python_subpackages
%description
This package contains a generic persistence implementation for Python. It forms
the core protocol for making objects interact "transparently" with a database
such as the ZODB.
%package devel
Summary: Translucent persistent objects
Requires: %{name} = %{version}
Requires: python-devel
%description devel
This package contains the files needed for binding the %{name} C module.
%prep
%setup -q -n persistent-%{version}
rm -rf persistent.egg-info
%build
%python_build
%install
%python_install
# don't bother with development files
%{python_expand rm %{buildroot}%{$python_sitearch}/persistent/*.c
%fdupes %{buildroot}%{$python_sitearch}
}
%check
old=persistent
new=persistent_hide
mv $old $new
sed -i "s:<$old.test:<$new.test:" persistent_hide/tests/test_persistence.py
%pyunittest_arch discover -v
%files %{python_files}
%license LICENSE.txt
%doc CHANGES.rst COPYRIGHT.txt README.rst
%exclude %{python_sitearch}/persistent/*.h
%{python_sitearch}/*
%files %{python_files devel}
%dir %{python_sysconfig_path include}/persistent
%{python_sysconfig_path include}/persistent/*.h
%{python_sitearch}/persistent/*.h
%changelog