14
0
2025-05-05 15:01:05 +00:00
committed by Git OBS Bridge
parent 3373589b5f
commit 261596be4c
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 5 11:23:05 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Mon Jan 20 09:49:50 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -25,6 +25,7 @@ Summary: Zope Deprecation Infrastructure
License: ZPL-2.1
URL: https://pypi.python.org/pypi/zope.deprecation
Source: https://files.pythonhosted.org/packages/source/z/zope.deprecation/zope_deprecation-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -53,22 +54,21 @@ This package contains documentation files for %{name}.
rm -rf zope_deprecation.egg-info
%build
%python_build
%pyproject_wheel
sphinx-build -b html docs build/sphinx/html && rm -r build/sphinx/html/.{buildinfo,doctrees}
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
pushd build/lib
%pyunittest -v zope.deprecation.tests
%files %{python_files}
%license LICENSE.txt
%doc CHANGES.rst COPYRIGHT.txt README.rst
%dir %{python_sitelib}/zope
%{python_sitelib}/zope.deprecation-%{version}*-info
%{python_sitelib}/zope[_.]deprecation-%{version}*info
%{python_sitelib}/zope.deprecation-%{version}*-nspkg.pth
%{python_sitelib}/zope/deprecation