dev-python/pytest-trio: new version

Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2020-12-06 10:25:40 +01:00
parent 40f212a7e9
commit 63778f5510
2 changed files with 56 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST pytest-trio-0.5.2.tar.gz 35372 BLAKE2B 158e59d81fab6b56e37e92e28f8fdabb5d330dfc57b7774dcde4156165e3f5336647c9382268b50a5f70806449107ab2c7ec6d1a34f6bc773825b4fbb50b03a1 SHA512 0ab0bcfd3b1ef4859a49fa9d5dacbc698882f4f95ee113f241b49d8a7f000dbae1d982a13a87e18f96d51af1278b20298dd1af8d2ab1f563e91e74f7232f46a5
DIST pytest-trio-0.6.0.tar.gz 37835 BLAKE2B 4158cfc81fc6db3aa9f049127f6550de4ac55fd881c4e35b67bdcfe0492470dce6ee5df9077962b46b6233f942fcc944b41cd185897ddb83824ad1a31abb846e SHA512 662719e67f5d71f73b2e5389592812b79b296b7fdd8ff6f491961bd5444958e829c46a3bd79f08e9b8b8638125c48edd459f599acc2e071fc0cf8013525a3739
DIST pytest-trio-0.7.0.tar.gz 47784 BLAKE2B 59b28df45e87804e0b6eb557a0cf259fdc3636cc7a03d78248fb814d55904ed01d00a530b194b2bfe93ccfb9de528d70a372faf1f6db24531c230319122db2e5 SHA512 547036c94f33cf8e755c88d608c5fddfa5c583fdaa7e604598d470e250a006c571702a81bac4f273b74450a8c10e4be404bad74d4104403fe1c9c70e872dff53

View File

@@ -0,0 +1,55 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{7,8} )
DISTUTILS_USE_SETUPTOOLS=bdepend
DOCBUILDER="sphinx"
DOCDIR="${S}/docs/source"
DOCDEPEND="
>=dev-python/attrs-17.4.0
>=dev-python/sphinx-1.6.1
dev-python/sphinx_rtd_theme
dev-python/sphinxcontrib-trio
"
inherit distutils-r1 docs
DESCRIPTION="This is a pytest plugin to help you test projects that use Trio"
HOMEPAGE="
https://github.com/python-trio/pytest-trio
https://pypi.org/project/pytest-trio
"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="|| ( MIT Apache-2.0 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
#too many errors
RESTRICT="test"
RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]
dev-python/outcome[${PYTHON_USEDEP}]
>=dev-python/trio-0.15[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
test? (
>=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
<dev-python/pytest-6.0.0[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_test() {
# has to be run in source dir
#even upstream doesn't know how to run their tests
#https://github.com/python-trio/pytest-trio/issues/84
#"Our CI is still passing AFAIK"
PYTHONPATH="${S}"
cd "${S}" || die
pytest -vv --pyargs pytest_trio || die "Tests fail with ${EPYTHON}"
}