Accepting request 1162272 from home:glaubitz:branches:devel:languages:python

- Switch build system from setuptools to pyproject.toml
  + Add python-pip and python-wheel to BuildRequires
  + Replace %python_build with %pyproject_wheel
  + Replace %python_install with %pyproject_install
- Limit Python files matched in %files section

OBS-URL: https://build.opensuse.org/request/show/1162272
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=52
This commit is contained in:
Robert Schweikert 2024-03-26 13:03:51 +00:00 committed by Git OBS Bridge
parent 88cf1f2b6a
commit 784c9a2fe7
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Mar 26 12:35:03 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Switch build system from setuptools to pyproject.toml
+ Add python-pip and python-wheel to BuildRequires
+ Replace %python_build with %pyproject_wheel
+ Replace %python_install with %pyproject_install
- Limit Python files matched in %files section
-------------------------------------------------------------------
Tue Jan 16 15:06:21 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -29,7 +29,9 @@ Source: https://files.pythonhosted.org/packages/source/m/marshmallow/mar
Patch0: python-marshmallow-no-version-warning.patch
BuildRequires: %{python_module autodocsumm}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: %{name}-doc
@ -76,12 +78,12 @@ HTML Documentation and examples for %{name}.
%autopatch -p1
%build
%python_build
%pyproject_wheel
sphinx-build docs/ docs/_build/html
rm -r docs/_build/html/.buildinfo docs/_build/html/.doctrees
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -90,7 +92,8 @@ rm -r docs/_build/html/.buildinfo docs/_build/html/.doctrees
%files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst
%license LICENSE NOTICE
%{python_sitelib}/*
%{python_sitelib}/marshmallow
%{python_sitelib}/marshmallow-*.dist-info
%if 0%{?suse_version} > 1500
%files -n %{name}-doc