From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1722630-garchives=archives.gentoo.org@lists.gentoo.org> 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 finch.gentoo.org (Postfix) with ESMTPS id 437701582EF for <garchives@archives.gentoo.org>; Fri, 28 Feb 2025 13:42:32 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 27C133431FC for <garchives@archives.gentoo.org>; Fri, 28 Feb 2025 13:42:32 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id EC0DB1102F2; Fri, 28 Feb 2025 13:42:24 +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 bobolink.gentoo.org (Postfix) with ESMTPS id E6A1F1102F2 for <gentoo-commits@lists.gentoo.org>; Fri, 28 Feb 2025 13:42:24 +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 98C823431F7 for <gentoo-commits@lists.gentoo.org>; Fri, 28 Feb 2025 13:42:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 046962777 for <gentoo-commits@lists.gentoo.org>; Fri, 28 Feb 2025 13:42:23 +0000 (UTC) From: "Maciej Barć" <xgqt@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, "Maciej Barć" <xgqt@gentoo.org> Message-ID: <1740750139.9e156c1918cf9f631f4fcc1f7f596c8dd7baebf6.xgqt@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-4.1.0.ebuild X-VCS-Directories: dev-vcs/pre-commit/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 9e156c1918cf9f631f4fcc1f7f596c8dd7baebf6 X-VCS-Branch: master Date: Fri, 28 Feb 2025 13:42:23 +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: b172fd96-2660-42b0-8a2e-e277222f1c5c X-Archives-Hash: 35ab5aa60e2dfd9762d54f692c1ab0e2 commit: 9e156c1918cf9f631f4fcc1f7f596c8dd7baebf6 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Fri Feb 28 12:10:27 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Fri Feb 28 13:42:19 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e156c19 dev-vcs/pre-commit: bump to 4.1.0 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> dev-vcs/pre-commit/Manifest | 1 + dev-vcs/pre-commit/pre-commit-4.1.0.ebuild | 76 ++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/dev-vcs/pre-commit/Manifest b/dev-vcs/pre-commit/Manifest index 33f05ef4c049..c849381f9fa1 100644 --- a/dev-vcs/pre-commit/Manifest +++ b/dev-vcs/pre-commit/Manifest @@ -1 +1,2 @@ DIST pre-commit-4.0.1.gh.tar.gz 286821 BLAKE2B 2d38ef4ad06744e11a75a9faddcf90f1fbb60f597d85782bf8065e90e746e62de0f7396ad09e3d03502208114ed75ed57f05ae143470b349a9b1dd6860ba72bd SHA512 93c01e4d64aa1010bdaac6e1774497fe38f757cc6b67b7546332c5fe3846583fc5ac71f70bb257e5bbe24062e060307b49abdcb539538ccedeb2cdf2243908a4 +DIST pre-commit-4.1.0.gh.tar.gz 289203 BLAKE2B 8a3264dcbc01f6a7544b7f8425f320e701eb8aad63a4be9843bec5c95cda3bc47a8458b94967eaf4fad5d24c5b86062c999de0e482386293d6562aa5b4244631 SHA512 d10f90da9c8b2130cd6c17d337787648fb28774e5b4df4017cd57264530dca87b03a07e549b46cc2e5c8f292c34c0890c4940f03ed132a7a274176c45f387607 diff --git a/dev-vcs/pre-commit/pre-commit-4.1.0.ebuild b/dev-vcs/pre-commit/pre-commit-4.1.0.ebuild new file mode 100644 index 000000000000..dfe27ae8cc08 --- /dev/null +++ b/dev-vcs/pre-commit/pre-commit-4.1.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) +PYTHON_REQ_USE="sqlite" +DISTUTILS_SINGLE_IMPL="ON" +DISTUTILS_USE_PEP517="setuptools" + +inherit distutils-r1 + +DESCRIPTION="A framework for managing and maintaining multi-language Git pre-commit hooks" +HOMEPAGE="https://pre-commit.com/ + https://github.com/pre-commit/pre-commit/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + + KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~x86" +fi + +LICENSE="MIT" +SLOT="0" + +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/virtualenv-20.10.0[${PYTHON_USEDEP}] + ') +" +# coreutils requirement, see bug #885559 +BDEPEND=" + sys-apps/coreutils[-multicall] + test? ( + $(python_gen_cond_dep ' + dev-python/pytest-env[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + ') + ) +" + +PATCHES=( "${FILESDIR}/${PN}-3.1.1-tests_git_file_transport.patch" ) + +EPYTEST_DESELECT=( + # All of these 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. + tests/languages/ + tests/repository_test.py + + # These three 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. + tests/main_test.py::test_all_cmds + tests/main_test.py::test_hook_stage_migration + tests/main_test.py::test_try_repo + + # These two fail if pre-commit is already installed (Bug #894502) + tests/commands/install_uninstall_test.py::test_environment_not_sourced + tests/commands/install_uninstall_test.py::test_installed_from_venv +) + +distutils_enable_tests pytest + +DOCS=( CHANGELOG.md CONTRIBUTING.md README.md )