From 11e39966d97845bb6a9cd45ff65fa63ce21dae48a6a7777ca946b0b5c045928c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 4 Jan 2023 21:24:36 +0000 Subject: [PATCH] Accepting request 1056061 from home:bnavigator:branches:devel:languages:python - Really don't require six - Move to PEP517 build OBS-URL: https://build.opensuse.org/request/show/1056061 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-multipart?expand=0&rev=8 --- python-python-multipart-no-six.patch | 12 ++++++++++++ python-python-multipart.changes | 6 ++++++ python-python-multipart.spec | 12 ++++++------ 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/python-python-multipart-no-six.patch b/python-python-multipart-no-six.patch index 653e878..38b4a46 100644 --- a/python-python-multipart-no-six.patch +++ b/python-python-multipart-no-six.patch @@ -125,3 +125,15 @@ Index: python-multipart-0.0.5/multipart/exceptions.py Base64Error = binascii.Error -else: # pragma: no cover - Base64Error = TypeError +Index: python-multipart-0.0.5/setup.py +=================================================================== +--- python-multipart-0.0.5.orig/setup.py ++++ python-multipart-0.0.5/setup.py +@@ -25,7 +25,6 @@ setup(name='python-multipart', + platforms='any', + zip_safe=False, + install_requires=[ +- 'six>=1.4.0', + ], + tests_require=[ + 'pytest', diff --git a/python-python-multipart.changes b/python-python-multipart.changes index d1547e3..a59d58f 100644 --- a/python-python-multipart.changes +++ b/python-python-multipart.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 4 21:17:38 UTC 2023 - Ben Greiner + +- Really don't require six +- Move to PEP517 build + ------------------------------------------------------------------- Mon Dec 12 16:51:23 UTC 2022 - pgajdos@suse.com diff --git a/python-python-multipart.spec b/python-python-multipart.spec index 7a0d3e4..43183ef 100644 --- a/python-python-multipart.spec +++ b/python-python-multipart.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-multipart # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,15 +29,15 @@ Patch0: support-pyyaml-6.patch Patch1: python-python-multipart-no-mock.patch # https://github.com/andrew-d/python-multipart/commit/c54ad6006bacc77623864ec8e5c96bfd32230e01 Patch2: python-python-multipart-no-six.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module six >= 1.4.0} BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module pytest} # /SECTION BuildRequires: fdupes -Requires: python-six >= 1.4.0 BuildArch: noarch %python_subpackages @@ -49,10 +49,10 @@ A streaming multipart parser for Python. %autosetup -p1 -n python-multipart-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -62,6 +62,6 @@ A streaming multipart parser for Python. %doc README.rst %license LICENSE.txt %{python_sitelib}/multipart -%{python_sitelib}/python_multipart-*.egg-info +%{python_sitelib}/python_multipart-%{version}.dist-info %changelog