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:
parent
88cf1f2b6a
commit
784c9a2fe7
@ -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>
|
Tue Jan 16 15:06:21 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -29,7 +29,9 @@ Source: https://files.pythonhosted.org/packages/source/m/marshmallow/mar
|
|||||||
Patch0: python-marshmallow-no-version-warning.patch
|
Patch0: python-marshmallow-no-version-warning.patch
|
||||||
BuildRequires: %{python_module autodocsumm}
|
BuildRequires: %{python_module autodocsumm}
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Suggests: %{name}-doc
|
Suggests: %{name}-doc
|
||||||
@ -76,12 +78,12 @@ HTML Documentation and examples for %{name}.
|
|||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
sphinx-build docs/ docs/_build/html
|
sphinx-build docs/ docs/_build/html
|
||||||
rm -r docs/_build/html/.buildinfo docs/_build/html/.doctrees
|
rm -r docs/_build/html/.buildinfo docs/_build/html/.doctrees
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -90,7 +92,8 @@ rm -r docs/_build/html/.buildinfo docs/_build/html/.doctrees
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||||
%license LICENSE NOTICE
|
%license LICENSE NOTICE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/marshmallow
|
||||||
|
%{python_sitelib}/marshmallow-*.dist-info
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user