Compare commits

...

No commits in common. "c10s" and "c8s" have entirely different histories.
c10s ... c8s

3 changed files with 103 additions and 110 deletions

6
.gitignore vendored
View File

@ -1,6 +1,2 @@
/requests-file-1.2.tar.gz
/requests-file-1.3.1.tar.gz
/requests-file-1.4.tar.gz
SOURCES/requests-file-1.4.3.tar.gz
/requests-file-1.4.3.tar.gz
/requests-file-1.5.1.tar.gz
/requests-file-2.0.0.tar.gz

View File

@ -1,138 +1,135 @@
%global srcname requests-file
%if 0%{?rhel} && 0%{?rhel} <= 7
%bcond_with python3
%else
%bcond_without python3
%endif
%if 0%{?rhel} > 7
# Disable python2 build by default
%bcond_with python2
%else
%bcond_without python2
%endif
Name: python-%{srcname}
Version: 2.0.0
Release: 4%{?dist}
Version: 1.4.3
Release: 5%{?dist}
Summary: Transport adapter for using file:// URLs with python-requests
License: Apache-2.0
License: ASL 2.0
URL: https://github.com/dashea/requests-file
Source0: %pypi_source
Source0: https://files.pythonhosted.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(pytest)
%global _description %{expand:
%description
Requests-File is a transport adapter for use with the Requests Python
library to allow local file system access via file:// URLs.}
library to allow local file system access via file:// URLs.
%description %_description
This is the Python 2 version of the requests_file module
%if %{with python2}
%package -n python2-%{srcname}
Summary: Transport adapter for using file:// URLs with python-requests
%{?python_provide:%python_provide python2-%{srcname}}
%if 0%{?rhel} && 0%{?rhel} <= 7
# EL7 has unversioned names for these packages
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-requests
BuildRequires: python-six
Requires: python-requests
Requires: python-six
%else
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-requests
BuildRequires: python2-six
Requires: python2-requests
Requires: python2-six
%endif
%description -n python2-%{srcname}
Requests-File is a transport adapter for use with the Requests Python
library to allow local file system access via file:// URLs.
This is the Python 2 version of the requests_file module
%endif
%if %{with python3}
%package -n python3-requests-file
Summary: %{summary}
Summary: Transport adapter for using file:// URLs with python3-requests
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-requests-file %_description
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-requests
BuildRequires: python3-six
Requires: python3-requests
Requires: python3-six
%description -n python3-requests-file
Requests-File is a transport adapter for use with the Requests Python
library to allow local file system access via file:// URLs.
This is the Python 3 version of the requests_file module
%endif
%prep
%autosetup -n %{srcname}-%{version}
%generate_buildrequires
%pyproject_buildrequires
rm -rf requests_file.egg-info
%build
%pyproject_wheel
%if %{with python2}
%py2_build
%endif
%if %{with python3}
%py3_build
%endif
%install
%pyproject_install
%pyproject_save_files requests_file
%if %{with python2}
%py2_install
%endif
%if %{with python3}
%py3_install
%endif
%check
%{pytest}
%if %{with python2}
%{__python2} setup.py test
%endif
%if %{with python3}
%{__python3} setup.py test
%endif
%files -n python3-requests-file -f %{pyproject_files}
%if %{with python2}
%files -n python2-%{srcname}
%license LICENSE
%doc README.rst
%{python2_sitelib}/requests_file.py*
%{python2_sitelib}/requests_file*.egg-info*
%endif
%if %{with python3}
%files -n python3-requests-file
%license LICENSE
%doc README.rst
%{python3_sitelib}/requests_file.py*
%{python3_sitelib}/__pycache__/requests_file.*
%{python3_sitelib}/requests_file*.egg-info*
%endif
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.0.0-4
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.0.0-3
- Bump release for June 2024 mass rebuild
* Fri Feb 02 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 2.0.0-2
- Avoid tox dependency
* Mon Jan 29 2024 David Shea <reallylongword@gmail.com> - 2.0.0-1
- Update to version 2.0.0
- Apply current python packaging recommendations to the spec file
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.5.1-9
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.5.1-6
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.5.1-3
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Dec 14 2020 David Shea <reallylongword@gmail.com> - 1.5.1-1
- Make Content-Length optional
- Fix python2 compatibility
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-15
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-13
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-12
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Dec 17 2018 David Shea <dshea@redhat.com> - 1.4.3-9
- Remove the python2 subpackage
- Remove all the dumb %%if statements
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-7
- Rebuilt for Python 3.7
* Fri Mar 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.4.3-6
- Don't build Python 2 subpackage on EL > 7
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 1.4.3-5
- Add python2- prefix where possible
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (requests-file-2.0.0.tar.gz) = d37a35d50a2d5f688e431c15c55bfd789c23e50445d94abedfbe75c9ccd825142850dc2ea7e9426c3fa1ca8e4aaaf0a230f5f6921d3c42d157ac95d7e7352b70
SHA512 (requests-file-1.4.3.tar.gz) = b92294a11c9cc13beb5df598b636d999e0fcd46d05b775bbb69667f066d24ccf55b5af2135aec8d69c0096ca64e13bab3c3da64bee00f0c12edd05f43430d80c