From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-randomly/
Date: Wed, 1 Jun 2022 11:17:31 +0000 (UTC) [thread overview]
Message-ID: <1654059765.d9a8752fe4e6b3553fee3c8a744b5c70274fbcd1.andrewammerlaan@gentoo> (raw)
commit: d9a8752fe4e6b3553fee3c8a744b5c70274fbcd1
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Jun 1 02:42:42 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> 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 <cyber+gentoo <AT> 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
}
next reply other threads:[~2022-06-01 11:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-01 11:17 Andrew Ammerlaan [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-03-16 13:59 [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-randomly/ Florian Schmaus
2021-11-03 11:12 Andrew Ammerlaan
2021-06-15 7:11 Andrew Ammerlaan
2021-04-14 9:08 Andrew Ammerlaan
2020-12-18 19:05 Andrew Ammerlaan
2020-12-10 8:46 Andrew Ammerlaan
2020-08-28 15:26 Andrew Ammerlaan
2020-05-21 11:24 Andrew Ammerlaan
2020-05-19 11:24 Andrew Ammerlaan
2020-05-19 11:24 Andrew Ammerlaan
2020-04-28 7:44 Andrew Ammerlaan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1654059765.d9a8752fe4e6b3553fee3c8a744b5c70274fbcd1.andrewammerlaan@gentoo \
--to=andrewammerlaan@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox