commit:     f34db91b711cd2f8e8b64c6267ae47cac638d234
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 28 15:05:57 2025 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Fri Feb 28 15:06:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f34db91b

app-shells/autojump: Drop dependency on pre-commit

Thanks to Eli Schwartz for pointing this out.

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 ...-22.5.3-r3.ebuild => autojump-22.5.3-r4.ebuild} |  9 +++----
 .../autojump/files/22.5.3-Drop-pre-commit.patch    | 29 ++++++++++++++++++++++
 2 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/app-shells/autojump/autojump-22.5.3-r3.ebuild 
b/app-shells/autojump/autojump-22.5.3-r4.ebuild
similarity index 93%
rename from app-shells/autojump/autojump-22.5.3-r3.ebuild
rename to app-shells/autojump/autojump-22.5.3-r4.ebuild
index 521f272beb40..816a9201beda 100644
--- a/app-shells/autojump/autojump-22.5.3-r3.ebuild
+++ b/app-shells/autojump/autojump-22.5.3-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -21,16 +21,13 @@ REQUIRED_USE="ipython? ( ${PYTHON_REQUIRED_USE} )"
 
 RESTRICT="!test? ( test )"
 RDEPEND="ipython? ( ${PYTHON_DEPS} )"
-DEPEND="${PYTHON_DEPS}
-       test? (
-               >=dev-vcs/pre-commit-0.7.0[${PYTHON_SINGLE_USEDEP}]
-       )
-"
+DEPEND="${PYTHON_DEPS}"
 
 distutils_enable_tests pytest
 
 PATCHES=(
        "${FILESDIR}"/${PV}-Use-mock-from-unittest.patch
+       "${FILESDIR}"/${PV}-Drop-pre-commit.patch
 )
 
 src_prepare() {

diff --git a/app-shells/autojump/files/22.5.3-Drop-pre-commit.patch 
b/app-shells/autojump/files/22.5.3-Drop-pre-commit.patch
new file mode 100644
index 000000000000..cb0ce2a7c93f
--- /dev/null
+++ b/app-shells/autojump/files/22.5.3-Drop-pre-commit.patch
@@ -0,0 +1,29 @@
+From c625811d9a080a3b27c62cdbc05dbc0ff6b73855 Mon Sep 17 00:00:00 2001
+From: Matt Turner <[email protected]>
+Date: Fri, 28 Feb 2025 10:02:30 -0500
+Subject: [PATCH] Drop pre-commit
+
+---
+ tox.ini | 7 -------
+ 1 file changed, 7 deletions(-)
+
+diff --git ./tox.ini ./tox.ini
+index 8a21b97..0f08577 100644
+--- ./tox.ini
++++ ./tox.ini
+@@ -22,12 +22,5 @@ commands =
+         py.test -vv -rxs --tb native -s --strict {posargs:tests}
+     coverage report -m
+ 
+-
+-[testenv:pre-commit]
+-deps =
+-    pre-commit>=0.7.0
+-commands =
+-    pre-commit {posargs}
+-
+ [pytest]
+ norecursedirs = .git .tox docs
+-- 
+2.45.3
+

Reply via email to