mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-29 10:18:08 -07:00
dev-python/invoke: Bump to 1.1.1
Also, fix broken tests dependencies Package-Manager: Portage-2.3.44, Repoman-2.3.10
This commit is contained in:
34
dev-python/invoke/invoke-1.1.1.ebuild
Normal file
34
dev-python/invoke/invoke-1.1.1.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# 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-1.1.4
|
||||
)"
|
||||
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
|
||||
# -p pytest_relaxed: this plugin has to be loaded explicitly
|
||||
pytest -s -v -p pytest_relaxed.plugin || die "Tests failed"
|
||||
}
|
||||
Reference in New Issue
Block a user