diff --git a/python-cachey.changes b/python-cachey.changes index 1507858..bfdfd24 100644 --- a/python-cachey.changes +++ b/python-cachey.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 15 12:46:20 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Oct 13 07:13:58 UTC 2022 - Dirk Müller diff --git a/python-cachey.spec b/python-cachey.spec index b6bea33..087aa0b 100644 --- a/python-cachey.spec +++ b/python-cachey.spec @@ -1,7 +1,7 @@ # # 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 # 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 Version: 0.2.1 Release: 0 @@ -27,8 +25,10 @@ Group: Development/Languages/Python URL: https://github.com/mrocklin/cachey/ Source: https://files.pythonhosted.org/packages/source/c/cachey/cachey-%{version}.tar.gz BuildRequires: %{python_module HeapDict} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-HeapDict @@ -55,18 +55,19 @@ roughly linear amplification of repeated results. %setup -q -n cachey-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v +%pytest %files %{python_files} %license LICENSE.txt %doc README.md -%{python_sitelib}/* +%{python_sitelib}/cachey +%{python_sitelib}/cachey-%{version}*-info %changelog