Blame python-python-multipart.spec

96893a
#
96893a
# spec file for package python-python-multipart
96893a
#
5fab02
# Copyright (c) 2023 SUSE LLC
96893a
#
96893a
# All modifications and additions to the file contributed by third parties
96893a
# remain the property of their copyright owners, unless otherwise agreed
96893a
# upon. The license for this file, and modifications and additions to the
96893a
# file, is the same license as for the pristine package itself (unless the
96893a
# license for the pristine package is not an Open Source License, in which
96893a
# case the license is the MIT License). An "Open Source License" is a
96893a
# license that conforms to the Open Source Definition (Version 1.9)
96893a
# published by the Open Source Initiative.
96893a
db99ff
# Please submit bugfixes or comments via https://bugs.opensuse.org/
db99ff
#
96893a
96893a
96893a
Name:           python-python-multipart
96893a
Version:        0.0.5
96893a
Release:        0
96893a
License:        Apache-2.0
96893a
Summary:        Python streaming multipart parser
db99ff
URL:            http://github.com/andrew-d/python-multipart
96893a
Source:         https://files.pythonhosted.org/packages/source/p/python-multipart/python-multipart-%{version}.tar.gz
db99ff
Patch0:         support-pyyaml-6.patch
8f5af3
# https://github.com/andrew-d/python-multipart/commit/8cff1aac7479fbb69087e355f66315b21640bab0
eff2f9
# https://github.com/andrew-d/python-multipart/commit/2c7e95c7236fcecdb5660823936403d1359fdb85
8f5af3
Patch1:         python-python-multipart-no-mock.patch
eff2f9
# https://github.com/andrew-d/python-multipart/commit/c54ad6006bacc77623864ec8e5c96bfd32230e01
eff2f9
Patch2:         python-python-multipart-no-six.patch
5fab02
BuildRequires:  %{python_module pip}
96893a
BuildRequires:  %{python_module setuptools}
5fab02
BuildRequires:  %{python_module wheel}
db99ff
BuildRequires:  python-rpm-macros
96893a
# SECTION test requirements
db99ff
BuildRequires:  %{python_module PyYAML}
96893a
BuildRequires:  %{python_module pytest}
96893a
# /SECTION
96893a
BuildRequires:  fdupes
96893a
BuildArch:      noarch
96893a
96893a
%python_subpackages
96893a
96893a
%description
96893a
A streaming multipart parser for Python.
96893a
96893a
%prep
db99ff
%autosetup -p1 -n python-multipart-%{version}
96893a
96893a
%build
5fab02
%pyproject_wheel
96893a
96893a
%install
5fab02
%pyproject_install
96893a
%python_expand %fdupes %{buildroot}%{$python_sitelib}
96893a
96893a
%check
96893a
%pytest
96893a
96893a
%files %{python_files}
96893a
%doc README.rst
96893a
%license LICENSE.txt
eff2f9
%{python_sitelib}/multipart
5fab02
%{python_sitelib}/python_multipart-%{version}.dist-info
96893a
96893a
%changelog