mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
dev-vcs/pre-commit: bump to 4.7.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST pre-commit-4.5.1.gh.tar.gz 299858 BLAKE2B 416e842a618fda5d32ef8b40d9b9ea9ec181a1c915493c6647429229b361bf6138a8730016103a9772d11324c3e0503592c65aed5f8174e2d1397abc9d83cee4 SHA512 9600b09e10a4811886849ad881a3584c66a5f8a5ae217ef13e373df7fe78c2b5e72d7c9ae40c2174bda520a24c8bd26280c4292a3c500b2dd5879229c9a9a9fb
|
||||
DIST pre-commit-4.7.0.gh.tar.gz 302025 BLAKE2B a69e8d3d4d57bbd537a50bb52d05713fe9bd1210d9f76ea8803c91af645e1c6d15cdec3500c585a1aeb2b28db93aa4a35cfb2f581c9ee7bfc36c31f71f9bf70d SHA512 97100dc232f44f1c1ecc2c6003675065e872e9fae7e611199037da06443ef5b9522a5078c8675afaec81a72f2a54ce8adf208b989222465fb5e134a4d90f0caf
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
DISTUTILS_SINGLE_IMPL="ON"
|
||||
DISTUTILS_USE_PEP517="setuptools"
|
||||
EPYTEST_PLUGINS=( pytest-env )
|
||||
|
||||
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/re-assert[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
|
||||
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 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_impl
|
||||
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 )
|
||||
Reference in New Issue
Block a user