From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/pre-commit/
Date: Wed, 19 Mar 2025 20:52:17 +0000 (UTC) [thread overview]
Message-ID: <1742417471.4795365ffbf8baeac90b72f286dd8f097c89522f.xgqt@gentoo> (raw)
commit: 4795365ffbf8baeac90b72f286dd8f097c89522f
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 19 16:07:15 2025 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Mar 19 20:51:11 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4795365f
dev-vcs/pre-commit: bump to 4.2.0
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
dev-vcs/pre-commit/Manifest | 1 +
dev-vcs/pre-commit/pre-commit-4.2.0.ebuild | 76 ++++++++++++++++++++++++++++++
2 files changed, 77 insertions(+)
diff --git a/dev-vcs/pre-commit/Manifest b/dev-vcs/pre-commit/Manifest
index c849381f9fa1..6817631a59ea 100644
--- a/dev-vcs/pre-commit/Manifest
+++ b/dev-vcs/pre-commit/Manifest
@@ -1,2 +1,3 @@
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
+DIST pre-commit-4.2.0.gh.tar.gz 289863 BLAKE2B 1f338e9b610f79ec4bd537ab69110f86b36e8ff2f84628b5b7a54af4312f43a358f9c8da7c54c7327512cd14ec39819aa3724009dae11c9d016ef5beae6127e8 SHA512 6843c56ae06c8c2cabb23e72217a1a8696ede4e4ddf2d4fae28c43076438e47e6f9d73642377b529ce629f184ece4c0076df613afff233ca1e28c5aa672f3b4a
diff --git a/dev-vcs/pre-commit/pre-commit-4.2.0.ebuild b/dev-vcs/pre-commit/pre-commit-4.2.0.ebuild
new file mode 100644
index 000000000000..dfe27ae8cc08
--- /dev/null
+++ b/dev-vcs/pre-commit/pre-commit-4.2.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 )
next reply other threads:[~2025-03-19 20:52 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-19 20:52 Maciej Barć [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-01 13:16 [gentoo-commits] repo/gentoo:master commit in: dev-vcs/pre-commit/ Maciej Barć
2025-02-28 13:59 Maciej Barć
2025-02-28 13:42 Maciej Barć
2025-02-28 13:42 Maciej Barć
2025-01-06 1:37 Sam James
2025-01-05 23:22 Sam James
2024-12-01 17:29 Maciej Barć
2024-09-04 8:37 Maciej Barć
2024-09-04 8:09 Maciej Barć
2024-09-04 8:09 Maciej Barć
2024-09-04 1:57 Sam James
2024-09-04 1:57 Sam James
2024-08-01 21:55 Sam James
2024-08-01 21:55 Sam James
2024-08-01 13:07 Maciej Barć
2024-08-01 13:07 Maciej Barć
2024-07-09 2:56 Sam James
2024-07-09 2:56 Sam James
2024-06-28 14:00 Maciej Barć
2024-06-28 14:00 Maciej Barć
2024-04-10 10:37 Marek Szuba
2024-04-10 10:37 Marek Szuba
2024-02-25 20:19 Sam James
2024-02-25 20:19 Sam James
2023-12-25 13:57 Marek Szuba
2023-11-06 15:00 Marek Szuba
2023-10-26 0:31 Marek Szuba
2023-08-22 11:16 Sam James
2023-08-22 10:33 Sam James
2023-08-21 14:56 Marek Szuba
2023-07-10 23:04 Marek Szuba
2023-05-24 20:41 Marek Szuba
2023-05-24 20:41 Marek Szuba
2023-05-21 11:25 Marek Szuba
2023-04-25 23:17 Sam James
2023-04-08 21:26 Marek Szuba
2023-03-26 0:51 Sam James
2023-03-26 0:51 Sam James
2023-03-25 21:48 Marek Szuba
2023-02-05 23:03 Marek Szuba
2023-02-01 23:08 Marek Szuba
2022-12-13 11:02 Marek Szuba
2022-11-15 8:58 Marek Szuba
2022-11-15 2:53 Sam James
2022-11-15 2:53 Sam James
2022-09-01 23:22 Marek Szuba
2022-09-01 19:14 Sam James
2022-09-01 19:14 Sam James
2022-07-13 15:55 Marek Szuba
2022-06-30 9:02 Marek Szuba
2022-06-30 7:01 Agostino Sarubbo
2022-06-29 11:58 Sam James
2022-05-30 10:42 Marek Szuba
2022-04-09 23:35 Marek Szuba
2022-02-24 14:22 Marek Szuba
2022-02-24 14:04 Sam James
2022-02-24 9:37 Jakov Smolić
2022-01-20 22:14 Marek Szuba
2022-01-01 0:23 Marek Szuba
2021-10-21 23:28 Sam James
2021-10-21 23:28 Sam James
2021-09-09 14:17 Marek Szuba
2021-09-09 11:20 Marek Szuba
2021-07-24 4:09 Sam James
2021-07-24 4:09 Sam James
2021-07-12 21:59 Sam James
2021-06-25 22:49 Marek Szuba
2021-06-25 19:33 Sam James
2021-06-09 15:19 Marek Szuba
2021-06-08 16:54 Sergei Trofimovich
2021-05-26 6:49 Agostino Sarubbo
2021-05-25 12:31 Marek Szuba
2021-04-27 11:05 Marek Szuba
2021-04-22 16:51 Marek Szuba
2021-04-16 18:25 Marek Szuba
2021-04-16 18:25 Marek Szuba
2021-04-16 15:35 Marek Szuba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1742417471.4795365ffbf8baeac90b72f286dd8f097c89522f.xgqt@gentoo \
--to=xgqt@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox