17
0
Files
python-cached-property/python-cached-property.spec
Daniel Garcia 61353c5cf7 - Drop patches:
* freezegun-skip.patch
  * python311.patch
- update to 2.0.1:
  * Via python_requires specifies that cached_property is for Python
    version 3.8 or higher
  * Officiall drop support for Python 2.6
- 2.0.0 (2024-10-25)
  * Remove support for Python versions < 3.8
  * Add formal support for Python versions up to 3.13
  * Switch to Markdown for docs
  * Migrate from black to ruff

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cached-property?expand=0&rev=28
2025-09-12 11:25:47 +00:00

64 lines
2.0 KiB
RPMSpec

#
# spec file for package python-cached-property
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-cached-property
Version: 2.0.1
Release: 0
Summary: A decorator for caching properties in classes
License: BSD-3-Clause
Group: Development/Libraries/Python
URL: https://github.com/pydanny/cached-property
Source: https://files.pythonhosted.org/packages/source/c/cached-property/cached_property-%{version}.tar.gz
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
A decorator for caching properties in classes. It makes caching of time or
computational expensive properties quick and easy and it works in Python 2
and 3.
%prep
%autosetup -p1 -n cached_property-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc AUTHORS.md README.md HISTORY.md
%{python_sitelib}/cached[-_]property.py
%{python_sitelib}/cached[-_]property-%{version}*-info
%pycache_only %{python_sitelib}/__pycache__/cached[-_]property*
%changelog