Update to version 2.0.0

Apply current python packaging recommendations to the spec file
This commit is contained in:
David Shea 2024-01-29 16:03:55 -05:00
parent 1823fce526
commit 98daa38de7
3 changed files with 23 additions and 30 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/requests-file-1.4.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,62 +1,54 @@
%global srcname requests-file
Name: python-%{srcname}
Version: 1.5.1
Release: 12%{?dist}
Version: 2.0.0
Release: 1%{?dist}
Summary: Transport adapter for using file:// URLs with python-requests
License: ASL 2.0
License: Apache-2.0
URL: https://github.com/dashea/requests-file
Source0: %pypi_source
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(pytest)
%description
%global _description %{expand:
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.}
This is the Python 2 version of the requests_file module
%description %_description
%package -n python3-requests-file
Summary: Transport adapter for using file:// URLs with python3-requests
%{?python_provide:%python_provide python3-%{srcname}}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-pytest
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
%description -n python3-requests-file %_description
%prep
%autosetup -n %{srcname}-%{version}
rm -rf requests_file.egg-info
%generate_buildrequires
%pyproject_buildrequires -t
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%pyproject_save_files requests_file
%check
%{pytest}
%files -n python3-requests-file
%files -n python3-requests-file -f %{pyproject_files}
%license LICENSE
%doc README.rst
%{python3_sitelib}/requests_file.py*
%{python3_sitelib}/__pycache__/requests_file.*
%{python3_sitelib}/requests_file*.egg-info*
%changelog
* 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

View File

@ -1 +1 @@
SHA512 (requests-file-1.5.1.tar.gz) = e671bba8de63d3fa5665f928734f1a152d95ac9973c99f3a09d2dcbb9c9c16334c54a4f0824a5ebe63e262a4cc5d4990f08244ff0b84af11fa475dd416b1e2bc
SHA512 (requests-file-2.0.0.tar.gz) = d37a35d50a2d5f688e431c15c55bfd789c23e50445d94abedfbe75c9ccd825142850dc2ea7e9426c3fa1ca8e4aaaf0a230f5f6921d3c42d157ac95d7e7352b70