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 54789158009 for ; Tue, 20 Jun 2023 12:55:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7EBB7E0841; Tue, 20 Jun 2023 12:55:58 +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 5BEDDE0841 for ; Tue, 20 Jun 2023 12:55:58 +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 0FDBA335D49 for ; Tue, 20 Jun 2023 12:55:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 45B9AA80 for ; Tue, 20 Jun 2023 12:55:55 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1687265700.ac455c0091f470dd5c0fb4aee483e2b6bed7985a.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/yapf/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/yapf/Manifest dev-python/yapf/yapf-0.40.1.ebuild X-VCS-Directories: dev-python/yapf/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: ac455c0091f470dd5c0fb4aee483e2b6bed7985a X-VCS-Branch: master Date: Tue, 20 Jun 2023 12:55: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: c4e1f349-2dc9-4f07-b1a8-b131b2918b17 X-Archives-Hash: d98a2c43d4b54e637647e35461c8bb99 commit: ac455c0091f470dd5c0fb4aee483e2b6bed7985a Author: Sebastian Pipping gentoo org> AuthorDate: Tue Jun 20 12:55:00 2023 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Tue Jun 20 12:55:00 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac455c00 dev-python/yapf: 0.40.1 Signed-off-by: Sebastian Pipping gentoo.org> dev-python/yapf/Manifest | 1 + dev-python/yapf/yapf-0.40.1.ebuild | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/dev-python/yapf/Manifest b/dev-python/yapf/Manifest index 49cab72a8330..b0c90fa0be51 100644 --- a/dev-python/yapf/Manifest +++ b/dev-python/yapf/Manifest @@ -1,2 +1,3 @@ DIST yapf-0.33.0.gh.tar.gz 186345 BLAKE2B 0ce1b0ca9e3838eecacf36c8f666ad58c0f35fbee1384ae5e02f3294892dd23003c39af954ed9deb3aac70397ed9924b92233e229362da1907a9cd2c692fb7e6 SHA512 82846900a9aec22ad2519ebb29fcd3d6e5a787e71e93f80c0169cf796201ae5e970ad7307f2b528e6454264cf61ca96ac4f99442ce6a52b7cebf78ceb2c9a395 DIST yapf-0.40.0.gh.tar.gz 226057 BLAKE2B 34d08d952f462e17f6f4388cb8203f49e7a6236f28a673f8d4b532c87bfd9ebe3a9c42fd52e895c0e6f507611de14be87ba51422db6f9a0f42234bc4727fa224 SHA512 5c635618820fd0e4bc8065e240280dd41a533101f6457596b398807a61f8406681cf0555188ccab16222e7b1c41a83871473a4069a0d1594319da9d0a850f999 +DIST yapf-0.40.1.gh.tar.gz 226063 BLAKE2B 57dd62e32d06312a5a8964fb7822cd87321ae1548be67a1824f5d6efd90e86c629452faf71722a1dfc8f70052f63020ab88d55501c140f33660368c56cce2ea4 SHA512 7d44ea8976c93db850f0a139535962e166b4e488e47761720747686061ad7d7d3bbb2771f2e1519b7db8af630f64b7bcf71143faa56d448c9d098c2d151bffeb diff --git a/dev-python/yapf/yapf-0.40.1.ebuild b/dev-python/yapf/yapf-0.40.1.ebuild new file mode 100644 index 000000000000..207f1b6e2b11 --- /dev/null +++ b/dev-python/yapf/yapf-0.40.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2018-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 + +DESCRIPTION="A formatter for Python files" +HOMEPAGE=" + https://github.com/google/yapf/ + https://pypi.org/project/yapf/ +" +SRC_URI=" + https://github.com/google/yapf/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/importlib-metadata-6.6.0[${PYTHON_USEDEP}] + >=dev-python/platformdirs-3.5.1[${PYTHON_USEDEP}] + >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] +" + +python_test() { + "${EPYTHON}" -m unittest discover -v -p '*_test.py' || + die "Tests failed with ${EPYTHON}" +}