From 0bf6812bcaf21adbd403351a3386463d09085d25d7a88195a477ae913ca71349 Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Mon, 22 May 2023 13:59:09 +0000 Subject: [PATCH] Accepting request 1088072 from home:DarkWav Update to version 3.2.2 - Major version upgrade, expect API breakage - Too many changes since 2.6.0 to list here, for a full changelog please visit: https://github.com/httpie/httpie/blob/master/CHANGELOG.md - Disable more tests that fail in OBS - Update dependencies - Update fdupes deduplication - Add bash and fish completion support If you have any suggestions for improvement, please let me know! OBS-URL: https://build.opensuse.org/request/show/1088072 OBS-URL: https://build.opensuse.org/package/show/network:utilities/httpie?expand=0&rev=24 --- httpie-2.6.0.tar.gz | 3 --- httpie-3.2.2.tar.gz | 3 +++ httpie.changes | 13 +++++++++++ httpie.spec | 53 ++++++++++++++++++++++++++++++++++++--------- 4 files changed, 59 insertions(+), 13 deletions(-) delete mode 100644 httpie-2.6.0.tar.gz create mode 100644 httpie-3.2.2.tar.gz diff --git a/httpie-2.6.0.tar.gz b/httpie-2.6.0.tar.gz deleted file mode 100644 index 7715858..0000000 --- a/httpie-2.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3bcd9a8cb2b11299da12d3af36c095c6d4b665e41c395898a07f1ae4d99fc14a -size 1133495 diff --git a/httpie-3.2.2.tar.gz b/httpie-3.2.2.tar.gz new file mode 100644 index 0000000..3cd997e --- /dev/null +++ b/httpie-3.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:797fe33afe3bf0a4364a869a7d73f5c728f67d4ac47039be41e08bd564f86bb0 +size 1279185 diff --git a/httpie.changes b/httpie.changes index 754c542..0c4ace1 100644 --- a/httpie.changes +++ b/httpie.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sat May 20 06:14:41 UTC 2023 - Simon Vogl + +- Update to version 3.2.2 + * Major version upgrade, expect API breakage + * Too many changes since 2.6.0 to list here, for a full changelog + please visit: + https://github.com/httpie/httpie/blob/master/CHANGELOG.md +- Disable more tests that fail in OBS +- Update dependencies +- Update fdupes deduplication +- Add bash and fish completion support + ------------------------------------------------------------------- Tue Apr 26 06:14:41 UTC 2022 - pgajdos@suse.com diff --git a/httpie.spec b/httpie.spec index a157e43..d02b143 100644 --- a/httpie.spec +++ b/httpie.spec @@ -1,7 +1,7 @@ # # spec file for package httpie # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: httpie -Version: 2.6.0 +Version: 3.2.2 Release: 0 Summary: CLI, cURL-like tool for humans License: BSD-3-Clause @@ -27,25 +27,45 @@ Source: https://github.com/jakubroztocil/httpie/archive/%{version}.tar.g Source1: http.1 BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: python3-Jinja2 +BuildRequires: python3-PySocks +BuildRequires: python3-PyYAML BuildRequires: python3-Pygments >= 2.5.2 +BuildRequires: python3-Werkzeug BuildRequires: python3-charset-normalizer >= 2.0.0 BuildRequires: python3-defusedxml >= 0.6.0 +BuildRequires: python3-flake8 +BuildRequires: python3-flake8-comprehensions +BuildRequires: python3-flake8-deprecated +BuildRequires: python3-multidict >= 4.7.0 +BuildRequires: python3-pip +BuildRequires: python3-pyOpenSSL BuildRequires: python3-pytest -BuildRequires: python3-pytest-httpbin +BuildRequires: python3-pytest-cov +BuildRequires: python3-pytest-httpbin >= 0.0.6 +BuildRequires: python3-pytest-lazy-fixture >= 0.0.6 +BuildRequires: python3-pytest-mock BuildRequires: python3-requests >= 2.22.0 BuildRequires: python3-requests-toolbelt >= 0.9.1 BuildRequires: python3-responses +BuildRequires: python3-rich >= 9.10.0 BuildRequires: python3-setuptools +BuildRequires: python3-twine +BuildRequires: python3-wheel +Requires: python3-PySocks Requires: python3-Pygments >= 2.5.2 Requires: python3-charset-normalizer >= 2.0.0 Requires: python3-defusedxml >= 0.6.0 +Requires: python3-multidict >= 4.7.0 +Requires: python3-pip Requires: python3-requests >= 2.22.0 Requires: python3-requests-toolbelt >= 0.9.1 -Requires: python3-responses -Provides: python3-httpie = 2.3.0 -Provides: python38-httpie = 2.3.0 +Requires: python3-rich >= 9.10.0 +Requires: python3-setuptools +Provides: python%{python_version}-httpie = 3.2.2 +Provides: python3-httpie = 3.2.2 +Obsoletes: python%{python_version}-httpie < 2.3.0 Obsoletes: python3-httpie < 2.3.0 -Obsoletes: python38-httpie < 2.3.0 BuildArch: noarch Requires(post): update-alternatives Requires(postun):update-alternatives @@ -69,21 +89,34 @@ export LC_CTYPE=en_US.UTF-8 %install export LC_CTYPE=en_US.UTF-8 %python3_install -%fdupes %{buildroot}%{$python_sitelib} +%fdupes %{buildroot}%{_prefix}/lib/python%{python_version}/site-packages install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/http.1 +mkdir -p %{buildroot}%{_datadir}/bash-completion/completions +# Install bash & fish completion, credit to Fedora for providing this: https://src.fedoraproject.org/rpms/httpie/blob/rawhide/f/httpie.spec +cp -a extras/httpie-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/http +ln -s ./http %{buildroot}%{_datadir}/bash-completion/completions/https +mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d/ +cp -a extras/httpie-completion.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/http.fish +ln -s ./http.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/https.fish %check export LC_CTYPE=en_US.UTF-8 # disable tests that fail on OBS with [Errno -3] Temporary failure in name resolution -#pytest --deselect=tests/test_uploads.py -pytest --deselect=tests/test_uploads.py tests -v +#pytest --deselect=tests/test_uploads.py --deselect=tests/test_plugins_cli.py +pytest --deselect=tests/test_uploads.py --deselect=tests/test_plugins_cli.py tests -v %files %doc AUTHORS.md CHANGELOG.md README.md %license LICENSE %{_bindir}/http %{_bindir}/https +%{_bindir}/%{name} %{python_sitelib}/httpie* %{_mandir}/man1/http.1%{?ext_man} +%{_mandir}/man1/https.1%{?ext_man} +%{_mandir}/man1/%{name}.1%{?ext_man} +# co-own the entire directory structures, again credit to Fedora: https://src.fedoraproject.org/rpms/httpie/blob/rawhide/f/httpie.spec +%{_datadir}/bash-completion/ +%{_datadir}/fish/ %changelog