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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 03D31158088 for ; Sun, 16 Jan 2022 17:41:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3CC832BC03A; Sun, 16 Jan 2022 17:41:00 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2C362BC03D for ; Sun, 16 Jan 2022 17:40:59 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 677CC343026 for ; Sun, 16 Jan 2022 17:40:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD0342A7 for ; Sun, 16 Jan 2022 17:40:55 +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: <1642354851.5134c005d0229af41fb9e15c9cf6629c8e8c4a5b.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/installer/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/installer/Manifest dev-python/installer/installer-0.4.0_p20220115.ebuild X-VCS-Directories: dev-python/installer/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 5134c005d0229af41fb9e15c9cf6629c8e8c4a5b X-VCS-Branch: master Date: Sun, 16 Jan 2022 17:40:55 +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: 9b08eedd-9753-4213-8061-c0973d846d7a X-Archives-Hash: 42b157642eae7e600249a7e7331dab81 commit: 5134c005d0229af41fb9e15c9cf6629c8e8c4a5b Author: Michał Górny gentoo org> AuthorDate: Sat Jan 15 20:05:22 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Jan 16 17:40:51 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5134c005 dev-python/installer: Add 0.4.0_p20220115 snap with CLI patch Signed-off-by: Michał Górny gentoo.org> dev-python/installer/Manifest | 2 + .../installer/installer-0.4.0_p20220115.ebuild | 55 ++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/dev-python/installer/Manifest b/dev-python/installer/Manifest index 2d38fa076c4d..c8357cc23f43 100644 --- a/dev-python/installer/Manifest +++ b/dev-python/installer/Manifest @@ -1,2 +1,4 @@ DIST installer-0.4.0-py2.py3-none-any.whl.zip 451433 BLAKE2B 933b7e63b3d0306213789d493d4df112df26b432d63ecd1f8f21449520c34bd2ad542aac25069043fbb535c44f988dca927625eafd0a5a20489fc3ce2bcf84a2 SHA512 cf303bb422e329a36007b361034144a232ba021d4013bb8678dc7c326544e74ec9a3b3fe8b9d3696433dbbe90d2ce4a0ae8967fb054bd5ed49321d470be729a8 DIST installer-0.4.0.gh.tar.gz 466643 BLAKE2B 635854b3461995cda3b7afa507ca3fe35cae8210e79de0bbd46938c8f103d7840ceca8bb388c2c9533efc78150691f980c478485ee33bafe0bae6c08a6aef8c4 SHA512 13537c479bc8ead8f8b45c8e5c5182e8b1b32c2889df8015be7f517f390a9efbea6fa167e0886dfade6621a8a2d822bfd662ee0238d3d86689619ca4d5483b26 +DIST installer-0.4.0_p20220115-cli.patch 14552 BLAKE2B 6632c1472ae0a578f6c7ed0acf1bb0d89ece924626b68c0daa28d9a7d93826837adaf6b0d40f048c4f5c2986b4328ca565340137e7b7fa7f407f62ebddc70275 SHA512 f8c6369955e0bde2bff0b935c39748d02659bc6ca0341af405e2c1026cf145479ba0b908bd769cdc05f3cc920f881b894b6a5eb7ace643951e05250ec0486b80 +DIST installer-0.4.0_p20220115.gh.tar.gz 466532 BLAKE2B 6dea3f4bacb52c4983e111d420495ee157076342a823b7062c6e5b3e4d3b70e6b2e9cb024d0c7baba6f88ed70f4303ab071d1882bc9d8dd0726f82a3e406056f SHA512 fbb0d4c8642fa2cbe2fd3be2eef7044a0353f04c67ecce20aafed33a0d7877ff55872ca5ad51390ae7e02cdb7af5dbd57b662085b60d425be95da6643b061eaa diff --git a/dev-python/installer/installer-0.4.0_p20220115.ebuild b/dev-python/installer/installer-0.4.0_p20220115.ebuild new file mode 100644 index 000000000000..c6fad5e821fa --- /dev/null +++ b/dev-python/installer/installer-0.4.0_p20220115.ebuild @@ -0,0 +1,55 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=manual +PYTHON_COMPAT=( python3_{8..10} pypy3 ) +inherit distutils-r1 + +EGIT_COMMIT="bf68f7b045ffc08784af03cf2433548c9ee9e8ca" +DESCRIPTION="A library for installing Python wheels" +HOMEPAGE=" + https://pypi.org/project/installer/ + https://github.com/pradyunsg/installer/ + https://installer.readthedocs.io/en/latest/ +" +SRC_URI=" + https://github.com/pradyunsg/installer/archive/${EGIT_COMMIT}.tar.gz + -> ${P}.gh.tar.gz + https://files.pythonhosted.org/packages/py2.py3/${PN::1}/${PN}/${P%_p*}-py2.py3-none-any.whl + -> ${P%_p*}-py2.py3-none-any.whl.zip + https://patch-diff.githubusercontent.com/raw/pradyunsg/installer/pull/94.diff + -> ${P}-cli.patch +" +S=${WORKDIR}/${PN}-${EGIT_COMMIT} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# NB: newer git doesn't use mock anymore +BDEPEND=" + app-arch/unzip + test? ( + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${DISTDIR}"/${P}-cli.patch +) + +# do not use any build system to avoid circular deps +python_compile() { :; } + +python_test() { + local -x PYTHONPATH=src + epytest +} + +python_install() { + python_domodule src/installer "${WORKDIR}"/*.dist-info +}