From 5b4c72551fb0fda5be61edf830cc60a892f18028c1b4ff21e3f6db98c6aa7871 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 22 Mar 2024 05:38:13 +0000 Subject: [PATCH] - 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 --- python-requests-file.changes | 13 +++++++++++++ python-requests-file.spec | 15 ++++++++------- requests-file-1.5.1.tar.gz | 3 --- requests-file-2.0.0.tar.gz | 3 +++ 4 files changed, 24 insertions(+), 10 deletions(-) delete mode 100644 requests-file-1.5.1.tar.gz create mode 100644 requests-file-2.0.0.tar.gz diff --git a/python-requests-file.changes b/python-requests-file.changes index d771330..ed950ee 100644 --- a/python-requests-file.changes +++ b/python-requests-file.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri Mar 22 05:37:11 UTC 2024 - Steve Kowalik + +- 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 diff --git a/python-requests-file.spec b/python-requests-file.spec index 4aabc92..92cce3b 100644 --- a/python-requests-file.spec +++ b/python-requests-file.spec @@ -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 diff --git a/requests-file-1.5.1.tar.gz b/requests-file-1.5.1.tar.gz deleted file mode 100644 index 97fd27e..0000000 --- a/requests-file-1.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:07d74208d3389d01c38ab89ef403af0cfec63957d53a0081d8eca738d0247d8e -size 5668 diff --git a/requests-file-2.0.0.tar.gz b/requests-file-2.0.0.tar.gz new file mode 100644 index 0000000..a9c49e3 --- /dev/null +++ b/requests-file-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20c5931629c558fda566cacc10cfe2cd502433e628f568c34c80d96a0cc95972 +size 6863