commit: dc44984b459012dc19317dc7b2aee0a5442c7241
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 23 16:01:40 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug 23 16:01:40 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc44984b
dev-python/pytest-order: Bump to 1.3.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest-order/Manifest | 1 +
dev-python/pytest-order/pytest-order-1.3.0.ebuild | 47 +++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/dev-python/pytest-order/Manifest b/dev-python/pytest-order/Manifest
index dcd221856e6b..5f96713abd24 100644
--- a/dev-python/pytest-order/Manifest
+++ b/dev-python/pytest-order/Manifest
@@ -1 +1,2 @@
DIST pytest-order-1.2.1.tar.gz 44726 BLAKE2B
b0365a6c7d420e5997ca67fc3de3d46a02a085f024ba2777c480f4c9da7e90ac3dd3b533d67e43934429f3a1ace1725171c56ad59eeb598c06bbe4dbbc5f71e0
SHA512
2ea89f05e6dcf82a6df596feeb1e25b634e48c4c6219b5320b662e88b5ee2473062f3bf1d38696dac2e045fdf51a118b7907c4a06a90e6e256b4d21bd156be18
+DIST pytest_order-1.3.0.tar.gz 47544 BLAKE2B
9f061910babc8f9ffe25180cc3d4c708c97fbd6afd167ce5d937b57977de1694c2be2abf1995ad91d6aa15c2593d14e39576ada3dfc4e33132cc1a813ea44d5e
SHA512
e6accdf49fee88b4911eca991a404e00071a58291bdd564a361640ede68e4c3f80ad79522075258f9e7451dd704627c2950922015f66068dd4969e9da20caef9
diff --git a/dev-python/pytest-order/pytest-order-1.3.0.ebuild
b/dev-python/pytest-order/pytest-order-1.3.0.ebuild
new file mode 100644
index 000000000000..97143ae16e02
--- /dev/null
+++ b/dev-python/pytest-order/pytest-order-1.3.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="pytest plugin to run your tests in a specific order"
+HOMEPAGE="
+ https://github.com/pytest-dev/pytest-order/
+ https://pypi.org/project/pytest-order/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+ >=dev-python/pytest-6.4.2[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+ test? (
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs/source
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # these require pytest-dependency
+ tests/test_dependency.py::test_order_dependencies_no_auto_mark
+ tests/test_dependency.py::test_order_dependencies_auto_mark
+
tests/test_order_group_scope_dep.py::test_class_group_scope_module_scope
+
tests/test_order_group_scope_named_dep.py::test_class_group_scope_module_scope
+ )
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local -x PYTEST_PLUGINS=pytest_order.plugin,xdist.plugin,pytest_mock
+ epytest
+}