diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-25 19:30:41 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-25 19:30:41 +0000 |
commit | 026061ba423025e6713112920f290759cdee03c4 (patch) | |
tree | 0e557363849e4d5c1320820fcf175bc1ec9690ab /dev-vcs/pre-commit | |
parent | 479921825a5c44a5fbcd5441f00ee98e54db9bac (diff) |
gentoo auto-resync : 25:12:2023 - 19:30:41
Diffstat (limited to 'dev-vcs/pre-commit')
-rw-r--r-- | dev-vcs/pre-commit/Manifest | 2 | ||||
-rw-r--r-- | dev-vcs/pre-commit/pre-commit-3.6.0.ebuild | 60 |
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-vcs/pre-commit/Manifest b/dev-vcs/pre-commit/Manifest index b1b4c8b5003f..6c103256b427 100644 --- a/dev-vcs/pre-commit/Manifest +++ b/dev-vcs/pre-commit/Manifest @@ -1,6 +1,8 @@ AUX pre-commit-3.1.1-tests_git_file_transport.patch 1527 BLAKE2B 18d047f3b8a6fdc3da77aa5b8d9f60970ab5b69adc3790489ceffc17839a4cd21ed46428c5e2e98b50278b2c4dc49e35a09dd778000546828327ae96f910f95b SHA512 36cb194250dc0fefad2900452447ab590f678e6cd5edf07a7f072363733c263b7cb1167297c465a9372d4a38ab77a6c057046c66b872a958132a97d1a937d029 DIST pre-commit-3.3.3.gh.tar.gz 267281 BLAKE2B dbe3b90dd3808d24084ede3e9bd76ddc5b070d43bd70b3fa813f8e8e95875a178b86632208463c50a3d68868f2dd9d888e00e7bf3aeba3f3b78c7cd39b514270 SHA512 d126bead7ffa2c72213a894c82bc45d0bce8b508cf7190e7b7d56c667b5d3ebff80eedf7ecb4bb1e01923ef9a43878b73356fda866614d8cbcc8f241ee9e01f7 DIST pre-commit-3.5.0.gh.tar.gz 268906 BLAKE2B 7585aae950f63845cf132b3472662f19f87942b886687551fbf69e4adb20513304d2c4d399c12619e6c7f9aeab0a6a57c3fe3cd271a29470bedc9480b3b34256 SHA512 c7504fa2d3ba70def3361af0fcc2f7a5454325125e27f44fbaa60906f1ac35b0fa1b646eaf326cb04d4d042ecb6786fbb8e9166099df1e687fa2a64a8113c244 +DIST pre-commit-3.6.0.gh.tar.gz 268891 BLAKE2B 42c52bcd320defe877fdce51af972e177e26956c2baba5e04e9441d7a99fcdc6467dc7913b21f9300efe9ca821c7d06c8d972f3fb79f10f2212dbecb3299040a SHA512 4997dfe15d262b8d0c6de711b2543162fffe14f24ce41d3a3ba2014354861ef72eb3a9cc115125ed57ef3c25a12886f858189d684d343252ad8f46cc0c364935 EBUILD pre-commit-3.3.3.ebuild 1945 BLAKE2B fe2ad3a728487a832dbc7efedce507ecc1e00fe3ef00512c6b201c377119ff846b3717fe0cf5550bb2e1cec769dfb7127baf64c135bde4429b01595059b36851 SHA512 87b87a69906cdf1e54a597c8d09e3661a398380c962a07da5edb307d9328dfb638458cff6c2b7dd7e0e803e29475f0e8f147e897728edb8cec64c0b0ed277f9e EBUILD pre-commit-3.5.0.ebuild 1975 BLAKE2B b18a9fb19d08cfdeee2a17815b5ebe185e984aaaf2e13fdd29e9ba1e8d5adbc33c84283ba602aab54ad621fc61fa556ac02a2c3cded168fc2c60b76e5c0148e2 SHA512 8620117b24bea897afaad8d8d591cc27e2ddf90bc796530a90f31ed449789008f90c25dd2adaecbb43746f459adaf312c5340da574b2a1a4f6fb316aae674efc +EBUILD pre-commit-3.6.0.ebuild 1947 BLAKE2B 00ff546b711050d7b96dbc2409ec827fb676fc57be77d57fcc4f5421189052e4a1d64764446e1c40199eb67388937754c4c08c3dadc670336271d2982031cd52 SHA512 67852c87cd317504e8962ba6f94402e57ac0a1c9758ea036f1e2df5a186c2dec66081f9824cf1e634161444cc5abe62f9d91520dc55d2b8744eed7bbd94e8138 MISC metadata.xml 380 BLAKE2B 99842a97367e91700c6f714f427b7b3d4b7212c401abae5ab715dfaa724776f02fe250184a33504d3433bb58cd5679af59a32ec21a7e7432481160dab36a4d95 SHA512 45330930d1e58fc1de0fd0ba55cd488dee96579ceab3be5073b91ff8f4f2b9adefff533dbfa5b0e8b23fbb648d45c0b7b4073a1ec57b586600cc2bf6347e0bbb diff --git a/dev-vcs/pre-commit/pre-commit-3.6.0.ebuild b/dev-vcs/pre-commit/pre-commit-3.6.0.ebuild new file mode 100644 index 000000000000..1437959c5824 --- /dev/null +++ b/dev-vcs/pre-commit/pre-commit-3.6.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..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 ~arm64 ~hppa ~ppc ~ppc64 ~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 |