public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-testinfra/
Date: Fri, 24 Feb 2023 21:19:34 +0000 (UTC)	[thread overview]
Message-ID: <1677273568.e1eb1d05c8b13107b6ab83f3c104250b7418c6b4.marecki@gentoo> (raw)

commit:     e1eb1d05c8b13107b6ab83f3c104250b7418c6b4
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 24 20:41:35 2023 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Feb 24 21:19:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1eb1d05

dev-python/pytest-testinfra: enable py3.11

...with one test disabled for that version because it depends on
app-admin/salt having 3.11 support as well - and if adding 3.10 support
in it was anything to go by, it will take a while.

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 .../pytest-testinfra/pytest-testinfra-7.0.0.ebuild    | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/dev-python/pytest-testinfra/pytest-testinfra-7.0.0.ebuild b/dev-python/pytest-testinfra/pytest-testinfra-7.0.0.ebuild
index 8969cefa4304..6e95a5f30b3f 100644
--- a/dev-python/pytest-testinfra/pytest-testinfra-7.0.0.ebuild
+++ b/dev-python/pytest-testinfra/pytest-testinfra-7.0.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_10 )
+PYTHON_COMPAT=( python3_{10..11} )
 
 inherit distutils-r1
 
@@ -30,7 +30,9 @@ BDEPEND="
 	dev-python/setuptools_scm[${PYTHON_USEDEP}]
 	test? (
 		app-admin/ansible
-		app-admin/salt[${PYTHON_USEDEP}]
+		$(python_gen_cond_dep '
+			app-admin/salt[${PYTHON_USEDEP}]
+		' python3_10)
 		dev-python/paramiko[${PYTHON_USEDEP}]
 		dev-python/pywinrm[${PYTHON_USEDEP}]
 		sys-apps/which
@@ -39,6 +41,19 @@ BDEPEND="
 
 distutils_enable_tests pytest
 
+python_test() {
+	local -x EPYTEST_IGNORE=()
+
+	# This is the only test which actually fails if salt cannot be imported
+	if [[ ${EPYTHON} == python3.11 ]]; then
+		EPYTEST_IGNORE+=(
+			test/test_backends.py::test_backend_importables
+		)
+	fi
+
+	epytest
+}
+
 pkg_postinst() {
 	elog "For the list of available connection back-ends and their dependencies,"
 	elog "please consult https://testinfra.readthedocs.io/en/latest/backends.html"


             reply	other threads:[~2023-02-24 21:19 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-24 21:19 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-12  7:42 [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-testinfra/ Michał Górny
2024-06-12  7:05 Arthur Zamarin
2024-05-27  4:17 Michał Górny
2024-03-16 17:11 Michał Górny
2024-03-16 17:06 Arthur Zamarin
2024-03-16 11:41 Arthur Zamarin
2024-03-06 17:37 Marek Szuba
2024-02-27 15:43 Michał Górny
2024-02-15 12:19 Michał Górny
2023-12-09 15:13 Michał Górny
2023-12-09 14:58 Michał Górny
2023-11-24 19:17 Michał Górny
2023-11-23 20:34 Arthur Zamarin
2023-11-14  4:34 Michał Górny
2023-09-25 18:57 Michał Górny
2023-09-25 18:31 Arthur Zamarin
2023-08-25  9:49 Michał Górny
2023-06-27 11:36 Michał Górny
2023-06-27  9:08 Jakov Smolić
2023-05-22  5:53 Michał Górny
2023-05-20  5:34 Michał Górny
2023-03-17 15:23 Michał Górny
2023-02-26 11:37 Marek Szuba
2023-01-10 14:15 Michał Górny
2023-01-08  5:06 Michał Górny
2023-01-07 18:27 Arthur Zamarin
2022-12-03  9:09 Michał Górny
2022-11-23  0:00 Marek Szuba
2022-09-26  1:01 Marek Szuba
2022-06-20  6:22 Michał Górny
2022-06-05  5:46 Michał Górny
2022-05-31  7:16 Jakov Smolić
2022-05-16 13:27 Michał Górny
2022-04-12 17:34 Michał Górny
2022-03-26 22:31 Marek Szuba
2022-02-11  9:42 Michał Górny
2022-01-11 18:38 Marek Szuba
2021-12-07 23:27 Michał Górny
2021-10-17  9:20 Michał Górny
2021-07-01 11:02 Marek Szuba
2021-06-15 13:30 Marek Szuba
2021-06-11 16:32 Marek Szuba

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=1677273568.e1eb1d05c8b13107b6ab83f3c104250b7418c6b4.marecki@gentoo \
    --to=marecki@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