From db99ffa811e7d4f33c4a8bbb17343350f90970a0 Mon Sep 17 00:00:00 2001
From: StevenK <>
Date: Feb 04 2022 21:49:34 +0000
Subject: Update python-python-multipart to version 0.0.5 / rev 2 via SR 951464
https://build.opensuse.org/request/show/951464
by user StevenK + dimstar_suse
- Add patch support-pyyaml-6.patch:
* Support PyYAML 6.0+
---
diff --git a/.files b/.files
index 38d05da..ab61ba0 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 56b0f07..963c778 100644
--- a/.rev
+++ b/.rev
@@ -8,4 +8,13 @@
Also a dep of fastapi (https://repology.org/project/python:fastapi/versions) and other modern web aio frameworks
851902
+
+ 097254f8fad37e19454b62defa7f766c
+ 0.0.5
+
+ dimstar_suse
+ - Add patch support-pyyaml-6.patch:
+ * Support PyYAML 6.0+
+ 951464
+
diff --git a/python-python-multipart.changes b/python-python-multipart.changes
index a1594f0..1724de8 100644
--- a/python-python-multipart.changes
+++ b/python-python-multipart.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Fri Feb 4 00:43:33 UTC 2022 - Steve Kowalik
+
+- Add patch support-pyyaml-6.patch:
+ * Support PyYAML 6.0+
+
+-------------------------------------------------------------------
Sat Jul 25 06:56:28 PM UTC 2020 - John Vandenberg
- Initial spec for v0.0.5
diff --git a/python-python-multipart.spec b/python-python-multipart.spec
index 4e65995..927efac 100644
--- a/python-python-multipart.spec
+++ b/python-python-multipart.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-python-multipart
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,25 +12,26 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
Name: python-python-multipart
Version: 0.0.5
Release: 0
License: Apache-2.0
Summary: Python streaming multipart parser
-Url: http://github.com/andrew-d/python-multipart
-Group: Development/Languages/Python
+URL: http://github.com/andrew-d/python-multipart
Source: https://files.pythonhosted.org/packages/source/p/python-multipart/python-multipart-%{version}.tar.gz
-BuildRequires: python-rpm-macros
+Patch0: support-pyyaml-6.patch
BuildRequires: %{python_module setuptools}
+BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module six >= 1.4.0}
+BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
-BuildRequires: %{python_module PyYAML}
# /SECTION
BuildRequires: fdupes
Requires: python-six >= 1.4.0
@@ -42,7 +43,7 @@ BuildArch: noarch
A streaming multipart parser for Python.
%prep
-%setup -q -n python-multipart-%{version}
+%autosetup -p1 -n python-multipart-%{version}
%build
%python_build
diff --git a/support-pyyaml-6.patch b/support-pyyaml-6.patch
new file mode 100644
index 0000000..82f7630
--- /dev/null
+++ b/support-pyyaml-6.patch
@@ -0,0 +1,13 @@
+Index: python-multipart-0.0.5/multipart/tests/test_multipart.py
+===================================================================
+--- python-multipart-0.0.5.orig/multipart/tests/test_multipart.py
++++ python-multipart-0.0.5/multipart/tests/test_multipart.py
+@@ -709,7 +709,7 @@ for f in os.listdir(http_tests_dir):
+ test_data = f.read()
+
+ with open(yaml_file, 'rb') as f:
+- yaml_data = yaml.load(f)
++ yaml_data = yaml.safe_load(f)
+
+ http_tests.append({
+ 'name': fname,