2018-08-06 21:02:52 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-zope.cachedescriptors
|
|
|
|
|
#
|
2025-02-25 20:16:28 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-08-06 21:02:52 +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.
|
|
|
|
|
|
2018-12-04 14:16:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2018-08-06 21:02:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-zope.cachedescriptors
|
2025-02-25 20:16:28 +00:00
|
|
|
Version: 5.1
|
2018-08-06 21:02:52 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Method and property caching decorators
|
2018-12-04 14:16:32 +00:00
|
|
|
License: ZPL-2.1
|
2022-10-13 07:21:21 +00:00
|
|
|
URL: https://github.com/zopefoundation/zope.cachedescriptors
|
2025-02-25 20:16:28 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/z/zope.cachedescriptors/zope_cachedescriptors-%{version}.tar.gz
|
2024-01-09 04:43:11 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-08-06 21:02:52 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-01-09 04:43:11 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
BuildRequires: %{python_module zope.testrunner}
|
2018-08-06 21:02:52 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2024-01-09 04:43:11 +00:00
|
|
|
Requires: python-setuptools
|
2018-08-06 21:02:52 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Cached descriptors cache their output. They take into account
|
|
|
|
|
instance attributes that they depend on, so when the instance
|
|
|
|
|
attributes change, the descriptors will change the values they
|
|
|
|
|
return.
|
|
|
|
|
|
|
|
|
|
Cached descriptors cache their data in _v_ attributes, so they are
|
|
|
|
|
also useful for managing the computation of volatile attributes for
|
|
|
|
|
persistent objects.
|
|
|
|
|
|
|
|
|
|
%prep
|
2025-02-25 20:16:28 +00:00
|
|
|
%setup -q -n zope_cachedescriptors-%{version}
|
2018-08-06 21:02:52 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-01-09 04:43:11 +00:00
|
|
|
%pyproject_wheel
|
2018-08-06 21:02:52 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-01-09 04:43:11 +00:00
|
|
|
%pyproject_install
|
2018-08-06 21:02:52 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2024-01-09 04:43:11 +00:00
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} zope-testrunner-%{$python_bin_suffix} --test-path=src
|
2018-08-06 21:02:52 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc CHANGES.rst README.rst
|
|
|
|
|
%license LICENSE.txt
|
2024-01-09 04:43:11 +00:00
|
|
|
%{python_sitelib}/zope/cachedescriptors
|
|
|
|
|
%{python_sitelib}/zope.cachedescriptors-%{version}-py*-nspkg.pth
|
2025-04-01 16:09:05 +00:00
|
|
|
%{python_sitelib}/zope[_.]cachedescriptors-%{version}.dist-info
|
2018-08-06 21:02:52 +00:00
|
|
|
|
|
|
|
|
%changelog
|