From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1319594-garchives=archives.gentoo.org@lists.gentoo.org> 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 0A389158041 for <garchives@archives.gentoo.org>; Thu, 9 Sep 2021 11:20:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5A5BE0967; Thu, 9 Sep 2021 11:20:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 19F06E0967 for <gentoo-commits@lists.gentoo.org>; Thu, 9 Sep 2021 11:20:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 74E25335D6B for <gentoo-commits@lists.gentoo.org>; Thu, 9 Sep 2021 11:20:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B196E35 for <gentoo-commits@lists.gentoo.org>; Thu, 9 Sep 2021 11:20:30 +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: <1631186417.26a0bece0dcad9bf9a80919c143ea4e18a537185.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.15.0.ebuild X-VCS-Directories: dev-vcs/pre-commit/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 26a0bece0dcad9bf9a80919c143ea4e18a537185 X-VCS-Branch: master Date: Thu, 9 Sep 2021 11:20:30 +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: d821fcc2-9efb-420f-bab4-a3020ca565e8 X-Archives-Hash: e77a0c47db61e67cb14c92aaaf00c1ef commit: 26a0bece0dcad9bf9a80919c143ea4e18a537185 Author: Marek Szuba <marecki <AT> gentoo <DOT> org> AuthorDate: Thu Sep 9 10:46:20 2021 +0000 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> CommitDate: Thu Sep 9 11:20:17 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26a0bece dev-vcs/pre-commit: add 2.15.0 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> dev-vcs/pre-commit/Manifest | 1 + dev-vcs/pre-commit/pre-commit-2.15.0.ebuild | 59 +++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/dev-vcs/pre-commit/Manifest b/dev-vcs/pre-commit/Manifest index 3afd8a4ec95..c714de0e5c0 100644 --- a/dev-vcs/pre-commit/Manifest +++ b/dev-vcs/pre-commit/Manifest @@ -1 +1,2 @@ DIST pre-commit-2.13.0.tar.gz 252631 BLAKE2B 7e6b3af46dfaf9928d2cb2aa6cad05423bf6e417e2324af71b241e1aaa2eec6fcb271869f98c040cd4fb8c608a1fabd244c8286864f469a06c44684cd2bf33eb SHA512 5dfc297b3f900afef8f1c355b38ce086af7c836d1e577af8ec95ffb30e82df8b866131da4ff12933339bda63e4a90833c3852265d4f2d4a59bf92bce2b972a5e +DIST pre-commit-2.15.0.tar.gz 255545 BLAKE2B 8fbb1fd6b1298ff1c5a6884dae53c79d108e8c4b74d05d6be36d562327fd024432d60e6df4570217e1b3f4ad8e33ee4d0d54a5d940f4833a46d4e9cb59698b3c SHA512 b87985aa625509d7a21e31e5774f259c264ec74fef88fc5e290cbac0326cdbadc37ab54b5bf3048d815cf9bc6d4adb71619fcb84c955c1bc9741da8dfd34251c diff --git a/dev-vcs/pre-commit/pre-commit-2.15.0.ebuild b/dev-vcs/pre-commit/pre-commit-2.15.0.ebuild new file mode 100644 index 00000000000..f557aafa2eb --- /dev/null +++ b/dev-vcs/pre-commit/pre-commit-2.15.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 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_SETUPTOOLS=rdepend +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" + +# TODO: figure out why these tests - all of which invoke git - fail: +# - tests/main_test.py::test_all_cmds[autoupdate,hook-impl,install,install-hooks,migrate-config,run,uninstall], +# tests/main_test.py::test_try_repo: +# Calling "git rev-parse" fails with "fatal: not a git repository (or any of the parent directories): .git". +# NOT a sandbox issue it seems, as disabling it does not help. +# - tests/commands/install_uninstall_test.py::test_environment_not_sourced: +# Unexpected error "/usr/bin/env: 'python3.8': No such file or directory" - but only if pre-commit +# has previously been installed. +# - tests/commands/install_uninstall_test.py::test_installed_from_venv: +# the function invoking "git commit" returns 1 instead of 0, no details. +RESTRICT="test" + +RDEPEND="dev-vcs/git + $(python_gen_cond_dep ' + dev-python/cfgv[${PYTHON_USEDEP}] + dev-python/identify[${PYTHON_USEDEP}] + dev-python/nodeenv[${PYTHON_USEDEP}] + dev-python/pyyaml[${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 ) + +distutils_enable_tests --install pytest + +src_prepare() { + default + + # These tests 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. + rm -rf tests/languages tests/repository_test.py +}