14
0

Accepting request 1160512 from devel:languages:python

- 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/request/show/1160512
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-file?expand=0&rev=7
This commit is contained in:
2024-03-22 14:21:17 +00:00
committed by Git OBS Bridge
4 changed files with 24 additions and 10 deletions

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Mar 22 05:37:11 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jul 1 09:12:10 UTC 2023 - ecsos <ecsos@opensuse.org> Sat Jul 1 09:12:10 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-requests-file # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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} %{?sle15_python_module_pythons}
Name: python-requests-file Name: python-requests-file
Version: 1.5.1 Version: 2.0.0
Release: 0 Release: 0
Summary: File transport adapter for Requests Summary: File transport adapter for Requests
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/dashea/requests-file URL: https://github.com/dashea/requests-file
Source: https://files.pythonhosted.org/packages/source/r/requests-file/requests-file-%{version}.tar.gz 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 requests}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-requests Requires: python-requests
@@ -42,10 +43,10 @@ library to allow local filesystem access via file:// URLs.
%setup -q -n requests-file-%{version} %setup -q -n requests-file-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -56,6 +57,6 @@ library to allow local filesystem access via file:// URLs.
%doc README.rst %doc README.rst
%{python_sitelib}/requests_file.py %{python_sitelib}/requests_file.py
%pycache_only %{python_sitelib}/__pycache__/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 %changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:07d74208d3389d01c38ab89ef403af0cfec63957d53a0081d8eca738d0247d8e
size 5668

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20c5931629c558fda566cacc10cfe2cd502433e628f568c34c80d96a0cc95972
size 6863