From 6d8d93674fb355e454b300d62a6a961babdce4d3b138733a00b401eae368c4bb Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 9 Jan 2024 04:43:11 +0000 Subject: [PATCH] - Use zope-testrunner to run the test suite. - Switch to pyproject and autosetup macros. - Stop using greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.cachedescriptors?expand=0&rev=11 --- python-zope.cachedescriptors.changes | 7 +++++++ python-zope.cachedescriptors.spec | 22 +++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/python-zope.cachedescriptors.changes b/python-zope.cachedescriptors.changes index 1095325..e422bed 100644 --- a/python-zope.cachedescriptors.changes +++ b/python-zope.cachedescriptors.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jan 9 04:40:10 UTC 2024 - Steve Kowalik + +- Use zope-testrunner to run the test suite. +- Switch to pyproject and autosetup macros. +- Stop using greedy globs in %files. + ------------------------------------------------------------------- Fri May 5 14:26:02 UTC 2023 - Dirk Müller diff --git a/python-zope.cachedescriptors.spec b/python-zope.cachedescriptors.spec index cff6b5f..4b05bb0 100644 --- a/python-zope.cachedescriptors.spec +++ b/python-zope.cachedescriptors.spec @@ -1,7 +1,7 @@ # # spec file for package python-zope.cachedescriptors # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-zope.cachedescriptors Version: 5.0 Release: 0 Summary: Method and property caching decorators License: ZPL-2.1 -Group: Development/Languages/Python URL: https://github.com/zopefoundation/zope.cachedescriptors Source: https://files.pythonhosted.org/packages/source/z/zope.cachedescriptors/zope.cachedescriptors-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module zope.testrunner} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-setuptools BuildArch: noarch %python_subpackages @@ -45,22 +47,20 @@ persistent objects. %setup -q -n zope.cachedescriptors-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -cd build/lib -%{python_expand \ -$python -m unittest -v zope.cachedescriptors.tests -$python -m doctest -v zope/cachedescriptors/*.rst -} +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} zope-testrunner-%{$python_bin_suffix} --test-path=src %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/zope/cachedescriptors +%{python_sitelib}/zope.cachedescriptors-%{version}-py*-nspkg.pth +%{python_sitelib}/zope.cachedescriptors-%{version}.dist-info %changelog