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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7CC44158091 for ; Wed, 1 Jun 2022 11:17:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A43AE087A; Wed, 1 Jun 2022 11:17:34 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2F2A8E087A for ; Wed, 1 Jun 2022 11:17:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4BAE1341C2E for ; Wed, 1 Jun 2022 11:17:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7471E4E5 for ; Wed, 1 Jun 2022 11:17:31 +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: <1654059765.d9a8752fe4e6b3553fee3c8a744b5c70274fbcd1.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-randomly/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pytest-randomly/Manifest dev-python/pytest-randomly/pytest-randomly-3.12.0.ebuild X-VCS-Directories: dev-python/pytest-randomly/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: d9a8752fe4e6b3553fee3c8a744b5c70274fbcd1 X-VCS-Branch: master Date: Wed, 1 Jun 2022 11:17:31 +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: cafa240f-4c33-4b36-9927-4af5f82387e2 X-Archives-Hash: f61205cd9ef7e148074b1b5d19a79844 commit: d9a8752fe4e6b3553fee3c8a744b5c70274fbcd1 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Wed Jun 1 02:42:42 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Wed Jun 1 05:02:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d9a8752f dev-python/pytest-randomly: fix tests and deps Closes: https://bugs.gentoo.org/823011 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> dev-python/pytest-randomly/Manifest | 2 +- .../pytest-randomly/pytest-randomly-3.12.0.ebuild | 34 ++++++++++++++++------ 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/dev-python/pytest-randomly/Manifest b/dev-python/pytest-randomly/Manifest index 0689b4453..083bee428 100644 --- a/dev-python/pytest-randomly/Manifest +++ b/dev-python/pytest-randomly/Manifest @@ -1 +1 @@ -DIST pytest-randomly-3.12.0.tar.gz 30426 BLAKE2B 22e7ac58787a98b24a672f2fc2fdba8069213008f11c66eb05320be99662311b0273b0c32079d59792964075abe6fd2f224ce03eb0d3b2dcf0a79e180f1a067e SHA512 e2241c1304b9597f93cc57d6830808f85c59ea1b4815624dcd9d088f87eb4a34d6cb6394de9c31ebedcb8280fb6ff12b110fd5a559ab28c9e0381481fce52c4d +DIST pytest-randomly-3.12.0.gh.tar.gz 30426 BLAKE2B 22e7ac58787a98b24a672f2fc2fdba8069213008f11c66eb05320be99662311b0273b0c32079d59792964075abe6fd2f224ce03eb0d3b2dcf0a79e180f1a067e SHA512 e2241c1304b9597f93cc57d6830808f85c59ea1b4815624dcd9d088f87eb4a34d6cb6394de9c31ebedcb8280fb6ff12b110fd5a559ab28c9e0381481fce52c4d diff --git a/dev-python/pytest-randomly/pytest-randomly-3.12.0.ebuild b/dev-python/pytest-randomly/pytest-randomly-3.12.0.ebuild index 26f2f90a4..e951ea6aa 100644 --- a/dev-python/pytest-randomly/pytest-randomly-3.12.0.ebuild +++ b/dev-python/pytest-randomly/pytest-randomly-3.12.0.ebuild @@ -13,26 +13,42 @@ HOMEPAGE=" https://pypi.python.org/pypi/pytest-randomly/ https://github.com/pytest-dev/pytest-randomly " -SRC_URI="https://github.com/pytest-dev/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/pytest-dev/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" RDEPEND=" - dev-python/factory_boy[${PYTHON_USEDEP}] - dev-python/Faker[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - - $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' python3_{8..10}) $(python_gen_cond_dep '>=dev-python/importlib_metadata-3.6.0[${PYTHON_USEDEP}]' python3_{8,9}) " -DEPEND="${RDEPEND}" +# tests pytest-xdist integration +BDEPEND="test? ( + dev-python/factory_boy[${PYTHON_USEDEP}] + dev-python/Faker[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] +)" + +EPYTEST_DESELECT=( + tests/test_pytest_randomly.py::test_entrypoint_injection + tests/test_pytest_randomly.py::test_it_runs_before_stepwise + tests/test_pytest_randomly.py::test_works_without_xdist + + # Output mismatch + tests/test_pytest_randomly.py::test_class_test_methods_reordered + tests/test_pytest_randomly.py::test_classes_reordered + tests/test_pytest_randomly.py::test_doctests_in_txt_files_reordered + tests/test_pytest_randomly.py::test_doctests_reordered + tests/test_pytest_randomly.py::test_files_reordered + tests/test_pytest_randomly.py::test_files_reordered_when_seed_not_reset + tests/test_pytest_randomly.py::test_test_functions_reordered + tests/test_pytest_randomly.py::test_test_functions_reordered_when_randomness_in_module +) distutils_enable_tests pytest python_test() { - distutils_install_for_testing --via-root - pytest -vv || die "Testsuite failed under ${EPYTHON}" + epytest -p no:randomly }