From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9CF31158041 for ; Wed, 8 Sep 2021 00:18:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 29B07E08F2; Wed, 8 Sep 2021 00:18:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ABCDEE0882 for ; Wed, 8 Sep 2021 00:18:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8406C342A95 for ; Wed, 8 Sep 2021 00:18:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8F781C0 for ; Wed, 8 Sep 2021 00:18:03 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1631060257.e35c8f61192e82cd6ab1eedd093cc42cdf335c3e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/httpie/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/httpie/Manifest net-misc/httpie/httpie-2.5.0.ebuild X-VCS-Directories: net-misc/httpie/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e35c8f61192e82cd6ab1eedd093cc42cdf335c3e X-VCS-Branch: master Date: Wed, 8 Sep 2021 00:18:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 15fdc92a-3a7b-4b87-8c79-678adf6449d0 X-Archives-Hash: 093b8d1800612e53d85d1f48cc2f8de3 commit: e35c8f61192e82cd6ab1eedd093cc42cdf335c3e Author: Sam James gentoo org> AuthorDate: Wed Sep 8 00:15:56 2021 +0000 Commit: Sam James gentoo org> CommitDate: Wed Sep 8 00:17:37 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e35c8f61 net-misc/httpie: add 2.5.0 Closes: https://bugs.gentoo.org/809377 Closes: https://bugs.gentoo.org/809284 Signed-off-by: Sam James gentoo.org> net-misc/httpie/Manifest | 1 + net-misc/httpie/httpie-2.5.0.ebuild | 60 +++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/net-misc/httpie/Manifest b/net-misc/httpie/Manifest index 9fc9517f543..3779e5c114a 100644 --- a/net-misc/httpie/Manifest +++ b/net-misc/httpie/Manifest @@ -1 +1,2 @@ DIST httpie-2.4.0.tar.gz 1772537 BLAKE2B 111451cc7dc353d5b586554f98ac715a3198f03e74d261944a5f021d2dcc948455500800222b323d182a2a067d0549bda7c318ab3a6c934b9a9beec64aff2db2 SHA512 44cc7ff4fe0f3d8c53a7dd750465f6b56c36f5bbac06d22b760579bd60949039e82313845699669a659ec91adc69dbeac22c06ddd63af64e6f2e0edecf3e732a +DIST httpie-2.5.0.tar.gz 1105177 BLAKE2B 6e16868c81522d4e6d2fc0a4e093c190f18ced720b35217930865ae3f8e168193cc33dfecc13c5d310f52647d6e79d17b247f56e56e8586d633a2d9502be66a7 SHA512 f14aa23fea7578181b9bd6ededea04de9ddf0b2f697b23f76d2d96e2c17b95617318c711750bad6af550400dbc03732ab17fdf84e59d577f33f073e600a55330 diff --git a/net-misc/httpie/httpie-2.5.0.ebuild b/net-misc/httpie/httpie-2.5.0.ebuild new file mode 100644 index 00000000000..b2e48e8373f --- /dev/null +++ b/net-misc/httpie/httpie-2.5.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{8,9,10} ) +PYTHON_REQ_USE="ssl(+)" + +inherit bash-completion-r1 distutils-r1 + +DESCRIPTION="Modern command line HTTP client" +HOMEPAGE="https://httpie.org/ https://pypi.org/project/httpie/" +SRC_URI="https://github.com/jakubroztocil/httpie/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/defusedxml[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + >=dev-python/requests-2.22.0[${PYTHON_USEDEP}] + >=dev-python/requests-toolbelt-0.9.1[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local skipped_tests=() + + skipped_tests+=( + tests/test_uploads.py::test_chunked_json + tests/test_uploads.py::test_chunked_form + tests/test_uploads.py::test_chunked_stdin + tests/test_uploads.py::TestMultipartFormDataFileUpload::test_multipart_chunked + tests/test_uploads.py::TestRequestBodyFromFilePath::test_request_body_from_file_by_path_chunked + tests/test_tokens.py::test_verbose_chunked + ) + + pytest -v ${skipped_tests[@]/#/--deselect } || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/httpie-completion.bash http + insinto /usr/share/fish/vendor_completions.d + newins extras/httpie-completion.fish http.fish + distutils-r1_python_install_all +}