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
This commit is contained in:
parent
48c638e74a
commit
0bf6812bca
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3bcd9a8cb2b11299da12d3af36c095c6d4b665e41c395898a07f1ae4d99fc14a
|
|
||||||
size 1133495
|
|
3
httpie-3.2.2.tar.gz
Normal file
3
httpie-3.2.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:797fe33afe3bf0a4364a869a7d73f5c728f67d4ac47039be41e08bd564f86bb0
|
||||||
|
size 1279185
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 20 06:14:41 UTC 2023 - Simon Vogl <simon.vogl@gmx.net>
|
||||||
|
|
||||||
|
- 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
|
Tue Apr 26 06:14:41 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
53
httpie.spec
53
httpie.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package httpie
|
# 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
|
# 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
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: httpie
|
Name: httpie
|
||||||
Version: 2.6.0
|
Version: 3.2.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: CLI, cURL-like tool for humans
|
Summary: CLI, cURL-like tool for humans
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@ -27,25 +27,45 @@ Source: https://github.com/jakubroztocil/httpie/archive/%{version}.tar.g
|
|||||||
Source1: http.1
|
Source1: http.1
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: python3-Jinja2
|
||||||
|
BuildRequires: python3-PySocks
|
||||||
|
BuildRequires: python3-PyYAML
|
||||||
BuildRequires: python3-Pygments >= 2.5.2
|
BuildRequires: python3-Pygments >= 2.5.2
|
||||||
|
BuildRequires: python3-Werkzeug
|
||||||
BuildRequires: python3-charset-normalizer >= 2.0.0
|
BuildRequires: python3-charset-normalizer >= 2.0.0
|
||||||
BuildRequires: python3-defusedxml >= 0.6.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
|
||||||
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 >= 2.22.0
|
||||||
BuildRequires: python3-requests-toolbelt >= 0.9.1
|
BuildRequires: python3-requests-toolbelt >= 0.9.1
|
||||||
BuildRequires: python3-responses
|
BuildRequires: python3-responses
|
||||||
|
BuildRequires: python3-rich >= 9.10.0
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-twine
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
Requires: python3-PySocks
|
||||||
Requires: python3-Pygments >= 2.5.2
|
Requires: python3-Pygments >= 2.5.2
|
||||||
Requires: python3-charset-normalizer >= 2.0.0
|
Requires: python3-charset-normalizer >= 2.0.0
|
||||||
Requires: python3-defusedxml >= 0.6.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 >= 2.22.0
|
||||||
Requires: python3-requests-toolbelt >= 0.9.1
|
Requires: python3-requests-toolbelt >= 0.9.1
|
||||||
Requires: python3-responses
|
Requires: python3-rich >= 9.10.0
|
||||||
Provides: python3-httpie = 2.3.0
|
Requires: python3-setuptools
|
||||||
Provides: python38-httpie = 2.3.0
|
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: python3-httpie < 2.3.0
|
||||||
Obsoletes: python38-httpie < 2.3.0
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
@ -69,21 +89,34 @@ export LC_CTYPE=en_US.UTF-8
|
|||||||
%install
|
%install
|
||||||
export LC_CTYPE=en_US.UTF-8
|
export LC_CTYPE=en_US.UTF-8
|
||||||
%python3_install
|
%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
|
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
|
%check
|
||||||
export LC_CTYPE=en_US.UTF-8
|
export LC_CTYPE=en_US.UTF-8
|
||||||
# disable tests that fail on OBS with [Errno -3] Temporary failure in name resolution
|
# 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 --deselect=tests/test_plugins_cli.py
|
||||||
pytest --deselect=tests/test_uploads.py tests -v
|
pytest --deselect=tests/test_uploads.py --deselect=tests/test_plugins_cli.py tests -v
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS.md CHANGELOG.md README.md
|
%doc AUTHORS.md CHANGELOG.md README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/http
|
%{_bindir}/http
|
||||||
%{_bindir}/https
|
%{_bindir}/https
|
||||||
|
%{_bindir}/%{name}
|
||||||
%{python_sitelib}/httpie*
|
%{python_sitelib}/httpie*
|
||||||
%{_mandir}/man1/http.1%{?ext_man}
|
%{_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
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user