diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2021-03-21 23:34:04 +0100 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2021-03-21 23:34:29 +0100 |
commit | 5d48485a0205423267b8884a375a94aea95421a4 (patch) | |
tree | 3435f45c173307d2585f1e29f613e7fa891c3aad | |
parent | dev-python/identify: initial commit (diff) | |
download | eva-5d48485a0205423267b8884a375a94aea95421a4.tar.gz eva-5d48485a0205423267b8884a375a94aea95421a4.tar.bz2 eva-5d48485a0205423267b8884a375a94aea95421a4.zip |
dev-python/pre_commit: initial commit
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Manifest-Sign-Key: 0x5A56C8CD0C13248A
Signed-off-by: Gilles Dartiguelongue <eva@gentoo.org>
-rw-r--r-- | dev-python/pre_commit/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pre_commit/metadata.xml | 15 | ||||
-rw-r--r-- | dev-python/pre_commit/pre_commit-2.11.1.ebuild | 37 |
3 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/pre_commit/Manifest b/dev-python/pre_commit/Manifest new file mode 100644 index 0000000..0c476c4 --- /dev/null +++ b/dev-python/pre_commit/Manifest @@ -0,0 +1 @@ +DIST pre_commit-2.11.1.tar.gz 164318 BLAKE2B c71c1a6e357232c3b842c8244061ed793d88770fe69974b9f8ea25d96a97cc32f55322c2c50b615c478143be4036de4d0a17bc2ae99fa5dbc4026344be37fdd2 SHA512 8a6b446289d2498558f4175ddf6e8f3fc7b047e5d1064be91e1f78e133a461e73aac47effb6c2624b2e111901ffff35754b096ffe6b2475971b7e9bd628e884f diff --git a/dev-python/pre_commit/metadata.xml b/dev-python/pre_commit/metadata.xml new file mode 100644 index 0000000..bdb001b --- /dev/null +++ b/dev-python/pre_commit/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <maintainer type="person"> + <email>eva@gentoo.org</email> + <name>Gilles Dartiguelongue</name> + </maintainer> + <upstream> + <remote-id type="pypi">cfgv</remote-id> + <remote-id type="github">pre-commit/cfgv</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pre_commit/pre_commit-2.11.1.ebuild b/dev-python/pre_commit/pre_commit-2.11.1.ebuild new file mode 100644 index 0000000..7edab72 --- /dev/null +++ b/dev-python/pre_commit/pre_commit-2.11.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{8,9} ) +inherit distutils-r1 + +DESCRIPTION="A framework for managing and maintaining multi-language pre-commit hooks." +HOMEPAGE="https://pre-commit.com/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/_}/${PN/-/_}-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="${RDEPEND} + >=dev-python/cfgv-2[${PYTHON_USEDEP}] + >=dev-python/identify-1[${PYTHON_USEDEP}] + >=dev-python/nodeenv-0.11.1[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.0.8[${PYTHON_USEDEP}] +" +# missing +# covdefaults +# pytest-env +BDEPEND="${BDEPEND} + test? ( + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/distlib[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest |