dev-vcs/pre-commit: add 4.0.0
Closes: #4112 Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
a9e33859b3
commit
a19a687dfd
@ -606,11 +606,11 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
||||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 2315 Ebuilds in total, 2301 of them have in total 2338 (43 different) licenses assigned.
|
||||
There are 2316 Ebuilds in total, 2302 of them have in total 2339 (43 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1317|
|
||||
|MIT|1318|
|
||||
|Apache-2.0|541|
|
||||
|GPL-3|143|
|
||||
|BSD|124|
|
||||
|
@ -2,6 +2,8 @@ AUX pre-commit-2.20.0-tests_git_file_transport.patch 2021 BLAKE2B 764b353d326817
|
||||
AUX pre-commit-3.1.1-tests_git_file_transport.patch 1527 BLAKE2B 18d047f3b8a6fdc3da77aa5b8d9f60970ab5b69adc3790489ceffc17839a4cd21ed46428c5e2e98b50278b2c4dc49e35a09dd778000546828327ae96f910f95b SHA512 36cb194250dc0fefad2900452447ab590f678e6cd5edf07a7f072363733c263b7cb1167297c465a9372d4a38ab77a6c057046c66b872a958132a97d1a937d029
|
||||
DIST pre-commit-3.6.2.gh.tar.gz 269614 BLAKE2B d927c8ac5024a09ffeba2cb728056c012ae2f6a9ea2acc3a62c9fb46360901804f56d745f4a6a4f33055caf079873507ba497d1cfa01d85a653f8702915826d3 SHA512 a99031e8e5f8b1bff05c8f5fa8d7fac4215d6d1828e8f64a35188345033a6982ce3673ebcf30883ce185e03f3f4179cdc620a383db65f914d0f6913973fc62ea
|
||||
DIST pre-commit-3.7.1.gh.tar.gz 270138 BLAKE2B da21e8c05b722985273554bd455d2ea0c113206eb4924c826532b5135805eca143441a237e516fad1275b4c9886d53cb3757d5fefd53613e1f1a1b4da8d7847d SHA512 ffb7606b1706d5e9f46bdffbe20420e6fd4241f6a402740e02f6d8a0e87f29201a20ab92d89fd7ed77f3df31ada6f157837beac9defab7f35ebabf85d47399e8
|
||||
DIST pre-commit-4.0.0.gh.tar.gz 286633 BLAKE2B 5623e81c2aeac2b1dcff8c222ddd6cdc0b187c6e32b4cb9f7b02c6fbc371900a89b7263a4e9c027adbf74becce15f62c2caa2268e4231d76e23208ff3e4b3871 SHA512 abda9950e3fa82f96d24ac75bad721c5cbc9aa7a39a0b7b3bde826cd64731ba3abd76cdef554f965e6c1238e003dab6273f47ac48fd120749ceb1008c276eb1a
|
||||
EBUILD pre-commit-3.6.2.ebuild 1930 BLAKE2B 244e9c43391775325f56bc87085ad6b91119c1c58bc163b22fd2879f79dbe27b8181c73deed502c8d0d9a6c8d218eb413818f8a4509d5f8505416582118c25fc SHA512 4ec9d263885850d9cdaf12f9f96e32e45e0042fe30279cbedf951390e8adbfc3cc37a4653bec5ab43ccb9edd1b2db69e5b7af633dd0f07715fd2a2dd9fa04de8
|
||||
EBUILD pre-commit-3.7.1.ebuild 1930 BLAKE2B 244e9c43391775325f56bc87085ad6b91119c1c58bc163b22fd2879f79dbe27b8181c73deed502c8d0d9a6c8d218eb413818f8a4509d5f8505416582118c25fc SHA512 4ec9d263885850d9cdaf12f9f96e32e45e0042fe30279cbedf951390e8adbfc3cc37a4653bec5ab43ccb9edd1b2db69e5b7af633dd0f07715fd2a2dd9fa04de8
|
||||
EBUILD pre-commit-4.0.0.ebuild 2116 BLAKE2B 2631868d5b9a39abf61ff4e745cc6ffdb7ea7cc7ba61c20565e61fd5b755ffc2fd970e54c90de6a45a4164c9c512d6f3c37fb7469a46e77548f3b0af6f8d482e SHA512 ff1e8fe282cf629c2143692561e1ed81c34600b0e2d749bca38256c4f3b8b98c4378514579bbd7118d216ea21be8d1043b057f4a8566ad911325e4248e0a638c
|
||||
MISC metadata.xml 519 BLAKE2B 7469b66ef61333b6a6c6b48a1c2ec373f0d3f75dc2b8cd5a9807bf26a72022c437b88b14907617317bab7c19c9a2300357c71dfe28b67828671bee0d59e1ccd2 SHA512 343867cf7f60f4456d9818ba7c0a652496c8c3ce1b5cca2b2be1510c2af793b062a4f3902d02f60c2874563bbd61691668370e25349c54ddc89aa5c425affc6d
|
||||
|
76
dev-vcs/pre-commit/pre-commit-4.0.0.ebuild
Normal file
76
dev-vcs/pre-commit/pre-commit-4.0.0.ebuild
Normal file
@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
DISTUTILS_SINGLE_IMPL="ON"
|
||||
DISTUTILS_USE_PEP517="setuptools"
|
||||
|
||||
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 arm arm64 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/pytest-env[${PYTHON_USEDEP}]
|
||||
dev-python/re-assert[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
|
||||
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
|
Loading…
Reference in New Issue
Block a user