Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/pre-commit/
Date: Fri, 16 Apr 2021 18:25:10
Message-Id: 1618597485.70fd6ae560a759cf83d80360f709a4be4829524d.marecki@gentoo
1 commit: 70fd6ae560a759cf83d80360f709a4be4829524d
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 16 16:12:31 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 16 18:24:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70fd6ae5
7
8 dev-vcs/pre-commit: use pytest-env now that it is in the tree
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 dev-vcs/pre-commit/pre-commit-2.12.0.ebuild | 19 ++++---------------
13 1 file changed, 4 insertions(+), 15 deletions(-)
14
15 diff --git a/dev-vcs/pre-commit/pre-commit-2.12.0.ebuild b/dev-vcs/pre-commit/pre-commit-2.12.0.ebuild
16 index 8dc97acfe00..c494bc22f84 100644
17 --- a/dev-vcs/pre-commit/pre-commit-2.12.0.ebuild
18 +++ b/dev-vcs/pre-commit/pre-commit-2.12.0.ebuild
19 @@ -25,8 +25,6 @@ KEYWORDS="~amd64"
20 # Ditto
21 # - tests/commands/install_uninstall_test.py::test_installed_from_venv
22 # "git commit" returns 1 instead of 0, again no details
23 -# even with the environment variables normally handled by pytest-env (which we haven't got in the tree yet)
24 -# explicitly declared in python_test().
25 #RESTRICT="test"
26
27 RDEPEND="dev-vcs/git
28 @@ -39,7 +37,10 @@ RDEPEND="dev-vcs/git
29 >=dev-python/virtualenv-20.0.8[${PYTHON_USEDEP}]
30 ')"
31 BDEPEND="test? (
32 - $(python_gen_cond_dep 'dev-python/re-assert[${PYTHON_USEDEP}]')
33 + $(python_gen_cond_dep '
34 + dev-python/pytest-env[${PYTHON_USEDEP}]
35 + dev-python/re-assert[${PYTHON_USEDEP}]
36 + ')
37 )"
38
39 DOCS=( CHANGELOG.md CONTRIBUTING.md README.md )
40 @@ -53,15 +54,3 @@ src_prepare() {
41 # and while some of them do include "skip if not found" logic, most of them do not.
42 rm -rf tests/languages tests/repository_test.py
43 }
44 -
45 -python_test() {
46 - # TODO: add pytest-env to the tree so that these can be read from tox.ini
47 - declare -x GIT_AUTHOR_NAME=test
48 - declare -x GIT_COMMITTER_NAME=test
49 - declare -x GIT_AUTHOR_EMAIL=test@×××××××.com
50 - declare -x GIT_COMMITTER_EMAIL=test@×××××××.com
51 - declare -x VIRTUALENV_NO_DOWNLOAD=1
52 - declare -x PRE_COMMIT_NO_CONCURRENCY=1
53 -
54 - distutils-r1_python_test
55 -}