forked from pool/python-requests-file
- Update to 2.0.0:
* Correct a typo in requests_file.py * Remove dependency on six * Move metadata to pyproject.toml + Remove support for Python 2 + Remove support for raw distutils * Correct homepage link in pyproject.toml * Fix black formatting - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-file?expand=0&rev=16
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-requests-file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,18 +16,19 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-requests-file
|
||||
Version: 1.5.1
|
||||
Version: 2.0.0
|
||||
Release: 0
|
||||
Summary: File transport adapter for Requests
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/dashea/requests-file
|
||||
Source: https://files.pythonhosted.org/packages/source/r/requests-file/requests-file-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-requests
|
||||
@@ -42,10 +43,10 @@ library to allow local filesystem access via file:// URLs.
|
||||
%setup -q -n requests-file-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -56,6 +57,6 @@ library to allow local filesystem access via file:// URLs.
|
||||
%doc README.rst
|
||||
%{python_sitelib}/requests_file.py
|
||||
%pycache_only %{python_sitelib}/__pycache__/requests_file.*.py*
|
||||
%{python_sitelib}/requests_file-%{version}*info
|
||||
%{python_sitelib}/requests_file-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user