From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5D5811382C5 for ; Sun, 24 May 2020 19:03:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54E0DE0980; Sun, 24 May 2020 19:03:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0A4B3E0980 for ; Sun, 24 May 2020 19:03:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F7DA34EE1B for ; Sun, 24 May 2020 19:03:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 57488258 for ; Sun, 24 May 2020 19:03:39 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1590309294.5d5007c0dcb27d2070f63c4995dea93ccd0aaaa3.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-trio/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pytest-trio/Manifest dev-python/pytest-trio/pytest-trio-0.6.0.ebuild X-VCS-Directories: dev-python/pytest-trio/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 5d5007c0dcb27d2070f63c4995dea93ccd0aaaa3 X-VCS-Branch: master Date: Sun, 24 May 2020 19:03:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3874016f-394e-43ef-ae96-3f09057b55f0 X-Archives-Hash: 3bd8e73afd2e295fea57c911e8f71d3b commit: 5d5007c0dcb27d2070f63c4995dea93ccd0aaaa3 Author: Andrew Ammerlaan riseup net> AuthorDate: Sun May 24 08:33:50 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Sun May 24 08:34:54 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5d5007c0 dev-python/pytest-trio: version bump Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan riseup.net> dev-python/pytest-trio/Manifest | 1 + dev-python/pytest-trio/pytest-trio-0.6.0.ebuild | 67 +++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest index f6eebcc..d17b502 100644 --- a/dev-python/pytest-trio/Manifest +++ b/dev-python/pytest-trio/Manifest @@ -1 +1,2 @@ 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 diff --git a/dev-python/pytest-trio/pytest-trio-0.6.0.ebuild b/dev-python/pytest-trio/pytest-trio-0.6.0.ebuild new file mode 100644 index 0000000..9376d18 --- /dev/null +++ b/dev-python/pytest-trio/pytest-trio-0.6.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +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" + +# lots of different 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-trio[${PYTHON_USEDEP}] + !~dev-python/pytest-3.7.0[${PYTHON_USEDEP}] + !~dev-python/pytest-3.7.1[${PYTHON_USEDEP}] + >=dev-python/pytest-4.3[${PYTHON_USEDEP}] + dev-python/trio-asyncio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source \ + ">=dev-python/attrs-17.4.0" \ + ">=dev-python/sphinx-1.6.1" \ + dev-python/sphinx_rtd_theme \ + dev-python/sphinxcontrib-trio + +python_prepare_all() { + #fix for https://github.com/python-trio/pytest-trio/issues/90 + # AttributeError("module 'pytest' has no attribute 'RemovedInPytest4Warning'",) + rm pytest_trio/_tests/conftest.py || die + + distutils-r1_python_prepare_all +} + +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 || die "Tests fail with ${EPYTHON}" +} From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F35311382C5 for ; Sun, 24 May 2020 08:35:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3872BE0891; Sun, 24 May 2020 08:35:55 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 145DAE0891 for ; Sun, 24 May 2020 08:35:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DE9C534F096 for ; Sun, 24 May 2020 08:35:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6721F1ED for ; Sun, 24 May 2020 08:35:52 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1590309294.5d5007c0dcb27d2070f63c4995dea93ccd0aaaa3.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-trio/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pytest-trio/Manifest dev-python/pytest-trio/pytest-trio-0.6.0.ebuild X-VCS-Directories: dev-python/pytest-trio/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 5d5007c0dcb27d2070f63c4995dea93ccd0aaaa3 X-VCS-Branch: dev Date: Sun, 24 May 2020 08:35:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 045be607-de09-44b4-94ee-b6cae573e0d5 X-Archives-Hash: f7948caf6fbde9f8bf41128721668e4f Message-ID: <20200524083552.pxV2XmvHnFsaJfoatmF4cbd-xLCzfzU4jYx6Tp_pZLE@z> commit: 5d5007c0dcb27d2070f63c4995dea93ccd0aaaa3 Author: Andrew Ammerlaan riseup net> AuthorDate: Sun May 24 08:33:50 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Sun May 24 08:34:54 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5d5007c0 dev-python/pytest-trio: version bump Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan riseup.net> dev-python/pytest-trio/Manifest | 1 + dev-python/pytest-trio/pytest-trio-0.6.0.ebuild | 67 +++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest index f6eebcc..d17b502 100644 --- a/dev-python/pytest-trio/Manifest +++ b/dev-python/pytest-trio/Manifest @@ -1 +1,2 @@ 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 diff --git a/dev-python/pytest-trio/pytest-trio-0.6.0.ebuild b/dev-python/pytest-trio/pytest-trio-0.6.0.ebuild new file mode 100644 index 0000000..9376d18 --- /dev/null +++ b/dev-python/pytest-trio/pytest-trio-0.6.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +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" + +# lots of different 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-trio[${PYTHON_USEDEP}] + !~dev-python/pytest-3.7.0[${PYTHON_USEDEP}] + !~dev-python/pytest-3.7.1[${PYTHON_USEDEP}] + >=dev-python/pytest-4.3[${PYTHON_USEDEP}] + dev-python/trio-asyncio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source \ + ">=dev-python/attrs-17.4.0" \ + ">=dev-python/sphinx-1.6.1" \ + dev-python/sphinx_rtd_theme \ + dev-python/sphinxcontrib-trio + +python_prepare_all() { + #fix for https://github.com/python-trio/pytest-trio/issues/90 + # AttributeError("module 'pytest' has no attribute 'RemovedInPytest4Warning'",) + rm pytest_trio/_tests/conftest.py || die + + distutils-r1_python_prepare_all +} + +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 || die "Tests fail with ${EPYTHON}" +}