commit: 70fd6ae560a759cf83d80360f709a4be4829524d
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 16 16:12:31 2021 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Apr 16 18:24:45 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70fd6ae5
dev-vcs/pre-commit: use pytest-env now that it is in the tree
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
dev-vcs/pre-commit/pre-commit-2.12.0.ebuild | 19 ++++---------------
1 file changed, 4 insertions(+), 15 deletions(-)
diff --git a/dev-vcs/pre-commit/pre-commit-2.12.0.ebuild
b/dev-vcs/pre-commit/pre-commit-2.12.0.ebuild
index 8dc97acfe00..c494bc22f84 100644
--- a/dev-vcs/pre-commit/pre-commit-2.12.0.ebuild
+++ b/dev-vcs/pre-commit/pre-commit-2.12.0.ebuild
@@ -25,8 +25,6 @@ KEYWORDS="~amd64"
# Ditto
# - tests/commands/install_uninstall_test.py::test_installed_from_venv
# "git commit" returns 1 instead of 0, again no details
-# even with the environment variables normally handled by pytest-env (which we
haven't got in the tree yet)
-# explicitly declared in python_test().
#RESTRICT="test"
RDEPEND="dev-vcs/git
@@ -39,7 +37,10 @@ RDEPEND="dev-vcs/git
>=dev-python/virtualenv-20.0.8[${PYTHON_USEDEP}]
')"
BDEPEND="test? (
- $(python_gen_cond_dep 'dev-python/re-assert[${PYTHON_USEDEP}]')
+ $(python_gen_cond_dep '
+ dev-python/pytest-env[${PYTHON_USEDEP}]
+ dev-python/re-assert[${PYTHON_USEDEP}]
+ ')
)"
DOCS=( CHANGELOG.md CONTRIBUTING.md README.md )
@@ -53,15 +54,3 @@ src_prepare() {
# and while some of them do include "skip if not found" logic, most of
them do not.
rm -rf tests/languages tests/repository_test.py
}
-
-python_test() {
- # TODO: add pytest-env to the tree so that these can be read from
tox.ini
- declare -x GIT_AUTHOR_NAME=test
- declare -x GIT_COMMITTER_NAME=test
- declare -x [email protected]
- declare -x [email protected]
- declare -x VIRTUALENV_NO_DOWNLOAD=1
- declare -x PRE_COMMIT_NO_CONCURRENCY=1
-
- distutils-r1_python_test
-}