1 |
commit: 4814318e42afc31d7b17356c3d6c10234cf667cb |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 6 14:13:38 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 6 14:14:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4814318e |
7 |
|
8 |
net-misc/httpie: bump to 2.4.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-misc/httpie/Manifest | 1 + |
14 |
net-misc/httpie/httpie-2.4.0.ebuild | 58 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/httpie/Manifest b/net-misc/httpie/Manifest |
18 |
index 3a819235b23..5741b9a4447 100644 |
19 |
--- a/net-misc/httpie/Manifest |
20 |
+++ b/net-misc/httpie/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST httpie-2.2.0.tar.gz 1761927 BLAKE2B 3ce8acf4abf9cb189315e07e7f9c8dfc1b0a537696a2c9fd795e8e944c85c1df8e7e13fbaee68d3b93115296ba048e664d31245fe2c6b832123818292b4fac8d SHA512 00c1f34041854319816d7d643a79358723c27a3744f405d629b5361685745bfdd8ce0a0f127cb3d6746e46405d24562625ca37733a5955809d7bfc077ae5c533 |
23 |
DIST httpie-2.3.0.tar.gz 1769401 BLAKE2B e9bb5ca9ebb5fde3bed66ba15c46cccff1f8d5d01841f954fe4d19be92d3282cd3c19e1fc34b42fe1c36798438aa116f5bb91147864be9d8ee37030cb7796e16 SHA512 d0c5b46075892e9d6df76c1e3b430fcd768238c7fbdeda51368dc1bc7c657efc901088ccb7f1e6fc6e4f54dde4c9bcbe626dfa926c8ca1a6bcfd12e522414505 |
24 |
+DIST httpie-2.4.0.tar.gz 1772537 BLAKE2B 111451cc7dc353d5b586554f98ac715a3198f03e74d261944a5f021d2dcc948455500800222b323d182a2a067d0549bda7c318ab3a6c934b9a9beec64aff2db2 SHA512 44cc7ff4fe0f3d8c53a7dd750465f6b56c36f5bbac06d22b760579bd60949039e82313845699669a659ec91adc69dbeac22c06ddd63af64e6f2e0edecf3e732a |
25 |
|
26 |
diff --git a/net-misc/httpie/httpie-2.4.0.ebuild b/net-misc/httpie/httpie-2.4.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..ee9d95b7793 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/httpie/httpie-2.4.0.ebuild |
31 |
@@ -0,0 +1,58 @@ |
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_{7,8,9} ) |
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/pygments[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/requests-2.22.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/requests-toolbelt-0.9.1[${PYTHON_USEDEP}] |
57 |
+" |
58 |
+BDEPEND=" |
59 |
+ test? ( |
60 |
+ ${RDEPEND} |
61 |
+ dev-python/mock[${PYTHON_USEDEP}] |
62 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
63 |
+ dev-python/pytest-httpbin[${PYTHON_USEDEP}] |
64 |
+ ) |
65 |
+" |
66 |
+ |
67 |
+distutils_enable_tests pytest |
68 |
+ |
69 |
+python_test() { |
70 |
+ local skipped_tests=() |
71 |
+ |
72 |
+ skipped_tests+=( |
73 |
+ tests/test_uploads.py::test_chunked_json |
74 |
+ tests/test_uploads.py::test_chunked_form |
75 |
+ tests/test_uploads.py::test_chunked_stdin |
76 |
+ tests/test_uploads.py::TestMultipartFormDataFileUpload::test_multipart_chunked |
77 |
+ tests/test_uploads.py::TestRequestBodyFromFilePath::test_request_body_from_file_by_path_chunked |
78 |
+ tests/test_tokens.py::test_verbose_chunked |
79 |
+ ) |
80 |
+ |
81 |
+ pytest -v ${skipped_tests[@]/#/--deselect } || die "Tests failed with ${EPYTHON}" |
82 |
+} |
83 |
+ |
84 |
+python_install_all() { |
85 |
+ newbashcomp extras/httpie-completion.bash http |
86 |
+ insinto /usr/share/fish/vendor_completions.d |
87 |
+ newins extras/httpie-completion.fish http.fish |
88 |
+ distutils-r1_python_install_all |
89 |
+} |