[dev-python/aiosqlite] fix dependencies, restrict tests
This commit is contained in:
parent
d310307f2c
commit
b6a31bce50
@ -4,7 +4,7 @@
|
|||||||
EAPI="7"
|
EAPI="7"
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_8 )
|
PYTHON_COMPAT=( python3_8 )
|
||||||
DISTUTILS_USE_SETUPTOOLS="bdepend"
|
DISTUTILS_USE_SETUPTOOLS="no"
|
||||||
|
|
||||||
inherit distutils-r1
|
inherit distutils-r1
|
||||||
|
|
||||||
@ -15,23 +15,10 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz"
|
|||||||
LICENSE="Apache-2.0"
|
LICENSE="Apache-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~x86"
|
KEYWORDS="~amd64 ~x86"
|
||||||
IUSE="doc test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="
|
# lacks dev-python/aiounittest
|
||||||
>=dev-python/aiohttp-3.5.0[${PYTHON_USEDEP}]
|
RESTRICT="test"
|
||||||
"
|
|
||||||
DEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
test? (
|
|
||||||
>=dev-python/pytest-aiohttp-0.3.0[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
DOCS=( CHANGELOG.md README.rst )
|
||||||
|
|
||||||
DOCS=( CHANGELOG.md README.md )
|
distutils_enable_sphinx docs
|
||||||
|
|
||||||
python_test() {
|
|
||||||
py.test -v tests || die "Tests failed under ${EPYTHON}"
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user