From 784c9a2fe7eda90690e00b729e5f3864ffc737c39c665dc003cf346577538fb8 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Tue, 26 Mar 2024 13:03:51 +0000 Subject: [PATCH] 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 --- python-marshmallow.changes | 9 +++++++++ python-marshmallow.spec | 9 ++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/python-marshmallow.changes b/python-marshmallow.changes index dc3a8d6..a9fa9a1 100644 --- a/python-marshmallow.changes +++ b/python-marshmallow.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Mar 26 12:35:03 UTC 2024 - John Paul Adrian Glaubitz + +- 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 diff --git a/python-marshmallow.spec b/python-marshmallow.spec index b1acbf7..43f59a5 100644 --- a/python-marshmallow.spec +++ b/python-marshmallow.spec @@ -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