Skip to content

Commit

Permalink
dev-python/ldap3: declare RDEPEND within test condition.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.40, Repoman-2.3.9
  • Loading branch information
monsieurp committed Sep 10, 2018
1 parent adddad6 commit f476a94
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
13 changes: 8 additions & 5 deletions dev-python/ldap3/ldap3-2.2.3.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
Expand All @@ -20,11 +20,14 @@ IUSE="test"
# https://github.com/cannatag/ldap3/blob/master/test/config.py).
RESTRICT="test"

RDEPEND=">=dev-python/pyasn1-0.1.8[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
RDEPEND="
dev-python/pyasn1[${PYTHON_USEDEP}]"

DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/nose[${PYTHON_USEDEP}] )
"
test? (
dev-python/nose[${PYTHON_USEDEP}]
${RDEPEND} )"

python_test() {
nosetests -v -s test || die
Expand Down
5 changes: 3 additions & 2 deletions dev-python/ldap3/ldap3-2.4.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ RDEPEND="
dev-python/pyasn1[${PYTHON_USEDEP}]"

DEPEND="
${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
test? (
dev-python/nose[${PYTHON_USEDEP}]
${RDEPEND} )"

python_test() {
nosetests -v -s test || die
Expand Down
5 changes: 3 additions & 2 deletions dev-python/ldap3/ldap3-2.5.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ RDEPEND="
dev-python/pyasn1[${PYTHON_USEDEP}]"

DEPEND="
${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
test? (
dev-python/nose[${PYTHON_USEDEP}]
${RDEPEND} )"

python_test() {
nosetests -v -s test || die
Expand Down

0 comments on commit f476a94

Please sign in to comment.