Initial Fedora package

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
This commit is contained in:
Michel Alexandre Salim
2021-12-10 09:58:38 -08:00
parent 81955b2394
commit 962a2dbb6c
3 changed files with 64 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
/types-requests-2.26.1.tar.gz
+62
View File
@@ -0,0 +1,62 @@
%global srcname types-requests
%global modname types_requests
Name: python-%{srcname}
Version: 2.26.1
Release: %autorelease
Summary: Typing stubs for requests
License: ASL 2.0
URL: https://github.com/python/typeshed
Source0: %{pypi_source %{srcname}}
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%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}-%{srcname}
Summary: %{summary}
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
%prep
%autosetup -p1 -n %{srcname}-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
%build
%pyproject_wheel
%install
%pyproject_install
%check
%py3_check_import requests-stubs
%files -n python%{python3_pkgversion}-%{srcname}
%doc CHANGELOG.md
%{python3_sitelib}/requests-stubs
%{python3_sitelib}/%{modname}-%{version}.dist-info/
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
SHA512 (types-requests-2.26.1.tar.gz) = f9b4a8ac5794c6f6760474df64d116280939918e2fabc97e9218f5c4a68435c80ce6874a9e89ff39306c5bdb26b79df36c1383e90b84a41670b76aea3aeb8fc8