forked from pool/python-zope.cachedescriptors
Accepting request 1137660 from devel:languages:python
- 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/request/show/1137660 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.cachedescriptors?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 9 04:40:10 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
Fri May 5 14:26:02 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-zope.cachedescriptors
|
# 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
|
# 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,18 +16,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-zope.cachedescriptors
|
Name: python-zope.cachedescriptors
|
||||||
Version: 5.0
|
Version: 5.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Method and property caching decorators
|
Summary: Method and property caching decorators
|
||||||
License: ZPL-2.1
|
License: ZPL-2.1
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/zopefoundation/zope.cachedescriptors
|
URL: https://github.com/zopefoundation/zope.cachedescriptors
|
||||||
Source: https://files.pythonhosted.org/packages/source/z/zope.cachedescriptors/zope.cachedescriptors-%{version}.tar.gz
|
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 setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: %{python_module zope.testrunner}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-setuptools
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -45,22 +47,20 @@ persistent objects.
|
|||||||
%setup -q -n zope.cachedescriptors-%{version}
|
%setup -q -n zope.cachedescriptors-%{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
|
||||||
cd build/lib
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} zope-testrunner-%{$python_bin_suffix} --test-path=src
|
||||||
%{python_expand \
|
|
||||||
$python -m unittest -v zope.cachedescriptors.tests
|
|
||||||
$python -m doctest -v zope/cachedescriptors/*.rst
|
|
||||||
}
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%license LICENSE.txt
|
%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
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user