SHA256
1
0
forked from pool/httpie

Accepting request 1088403 from network:utilities

OBS-URL: https://build.opensuse.org/request/show/1088403
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/httpie?expand=0&rev=12
This commit is contained in:
Dominique Leuenberger 2023-05-23 12:54:09 +00:00 committed by Git OBS Bridge
commit 4662179f80
4 changed files with 59 additions and 13 deletions

View File

@ -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
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:797fe33afe3bf0a4364a869a7d73f5c728f67d4ac47039be41e08bd564f86bb0
size 1279185

View File

@ -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

View File

@ -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