2017-04-23 15:28:53 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2016-12-27 08:53:33 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
2017-04-23 15:28:53 +03:00
|
|
|
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
2016-12-27 08:53:33 +03:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Logging integration for Click."
|
2018-04-27 20:47:46 +03:00
|
|
|
HOMEPAGE="https://github.com/click-contrib/click-log https://pypi.org/project/click-log/"
|
2016-12-27 08:53:33 +03:00
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2017-04-23 15:28:53 +03:00
|
|
|
IUSE="test"
|
2016-12-27 08:53:33 +03:00
|
|
|
|
2017-04-23 15:28:53 +03:00
|
|
|
RDEPEND="dev-python/click[${PYTHON_USEDEP}]"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
2016-12-27 08:53:33 +03:00
|
|
|
|
|
|
|
DOCS=( README.rst )
|
2017-04-23 15:28:53 +03:00
|
|
|
|
|
|
|
python_test() {
|
|
|
|
py.test -v || die "Tests fail with ${EPYTHON}"
|
|
|
|
}
|