blob: 94a3d65808219531c55150e9df366976ff393211 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# topdir: multipart-1.2.0 (produced by tar --transform on git clone)
# Build system: flit_core.buildapi via pyproject.toml
# Pure Python single-file module (multipart.py), no dependencies, no C extensions
# Python target: 3.8+ (chroot provides python3 3.11.6)
%global pypi_name multipart
Name: python-%{pypi_name}
Version: 1.2.0
Release: 1%{?dist}
Summary: Parser for multipart/form-data
License: MIT
URL: https://github.com/defnull/multipart
Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: pyproject-rpm-macros
BuildRequires: python3-flit-core
%description
A fast incremental non-blocking parser for multipart/form-data (RFC 7578),
as well as blocking alternatives for easier use in WSGI or CGI applications.
Provides a SansIO PushMultipartParser for ASGI/asyncio, a streaming
MultipartParser for blocking IO, and high-level WSGI helper functions.
Pure Python single-file module with no runtime dependencies.
%package -n python3-%{pypi_name}
Summary: Parser for multipart/form-data
Provides: python-%{pypi_name}
Provides: python3dist(%{pypi_name}) = %{version}
%description -n python3-%{pypi_name}
A fast incremental non-blocking parser for multipart/form-data (RFC 7578),
as well as blocking alternatives for easier use in WSGI or CGI applications.
Provides a SansIO PushMultipartParser for ASGI/asyncio, a streaming
MultipartParser for blocking IO, and high-level WSGI helper functions.
Pure Python single-file module with no runtime dependencies.
%package help
Summary: Development documents and examples for %{pypi_name}
Provides: python3-%{pypi_name}-doc
%description help
Development documents and examples for %{pypi_name}.
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%build
%pyproject_build
%install
%pyproject_install
%check
%{python3} -c "import multipart"
%files -n python3-%{pypi_name}
%license LICENSE
%{python3_sitelib}/multipart.py
%{python3_sitelib}/__pycache__/multipart*
%{python3_sitelib}/multipart-%{version}*.dist-info/
%files help
%doc README.rst CHANGELOG.rst
%changelog
* Tue Oct 27 2026 Python_Bot <Python_Bot@openeuler.org> - 1.2.0-1
- Initial package
|