summaryrefslogtreecommitdiff
blob: 80bbd00caf23d269117feaa9eb60049f8e257599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
inherit distutils-r1

DESCRIPTION="Pythonic task execution"
HOMEPAGE="https://pypi.org/project/invoke/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

BDEPEND="
	dev-python/setuptools[${PYTHON_USEDEP}]
	test? (
		dev-python/mock
		>=dev-python/pytest-3.0
		dev-python/pytest-relaxed
	)"
RDEPEND=""

PATCHES=(
	"${FILESDIR}/${PN}-1.1.0-skip-pty-tests.patch"
)

python_test() {
	# -s flag is important: tests fail when pytest isn't in "no capture" mode
	${EPYTHON} -m pytest -s -v
}