dev-vcs/pre-commit: add 3.6.2

Closes: #3052
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
Andreas Billmeier 2024-03-10 20:30:47 +01:00
parent 83febaedf6
commit 78b2647eb0
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 67 additions and 5 deletions

View File

@ -621,8 +621,8 @@ There are 1903 Ebuilds in total, 1892 of them have in total 1911 (42 different)
|License| Ebuilds using it|
|-------|-----|
|MIT|1070|
|Apache-2.0|441|
|MIT|1071|
|Apache-2.0|440|
|GPL-3|127|
|BSD|105|
|LGPL-3|25|

View File

@ -1,5 +1,7 @@
AUX pre-commit-2.20.0-tests_git_file_transport.patch 2021 BLAKE2B 764b353d3268176162ae2a5d6fc97c0cb9ad7d2cd5de69f19f8fcd78c8bba507f25f53cd3d6c767fbcb9b9f885f8eceda2fc82d1b6ed54f34c1d4907d0fddd72 SHA512 6d8a3b5c9026f5c20a84d581ca92d74743643de010af468217b2f44324560d56b504e033ccebe102194492b25a01a4ed503995c222561ce406577fce211c2eab
AUX pre-commit-3.1.1-tests_git_file_transport.patch 1527 BLAKE2B 18d047f3b8a6fdc3da77aa5b8d9f60970ab5b69adc3790489ceffc17839a4cd21ed46428c5e2e98b50278b2c4dc49e35a09dd778000546828327ae96f910f95b SHA512 36cb194250dc0fefad2900452447ab590f678e6cd5edf07a7f072363733c263b7cb1167297c465a9372d4a38ab77a6c057046c66b872a958132a97d1a937d029
DIST pre-commit-3.4.0.gh.tar.gz 268485 BLAKE2B 9fd611fd8d40e8de5a1a59ab50cf08dbb39f6d8938a03ab006045b7f0f031f79c2355a0f526e2ce6fa2452121322aeabe6a2d99c15e9b7d17f944ca695beb827 SHA512 f3f37bb3e363286682043af5ae804575f915877282ba986a23ffaf4777dc172c1a051f81e67fccd0f5d064c2f58801f920eb9449fe170856cc124a54d5588862
EBUILD pre-commit-3.4.0.ebuild 1703 BLAKE2B 2b012add57cbfb2b2c69359275abae0563da463fb7cd5b3da93948c4ff3e53eed600469f0c3e89b2f611ec527d44070ddabacaf2056e9e8b9991defbe73c6bf1 SHA512 d5dc361c394a62517d40f9122d019f75a168e7dfa10118785fdc16ca24c2451fca52c69ad5899f22b8c5d19da6ef23a0d176d19e69bef8a009276667cb4417c9
DIST pre-commit-3.6.2.gh.tar.gz 269614 BLAKE2B d927c8ac5024a09ffeba2cb728056c012ae2f6a9ea2acc3a62c9fb46360901804f56d745f4a6a4f33055caf079873507ba497d1cfa01d85a653f8702915826d3 SHA512 a99031e8e5f8b1bff05c8f5fa8d7fac4215d6d1828e8f64a35188345033a6982ce3673ebcf30883ce185e03f3f4179cdc620a383db65f914d0f6913973fc62ea
EBUILD pre-commit-3.4.0.ebuild 1703 BLAKE2B f4819e3e6e5e35b417356cd156a20da4348f2e389cea37aae1b174f5e4f36b554f4b7c32bbf5ef8ee1031d6a3ba872e0d2adadffb98100327b5020ef898aa6be SHA512 e493d9aaa42eb1c744e51c50274094ec7603bacecf6a01d98ce5d6b3224006ead8a8a84a7ce6514ad1b397f7d2e28495aba69b72071872b4e0abbb1698f1e69d
EBUILD pre-commit-3.6.2.ebuild 1930 BLAKE2B 262b74095ac6ad3483be5af6a86713980d3cda7933348b3415b990374b3cce705d572be5cb03a25e088a1f1e4dd1b3ac1e9bd0c1712072c6428f725368bb739f SHA512 1acb78c79d8147250c6004b3eefb1d804993cd1ce9f09817392fa9099e39902a09a7f346f3aa6183544f918d6672b87068322bd539b63805557c868be4c3990c
MISC metadata.xml 519 BLAKE2B 7469b66ef61333b6a6c6b48a1c2ec373f0d3f75dc2b8cd5a9807bf26a72022c437b88b14907617317bab7c19c9a2300357c71dfe28b67828671bee0d59e1ccd2 SHA512 343867cf7f60f4456d9818ba7c0a652496c8c3ce1b5cca2b2be1510c2af793b062a4f3902d02f60c2874563bbd61691668370e25349c54ddc89aa5c425affc6d

View File

@ -1,9 +1,9 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_COMPAT=( python3_{11..12} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_REQ_USE="sqlite"

View File

@ -0,0 +1,60 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..12} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
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}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
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="test? (
$(python_gen_cond_dep '
dev-python/pytest-env[${PYTHON_USEDEP}]
dev-python/re-assert[${PYTHON_USEDEP}]
')
sys-apps/coreutils[-multicall]
)"
PATCHES=(
"${FILESDIR}"/${PN}-3.1.1-tests_git_file_transport.patch
)
DOCS=( CHANGELOG.md CONTRIBUTING.md README.md )
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