From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1384142-garchives=archives.gentoo.org@lists.gentoo.org> 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 30A4515808B for <garchives@archives.gentoo.org>; Sat, 9 Apr 2022 23:35:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 372DBE09A8; Sat, 9 Apr 2022 23:35:53 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75E94E09A8 for <gentoo-commits@lists.gentoo.org>; Sat, 9 Apr 2022 23:35:52 +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 7DFC73417DF for <gentoo-commits@lists.gentoo.org>; Sat, 9 Apr 2022 23:35:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E5319396 for <gentoo-commits@lists.gentoo.org>; Sat, 9 Apr 2022 23:35:49 +0000 (UTC) From: "Marek Szuba" <marecki@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" <marecki@gentoo.org> Message-ID: <1649547340.78452c0d87a91ff4781024985dc481facf1f03de.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/pre-commit/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-vcs/pre-commit/Manifest dev-vcs/pre-commit/pre-commit-2.18.1.ebuild X-VCS-Directories: dev-vcs/pre-commit/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 78452c0d87a91ff4781024985dc481facf1f03de X-VCS-Branch: master Date: Sat, 9 Apr 2022 23:35:49 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7a8bc9a7-c5dd-43bb-8ff9-930ba040a766 X-Archives-Hash: 3545cf81a347f68e90c219bf1bee00f7 commit: 78452c0d87a91ff4781024985dc481facf1f03de Author: Marek Szuba <marecki <AT> gentoo <DOT> org> AuthorDate: Sat Apr 9 23:29:25 2022 +0000 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> CommitDate: Sat Apr 9 23:35:40 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78452c0d dev-vcs/pre-commit: add 2.18.1 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> dev-vcs/pre-commit/Manifest | 1 + dev-vcs/pre-commit/pre-commit-2.18.1.ebuild | 51 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/dev-vcs/pre-commit/Manifest b/dev-vcs/pre-commit/Manifest index 8f1598c77ea6..6fb759317b08 100644 --- a/dev-vcs/pre-commit/Manifest +++ b/dev-vcs/pre-commit/Manifest @@ -1 +1,2 @@ DIST pre-commit-2.17.0.tar.gz 261131 BLAKE2B 114fac379690ee4c1c60970a1b0fbcd20faea785837c174514c3fc3d247ec79f52fb5f14c96a762921395d682017a9cc406dc59b3042fc955cd65019fb781a3f SHA512 54b5af9088083ad0c57fab09c06c35bd5921b29348454fc8fc16081d3c6a2e0add13f8a18f06b7408a0e06babc5e15659b37ab53797edd3514d516059e2343a8 +DIST pre-commit-2.18.1.tar.gz 263642 BLAKE2B 0ddd0e8bc7450c6bce2080155851c4b8d7e81fe1683dbea389d24e79906b52850ca8cc16b57a4b6192a389a10f8e9d0dfeaa23deaf59027093dc4db61b4533c1 SHA512 38ad176675b40eb4fd2475e51f3079cff5d84733401592a8a00021cba6656f01a38c5835298db50607fd8d188728c127600c731795fbc149436a5e4aada94fc1 diff --git a/dev-vcs/pre-commit/pre-commit-2.18.1.ebuild b/dev-vcs/pre-commit/pre-commit-2.18.1.ebuild new file mode 100644 index 000000000000..2794cad11571 --- /dev/null +++ b/dev-vcs/pre-commit/pre-commit-2.18.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 + +DESCRIPTION="A framework for managing and maintaining multi-language Git pre-commit hooks" +HOMEPAGE="https://pre-commit.com/" +SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" + +RDEPEND="dev-vcs/git + $(python_gen_cond_dep ' + >=dev-python/cfgv-2.0.0[${PYTHON_USEDEP}] + >=dev-python/identify-1.0.0[${PYTHON_USEDEP}] + >=dev-python/nodeenv-0.11.1[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.0.8[${PYTHON_USEDEP}] + ')" +BDEPEND="test? ( + $(python_gen_cond_dep ' + dev-python/pytest-env[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + ') +)" + +DOCS=( CHANGELOG.md CONTRIBUTING.md README.md ) + +# The former two require a boatload of dependencies (e.g. Conda, Go, R and more) in order to run +# and while some of them do include "skip if not found" logic, most of them do not. +# The latter consistently fail with +# Calling "git rev-parse" fails with "fatal: not a git repository (or any of the parent directories): .git". +# including with the sandbox disabled and when run manually with tox. +EPYTEST_DESELECT=( + tests/languages/ + tests/repository_test.py + tests/main_test.py::test_all_cmds + tests/main_test.py::test_try_repo +) + +distutils_enable_tests pytest