Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/httpie/
Date: Wed, 08 Sep 2021 00:18:12
Message-Id: 1631060257.e35c8f61192e82cd6ab1eedd093cc42cdf335c3e.sam@gentoo
1 commit: e35c8f61192e82cd6ab1eedd093cc42cdf335c3e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 8 00:15:56 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 8 00:17:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e35c8f61
7
8 net-misc/httpie: add 2.5.0
9
10 Closes: https://bugs.gentoo.org/809377
11 Closes: https://bugs.gentoo.org/809284
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 net-misc/httpie/Manifest | 1 +
15 net-misc/httpie/httpie-2.5.0.ebuild | 60 +++++++++++++++++++++++++++++++++++++
16 2 files changed, 61 insertions(+)
17
18 diff --git a/net-misc/httpie/Manifest b/net-misc/httpie/Manifest
19 index 9fc9517f543..3779e5c114a 100644
20 --- a/net-misc/httpie/Manifest
21 +++ b/net-misc/httpie/Manifest
22 @@ -1 +1,2 @@
23 DIST httpie-2.4.0.tar.gz 1772537 BLAKE2B 111451cc7dc353d5b586554f98ac715a3198f03e74d261944a5f021d2dcc948455500800222b323d182a2a067d0549bda7c318ab3a6c934b9a9beec64aff2db2 SHA512 44cc7ff4fe0f3d8c53a7dd750465f6b56c36f5bbac06d22b760579bd60949039e82313845699669a659ec91adc69dbeac22c06ddd63af64e6f2e0edecf3e732a
24 +DIST httpie-2.5.0.tar.gz 1105177 BLAKE2B 6e16868c81522d4e6d2fc0a4e093c190f18ced720b35217930865ae3f8e168193cc33dfecc13c5d310f52647d6e79d17b247f56e56e8586d633a2d9502be66a7 SHA512 f14aa23fea7578181b9bd6ededea04de9ddf0b2f697b23f76d2d96e2c17b95617318c711750bad6af550400dbc03732ab17fdf84e59d577f33f073e600a55330
25
26 diff --git a/net-misc/httpie/httpie-2.5.0.ebuild b/net-misc/httpie/httpie-2.5.0.ebuild
27 new file mode 100644
28 index 00000000000..b2e48e8373f
29 --- /dev/null
30 +++ b/net-misc/httpie/httpie-2.5.0.ebuild
31 @@ -0,0 +1,60 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DISTUTILS_USE_SETUPTOOLS=rdepend
38 +PYTHON_COMPAT=( python3_{8,9,10} )
39 +PYTHON_REQ_USE="ssl(+)"
40 +
41 +inherit bash-completion-r1 distutils-r1
42 +
43 +DESCRIPTION="Modern command line HTTP client"
44 +HOMEPAGE="https://httpie.org/ https://pypi.org/project/httpie/"
45 +SRC_URI="https://github.com/jakubroztocil/httpie/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="test"
51 +RESTRICT="!test? ( test )"
52 +
53 +RDEPEND="
54 + dev-python/defusedxml[${PYTHON_USEDEP}]
55 + dev-python/pygments[${PYTHON_USEDEP}]
56 + >=dev-python/requests-2.22.0[${PYTHON_USEDEP}]
57 + >=dev-python/requests-toolbelt-0.9.1[${PYTHON_USEDEP}]
58 +"
59 +BDEPEND="
60 + test? (
61 + ${RDEPEND}
62 + dev-python/mock[${PYTHON_USEDEP}]
63 + dev-python/pyopenssl[${PYTHON_USEDEP}]
64 + dev-python/pytest-httpbin[${PYTHON_USEDEP}]
65 + dev-python/responses[${PYTHON_USEDEP}]
66 + )
67 +"
68 +
69 +distutils_enable_tests pytest
70 +
71 +python_test() {
72 + local skipped_tests=()
73 +
74 + skipped_tests+=(
75 + tests/test_uploads.py::test_chunked_json
76 + tests/test_uploads.py::test_chunked_form
77 + tests/test_uploads.py::test_chunked_stdin
78 + tests/test_uploads.py::TestMultipartFormDataFileUpload::test_multipart_chunked
79 + tests/test_uploads.py::TestRequestBodyFromFilePath::test_request_body_from_file_by_path_chunked
80 + tests/test_tokens.py::test_verbose_chunked
81 + )
82 +
83 + pytest -v ${skipped_tests[@]/#/--deselect } || die "Tests failed with ${EPYTHON}"
84 +}
85 +
86 +python_install_all() {
87 + newbashcomp extras/httpie-completion.bash http
88 + insinto /usr/share/fish/vendor_completions.d
89 + newins extras/httpie-completion.fish http.fish
90 + distutils-r1_python_install_all
91 +}