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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AC36A1382C5 for ; Tue, 25 May 2021 12:31:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E25D0E075F; Tue, 25 May 2021 12:31:14 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 BC749E075F for ; Tue, 25 May 2021 12:31:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 6CF28335DA7 for ; Tue, 25 May 2021 12:31:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CF356791 for ; Tue, 25 May 2021 12:31:11 +0000 (UTC) From: "Marek Szuba" 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" Message-ID: <1621945858.601bee8634604f80b438ed706f46a45c97554ac1.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.13.0.ebuild X-VCS-Directories: dev-vcs/pre-commit/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 601bee8634604f80b438ed706f46a45c97554ac1 X-VCS-Branch: master Date: Tue, 25 May 2021 12:31:11 +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: d3941ba1-b1a3-468c-8615-bc056f066ffa X-Archives-Hash: d8bbadeff0a87a1390d9f989d29d44c0 commit: 601bee8634604f80b438ed706f46a45c97554ac1 Author: Marek Szuba gentoo org> AuthorDate: Tue May 25 12:03:27 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Tue May 25 12:30:58 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=601bee86 dev-vcs/pre-commit: add 2.13.0 Signed-off-by: Marek Szuba gentoo.org> dev-vcs/pre-commit/Manifest | 1 + dev-vcs/pre-commit/pre-commit-2.13.0.ebuild | 59 +++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/dev-vcs/pre-commit/Manifest b/dev-vcs/pre-commit/Manifest index b94fd505fbe..6a58d3a08e1 100644 --- a/dev-vcs/pre-commit/Manifest +++ b/dev-vcs/pre-commit/Manifest @@ -1 +1,2 @@ DIST pre-commit-2.12.1.tar.gz 246313 BLAKE2B 45ee7c8217f88eeaa2e9eb11efd79291d6577134799b328f252bd4d4283c11754b36ffeedf045a5101c6edc8cdf330d566e404ae34f1a831a830e8e0346337e9 SHA512 6dbd804e1001276e6e8cea7c31b321a05798b38c59f37d5900317c3a9ceccf5103afcbdfd29f9438be3595a18ae15eb09dd222c91c439da47d7728a0e0a55c70 +DIST pre-commit-2.13.0.tar.gz 252631 BLAKE2B 7e6b3af46dfaf9928d2cb2aa6cad05423bf6e417e2324af71b241e1aaa2eec6fcb271869f98c040cd4fb8c608a1fabd244c8286864f469a06c44684cd2bf33eb SHA512 5dfc297b3f900afef8f1c355b38ce086af7c836d1e577af8ec95ffb30e82df8b866131da4ff12933339bda63e4a90833c3852265d4f2d4a59bf92bce2b972a5e diff --git a/dev-vcs/pre-commit/pre-commit-2.13.0.ebuild b/dev-vcs/pre-commit/pre-commit-2.13.0.ebuild new file mode 100644 index 00000000000..d2e6b60c37b --- /dev/null +++ b/dev-vcs/pre-commit/pre-commit-2.13.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) +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" + +# 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 +}