public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/pre-commit/
Date: Thu,  9 Sep 2021 11:20:30 +0000 (UTC)	[thread overview]
Message-ID: <1631186417.26a0bece0dcad9bf9a80919c143ea4e18a537185.marecki@gentoo> (raw)

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
+}


             reply	other threads:[~2021-09-09 11:20 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-09 11:20 Marek Szuba [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-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=1631186417.26a0bece0dcad9bf9a80919c143ea4e18a537185.marecki@gentoo \
    --to=marecki@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