Files
python-types-requests-rpm/python-types-requests.spec
demus 1c6c711275
Build and provide rpm of python-types-requests / rpmbuild (release) Successful in 1m39s
Upgrade to 2.32.4
Add gitea workflows
2026-03-02 22:34:30 +01:00

62 lines
1.5 KiB
RPMSpec

%global pkgname types-requests
%global modname types_requests
Name: python-%{pkgname}
Version: 2.32.4.20260107
Release: %autorelease
Summary: Typing stubs for requests
# Automatically converted from old format: ASL 2.0 - review is highly recommended.
License: Apache-2.0
URL: https://github.com/python/typeshed
Source0: %{pypi_source %{modname}}
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
%global _description %{expand:
This is a PEP 561 type stub package for the requests package. It can be used by
type-checking tools like mypy, PyCharm, pytype etc. to check code that uses
requests. The source for this package can be found at
https://github.com/python/typeshed/tree/master/stubs/requests. All fixes for
types and metadata should be contributed there.
See https://github.com/python/typeshed/blob/master/README.md for more details.}
%description %{_description}
%package -n python%{python3_pkgversion}-%{pkgname}
Summary: %{summary}
%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
%prep
%autosetup -p1 -n %{modname}-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
%build
%pyproject_wheel
%install
%pyproject_install
%check
%py3_check_import requests-stubs
%files -n python%{python3_pkgversion}-%{pkgname}
%doc CHANGELOG.md
%{python3_sitelib}/requests-stubs
%{python3_sitelib}/%{modname}-%{version}.dist-info/
%changelog
%autochangelog