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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 52C1D15810F for ; Fri, 9 Jun 2023 02:15:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8CEA1E0536; Fri, 9 Jun 2023 02:15:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 70BF0E0536 for ; Fri, 9 Jun 2023 02:15:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 46F8B335D3F for ; Fri, 9 Jun 2023 02:15:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9A3C3A71 for ; Fri, 9 Jun 2023 02:15:26 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1686274423.907305456cfd8197e012098bfaae3cfc6c494a29.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/requests-mock/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/requests-mock/Manifest dev-python/requests-mock/requests-mock-1.11.0.ebuild X-VCS-Directories: dev-python/requests-mock/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 907305456cfd8197e012098bfaae3cfc6c494a29 X-VCS-Branch: master Date: Fri, 9 Jun 2023 02:15:26 +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: 6c2c0002-190c-4c94-a832-b27e72f92a36 X-Archives-Hash: 74f942722cc1a8297800b008d8a2d82f commit: 907305456cfd8197e012098bfaae3cfc6c494a29 Author: Michał Górny gentoo org> AuthorDate: Thu Jun 8 15:43:37 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jun 9 01:33:43 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90730545 dev-python/requests-mock: Bump to 1.11.0 Signed-off-by: Michał Górny gentoo.org> dev-python/requests-mock/Manifest | 1 + .../requests-mock/requests-mock-1.11.0.ebuild | 49 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/dev-python/requests-mock/Manifest b/dev-python/requests-mock/Manifest index 5bc4b0672627..52b7c33a8684 100644 --- a/dev-python/requests-mock/Manifest +++ b/dev-python/requests-mock/Manifest @@ -1 +1,2 @@ DIST requests-mock-1.10.0.tar.gz 72627 BLAKE2B 4ce1838f03b732de4007c2e9b700876dcf8dba0f5eafef1292e0e40ae75e08f9b3bf74c3620d2d762944ccf9af248304929f57a337122b1a69d13355dc3f290e SHA512 873c9b219e2a2360872fac22c83371ce40f4dee45e6a0d40365f4f551271c2168a662dced6e8baad890b1dadfc03d21d4ce013f149d25a42d998af4f4fca2a79 +DIST requests-mock-1.11.0.tar.gz 74377 BLAKE2B f871bbd18b42668d9eb693b807a67a33c9fb7c4316966ad2c16800bf562be982c737e1c1a803e3c5b6d3cde8c3d789671b5fce7d54df308dc55b2ef73a641ff4 SHA512 8d161cb0f6183994053d4dd06b801c2614b7ac937798addcdc52ee8e3973a7ef874ca615ca1946ea4bc0e05ce36c5c813460f7a41b3254671095059536fd2961 diff --git a/dev-python/requests-mock/requests-mock-1.11.0.ebuild b/dev-python/requests-mock/requests-mock-1.11.0.ebuild new file mode 100644 index 000000000000..bdcf3889474d --- /dev/null +++ b/dev-python/requests-mock/requests-mock-1.11.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Mock out responses from the requests package" +HOMEPAGE=" + https://github.com/jamielennox/requests-mock/ + https://pypi.org/project/requests-mock/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/requests-2.3[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/pbr-0.8[${PYTHON_USEDEP}] + test? ( + dev-python/fixtures[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/requests-futures[${PYTHON_USEDEP}] + dev-python/testtools[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx doc/source +distutils_enable_tests pytest + +python_prepare_all() { + # Disable reno which only works inside a git repository + sed -i "s/'reno.sphinxext',//" doc/source/conf.py || die + # Remove the release notes section which requires reno + rm doc/source/release-notes.rst || die + sed -i '/^=============$/,/release-notes/d' doc/source/index.rst || die + # Disable a test which requires purl (not in the tree) + sed -e "/^import purl$/d" -e "s/test_with_purl/_&/" \ + -i tests/test_adapter.py || die + distutils-r1_python_prepare_all +}