1
0
forked from pool/python-cachey

Compare commits

2 Commits

2 changed files with 13 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 15 12:46:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 13 07:13:58 UTC 2022 - Dirk Müller <dmueller@suse.com> Thu Oct 13 07:13:58 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-cachey # spec file for package python-cachey
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,6 @@
# #
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cachey Name: python-cachey
Version: 0.2.1 Version: 0.2.1
Release: 0 Release: 0
@@ -27,8 +25,10 @@ Group: Development/Languages/Python
URL: https://github.com/mrocklin/cachey/ URL: https://github.com/mrocklin/cachey/
Source: https://files.pythonhosted.org/packages/source/c/cachey/cachey-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/c/cachey/cachey-%{version}.tar.gz
BuildRequires: %{python_module HeapDict} BuildRequires: %{python_module HeapDict}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-HeapDict Requires: python-HeapDict
@@ -55,18 +55,19 @@ roughly linear amplification of repeated results.
%setup -q -n cachey-%{version} %setup -q -n cachey-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %pytest
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc README.md %doc README.md
%{python_sitelib}/* %{python_sitelib}/cachey
%{python_sitelib}/cachey-%{version}*-info
%changelog %changelog