From dec5f63b0718257e9a1b68fb2a4e14bb6c298e0a Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 09 2021 00:00:07 +0000 Subject: Import python-requests-download-0.1.2-5.el9 in CloudSIG xena --- diff --git a/.python-requests-download.metadata b/.python-requests-download.metadata new file mode 100644 index 0000000..c937971 --- /dev/null +++ b/.python-requests-download.metadata @@ -0,0 +1 @@ +83276a564364c51fd8809f7a3b7317d58e7334ec SOURCES/requests_download-0.1.2.tar.gz diff --git a/SPECS/python-requests-download.spec b/SPECS/python-requests-download.spec new file mode 100644 index 0000000..3680c5a --- /dev/null +++ b/SPECS/python-requests-download.spec @@ -0,0 +1,71 @@ +%global pypi_name requests_download +Name: python-requests-download +Version: 0.1.2 +Release: 5%{?dist} +Summary: Download files using requests and save them to a target path + +License: MIT +URL: https://www.github.com/takluyver/requests_download +Source0: %{pypi_source} +BuildArch: noarch +BuildRequires: pyproject-rpm-macros + +%global _description %{expand: +A convenient function to download to a file using requests. + +Basic usage: + + url = "https://github.com/takluyver/requests_download/archive/master.zip" + download(url, "requests_download.zip") + +An optional headers= parameter is passed through to requests.} + +%description %_description + + +%package -n python3-requests-download +Summary: %{summary} +%{?python_provide:%python_provide python3-requests-download} + +%description -n python3-requests-download %_description + + +%prep +%autosetup -n %{pypi_name}-%{version} + +%generate_buildrequires +%pyproject_buildrequires -r + +%build +%pyproject_wheel + +%install +%pyproject_install + +%check +# as of 0.1.2, upstream has no tests :( +export PYTHONPATH=%{buildroot}%{python3_sitelib} +%{python3} -c 'import sys; sys.path.remove(""); import requests_download' + +%files -n python3-requests-download +%license LICENSE +%doc README.rst +%pycached %{python3_sitelib}/%{pypi_name}.py +%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/ + + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 0.1.2-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Dec 15 2019 Miro Hrončok - 0.1.2-1 +- Initial package