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
This commit is contained in:
Dirk Mueller 2023-01-04 21:24:36 +00:00 committed by Git OBS Bridge
parent 073e6564af
commit 11e39966d9
3 changed files with 24 additions and 6 deletions

View File

@ -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',

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 4 21:17:38 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Really don't require six
- Move to PEP517 build
-------------------------------------------------------------------
Mon Dec 12 16:51:23 UTC 2022 - pgajdos@suse.com

View File

@ -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