Accepting request 758866 from home:mnhauke

- Add patch:
  * httpie-adjust-requirements.patch
    Lower requirements for requests and Pygemnts to make it work
    on Leap 15.1

OBS-URL: https://build.opensuse.org/request/show/758866
OBS-URL: https://build.opensuse.org/package/show/network:utilities/httpie?expand=0&rev=7
This commit is contained in:
Martin Hauke 2020-01-02 11:01:29 +00:00 committed by Git OBS Bridge
parent 8ff44f9419
commit b99be4b873
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,15 @@
diff --git a/setup.py b/setup.py
index 3cb04c8..50075b3 100644
--- a/setup.py
+++ b/setup.py
@@ -35,8 +35,8 @@ tests_require = [
install_requires = [
- 'requests>=2.21.0',
- 'Pygments>=2.3.1'
+ 'requests>=2.20.0',
+ 'Pygments>=2.2.0'
]

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Dec 22 16:32:41 UTC 2019 - Martin Hauke <mardnh@gmx.de>
- Add patch:
* httpie-adjust-requirements.patch
Lower requirements for requests and Pygemnts to make it work
on Leap 15.1
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 27 14:23:44 UTC 2019 - Martin Hauke <mardnh@gmx.de> Tue Aug 27 14:23:44 UTC 2019 - Martin Hauke <mardnh@gmx.de>

View File

@ -27,6 +27,7 @@ Group: Productivity/Networking/Web/Utilities
URL: https://httpie.org/ URL: https://httpie.org/
Source: https://github.com/jakubroztocil/httpie/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source: https://github.com/jakubroztocil/httpie/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: http.1 Source1: http.1
Patch0: httpie-adjust-requirements.patch
BuildRequires: %{python_module Pygments >= 2.1.3} BuildRequires: %{python_module Pygments >= 2.1.3}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module mock} BuildRequires: %{python_module mock}
@ -53,6 +54,7 @@ responses.
%prep %prep
%setup -q %setup -q
%patch0 -p1
#drop shebang #drop shebang
sed -i -e '/^#!\//, 1d' httpie/__main__.py sed -i -e '/^#!\//, 1d' httpie/__main__.py