From 2be4a0b21b9ad8982abe0a9eb7051a261a918141bf3fe951f9fbdb8b28635829 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 11 May 2017 01:33:44 +0000 Subject: [PATCH] Accepting request 494496 from home:TheBlackCat:branches:devel:languages:python - Implement single-spec version. - Fix source URL. - Update to version 1.4.2 OBS-URL: https://build.opensuse.org/request/show/494496 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-file?expand=0&rev=2 --- python-requests-file.changes | 10 ++++++++++ python-requests-file.spec | 33 +++++++++++++++++++-------------- requests-file-1.4.2.tar.gz | 3 +++ requests-file-1.4.tar.gz | 3 --- 4 files changed, 32 insertions(+), 17 deletions(-) create mode 100644 requests-file-1.4.2.tar.gz delete mode 100644 requests-file-1.4.tar.gz diff --git a/python-requests-file.changes b/python-requests-file.changes index ffb4807..d90e384 100644 --- a/python-requests-file.changes +++ b/python-requests-file.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu May 11 01:28:32 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. +- Fix source URL. +- Update to version 1.4.2 + * Set the response URL to the request URL +- Update to version 1.4.1 + * Add a wheel distribution + ------------------------------------------------------------------- Tue Feb 2 19:17:40 UTC 2016 - toddrme2178@gmail.com diff --git a/python-requests-file.spec b/python-requests-file.spec index c545fd7..125a5b0 100644 --- a/python-requests-file.spec +++ b/python-requests-file.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests-file # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,26 @@ # +%bcond_without tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-requests-file -Version: 1.4 +Version: 1.4.2 Release: 0 Summary: File transport adapter for Requests License: Apache-2.0 Group: Development/Languages/Python Url: http://github.com/dashea/requests-file -Source: https://pypi.python.org/packages/source/r/requests-file/requests-file-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-requests -BuildRequires: python-setuptools +Source: https://files.pythonhosted.org/packages/source/r/requests-file/requests-file-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module requests} Requires: python-requests BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description Requests-File is a transport adapter for use with the Requests Python @@ -43,15 +45,18 @@ library to allow local filesystem access via file:// URLs. %setup -q -n requests-file-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with tests} %check -python setup.py test +%python_exec setup.py test +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitelib}/* diff --git a/requests-file-1.4.2.tar.gz b/requests-file-1.4.2.tar.gz new file mode 100644 index 0000000..dd9a239 --- /dev/null +++ b/requests-file-1.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f518e7cfe048e053fd1019dfb891b4c55b871c56c5a31693d733240c80b8f191 +size 5161 diff --git a/requests-file-1.4.tar.gz b/requests-file-1.4.tar.gz deleted file mode 100644 index 12a8352..0000000 --- a/requests-file-1.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d6912b19971d3f11a5f258640705cedc7df9eb5a3b9d58c9ce3367b4a9261bc8 -size 5137