public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/selenium/
Date: Thu, 29 Aug 2024 04:52:58 +0000 (UTC)	[thread overview]
Message-ID: <1724906834.28a461f9faad2e8d341fbcdedaba8b0c8aebdb6a.mgorny@gentoo> (raw)

commit:     28a461f9faad2e8d341fbcdedaba8b0c8aebdb6a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 29 04:47:14 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 29 04:47:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28a461f9

dev-python/selenium: Bump to 4.24.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/selenium/Manifest               |   2 +
 dev-python/selenium/selenium-4.24.0.ebuild | 135 +++++++++++++++++++++++++++++
 2 files changed, 137 insertions(+)

diff --git a/dev-python/selenium/Manifest b/dev-python/selenium/Manifest
index b0ee912e9113..611e5ce4b32b 100644
--- a/dev-python/selenium/Manifest
+++ b/dev-python/selenium/Manifest
@@ -1,2 +1,4 @@
 DIST selenium-4.23.1.tar.gz 945830 BLAKE2B 7931156bc8b79484433cb6a9bd7d49852981e3662a8e75f1f48d683644bac1c78e616e33965c611f50203a6a6f0f5bd09501c16816afe7a7c27b2a9e72a10a14 SHA512 3f9cda92c606ce7a32ecb6f1ef434501368fdab8673a0f23a39d78b80e80b732fafb6e29842ab5301d31cd8eaa907561b91a96cf67e181daeae3378e6a0e9a5b
+DIST selenium-4.24.0.tar.gz 952221 BLAKE2B b3336b41219884625885b3066a17ad5a45da9c28635ae20f7635fdedd0cda3a61f19f71ce151dc7bb1ed7338927eedc8492011871b225296bc57b21084d64855 SHA512 77508e4200e399a7b7c5c03d91d9c8fde97f733c4611bd98385bde1623ab2df91cc52168a8ff19a0ac99da95e2b96321d4d1cefecce2af30f3f0b54d90b9b2a5
 DIST selenium-selenium-4.23.1-python.gh.tar.gz 77116002 BLAKE2B dad444b109d2494b3442c81187fa6c9d3db2565183304f76d2badf2444e0545727c6f4bf08be0a5102692b9c018b3354a4063758253275624f9f4d6ff6d49254 SHA512 e7d4dc8f14fe9cae3d8e362a03b5068536d64e8484e151187ae9c917350e1f299977fb1521066998fba5cd845c5167a8440d02b15547d066a40d3e79cac1f50d
+DIST selenium-selenium-4.24.0.gh.tar.gz 77126013 BLAKE2B a909714b93b0cfc92a9d70d8cf20609eec65ebce3470fe487a23c86ac4f6f3dbf2e2ef88e00883999fe8b5e2842a05039fec94f6617961c436649baa618c59f8 SHA512 bc6f8066efba5a4f5a27abcc37eefa303e9efd89423729fedb4f466d98ed57e68c8593248206e4fc13cebd3446fa25a5a856d5f4c1d05940d73cecc920b4c522

diff --git a/dev-python/selenium/selenium-4.24.0.ebuild b/dev-python/selenium/selenium-4.24.0.ebuild
new file mode 100644
index 000000000000..a266e615c520
--- /dev/null
+++ b/dev-python/selenium/selenium-4.24.0.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_TESTED=( python3_{10..12} pypy3 )
+PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_13 )
+
+inherit distutils-r1 pypi
+
+# upstream sometimes tags it as ${P}, sometimes as ${P}-python, sigh
+TEST_TAG=${P}
+TEST_P=selenium-${TEST_TAG}
+
+DESCRIPTION="Python language binding for Selenium Remote Control"
+HOMEPAGE="
+	https://www.seleniumhq.org/
+	https://github.com/SeleniumHQ/selenium/tree/trunk/py/
+	https://pypi.org/project/selenium/
+"
+SRC_URI+="
+	test? (
+		https://github.com/SeleniumHQ/selenium/archive/${TEST_TAG}.tar.gz
+			-> ${TEST_P}.gh.tar.gz
+	)
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="test-rust"
+
+RDEPEND="
+	>=dev-python/certifi-2021.10.8[${PYTHON_USEDEP}]
+	<dev-python/trio-1[${PYTHON_USEDEP}]
+	>=dev-python/trio-0.17[${PYTHON_USEDEP}]
+	<dev-python/trio-websocket-1[${PYTHON_USEDEP}]
+	>=dev-python/trio-websocket-0.9[${PYTHON_USEDEP}]
+	<dev-python/typing-extensions-5[${PYTHON_USEDEP}]
+	>=dev-python/typing-extensions-4.9[${PYTHON_USEDEP}]
+	<dev-python/urllib3-3[${PYTHON_USEDEP}]
+	>=dev-python/urllib3-1.26[${PYTHON_USEDEP}]
+	<dev-python/websocket-client-2[${PYTHON_USEDEP}]
+	>=dev-python/websocket-client-1.8.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	test? (
+		dev-python/pytest-mock[${PYTHON_USEDEP}]
+		test-rust? (
+			dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+			dev-python/pytest-xdist[${PYTHON_USEDEP}]
+			dev-util/selenium-manager
+			net-misc/geckodriver
+			|| (
+				www-client/firefox
+				www-client/firefox-bin
+			)
+		)
+	)
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+	distutils-r1_src_prepare
+
+	# do not build selenium-manager implicitly
+	sed -e '/setuptools_rust/d' \
+		-e '/rust_extensions/,/\]/d' \
+		-i setup.py || die
+}
+
+python_test() {
+	if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
+		einfo "Skipping tests on ${EPYTHON}"
+		return
+	fi
+
+	local EPYTEST_DESELECT=(
+		# expects vanilla certifi
+		test/unit/selenium/webdriver/remote/remote_connection_tests.py::test_get_connection_manager_for_certs_and_timeout
+	)
+	local pytest_args=(
+		# https://github.com/SeleniumHQ/selenium/blob/selenium-4.8.2-python/py/test/runner/run_pytest.py#L20-L24
+		# seriously?
+		-o "python_files=*_tests.py test_*.py"
+		-p pytest_mock
+	)
+	if use test-rust; then
+		local -x PATH=${T}/bin:${PATH}
+		local -x SE_MANAGER_PATH="$(type -P selenium-manager)"
+
+		local EPYTEST_XDIST=1
+		pytest_args+=(
+			-p rerunfailures --reruns=5
+
+			--driver=firefox
+			--browser-binary="$(type -P firefox || type -P firefox-bin)"
+			--driver-binary="$(type -P geckodriver)"
+			--headless=true
+		)
+
+		EPYTEST_DESELECT+=(
+			# expects prebuilt executables for various systems
+			test/selenium/webdriver/common/selenium_manager_tests.py::test_uses_windows
+			test/selenium/webdriver/common/selenium_manager_tests.py::test_uses_linux
+			test/selenium/webdriver/common/selenium_manager_tests.py::test_uses_mac
+			test/selenium/webdriver/common/selenium_manager_tests.py::test_errors_if_invalid_os
+
+			# TODO: these don't respect --*-binary and try to fetch versions
+			test/selenium/webdriver/firefox
+			test/selenium/webdriver/marionette/mn_context_tests.py::test_context_sets_correct_context_and_returns
+			test/selenium/webdriver/marionette/mn_context_tests.py::test_context_sets_correct_context_and_returns
+			test/selenium/webdriver/marionette/mn_options_tests.py::TestIntegration::test_we_can_pass_options
+			test/selenium/webdriver/marionette/mn_set_context_tests.py::test_we_can_switch_context_to_chrome
+
+			# TODO
+			test/selenium/webdriver/common/bidi_script_tests.py
+			test/selenium/webdriver/marionette/mn_options_tests.py::TestUnit::test_binary
+			test/selenium/webdriver/marionette/mn_options_tests.py::TestUnit::test_ctor
+			test/selenium/webdriver/marionette/mn_options_tests.py::TestUnit::test_prefs
+			test/selenium/webdriver/marionette/mn_options_tests.py::TestUnit::test_to_capabilities
+		)
+	else
+		EPYTEST_DESELECT+=(
+			test/selenium
+		)
+	fi
+
+	cd "${WORKDIR}/${TEST_P}/py" || die
+	rm -rf selenium || die
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest "${pytest_args[@]}"
+}


             reply	other threads:[~2024-08-29  4:53 UTC|newest]

Thread overview: 198+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-29  4:52 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-22 19:09 [gentoo-commits] repo/gentoo:master commit in: dev-python/selenium/ Arthur Zamarin
2024-09-21  7:41 Michał Górny
2024-09-16 13:09 Joonas Niilola
2024-09-16 13:09 Joonas Niilola
2024-09-14 12:06 Arthur Zamarin
2024-09-14 11:31 Arthur Zamarin
2024-09-01 19:57 Arthur Zamarin
2024-09-01 17:04 Arthur Zamarin
2024-08-17  9:57 Michał Górny
2024-08-17  9:57 Michał Górny
2024-08-12 18:53 Michał Górny
2024-08-12 17:18 Arthur Zamarin
2024-08-10 15:41 Michał Górny
2024-08-10  9:03 Michał Górny
2024-08-10  8:17 Michał Górny
2024-08-10  7:32 Michał Górny
2024-08-10  7:25 Michał Górny
2024-08-10  7:25 Michał Górny
2024-07-24 15:44 Michał Górny
2024-07-24 13:02 Michał Górny
2024-07-06  8:33 Michał Górny
2024-07-06  7:29 Arthur Zamarin
2024-07-06  7:26 Arthur Zamarin
2024-07-06  7:07 Arthur Zamarin
2024-07-06  6:54 Arthur Zamarin
2024-07-06  6:26 Sam James
2024-07-06  6:26 Sam James
2024-07-06  6:14 Sam James
2024-06-21 16:59 Michał Górny
2024-06-21 16:59 Michał Górny
2024-06-21  1:58 Michał Górny
2024-06-19 17:21 Michał Górny
2024-06-07 17:29 Michał Górny
2024-06-07 16:52 Arthur Zamarin
2024-06-01 10:25 Arthur Zamarin
2024-06-01 10:25 Arthur Zamarin
2024-06-01 10:25 Arthur Zamarin
2024-06-01  7:39 Arthur Zamarin
2024-06-01  7:29 Arthur Zamarin
2024-06-01  7:25 Arthur Zamarin
2024-05-16 14:58 Michał Górny
2024-05-13 12:53 Michał Górny
2024-05-13 12:24 Arthur Zamarin
2024-05-11 11:11 Arthur Zamarin
2024-05-11 10:22 Arthur Zamarin
2024-05-11  9:49 Arthur Zamarin
2024-05-11  9:49 Arthur Zamarin
2024-05-11  7:52 Arthur Zamarin
2024-05-11  7:16 Arthur Zamarin
2024-04-25  4:43 Michał Górny
2024-04-12  3:03 Michał Górny
2024-04-11 21:34 Sam James
2024-04-11 19:39 Sam James
2024-04-11 17:40 Arthur Zamarin
2024-04-11 16:53 Arthur Zamarin
2024-04-11 16:51 Arthur Zamarin
2024-04-11 16:41 Arthur Zamarin
2024-04-11 16:01 Sam James
2024-03-28  5:55 Michał Górny
2024-03-08  5:40 Michał Górny
2024-03-07 20:22 Jakov Smolić
2024-03-07 18:12 Sam James
2024-03-07 17:09 Michał Górny
2024-03-07 17:09 Michał Górny
2024-03-07 16:22 Michał Górny
2024-03-07 16:19 Michał Górny
2024-03-07 16:15 Michał Górny
2024-02-20  6:13 Michał Górny
2024-02-19 15:51 Michał Górny
2023-12-24 17:24 Michał Górny
2023-12-24 17:21 Arthur Zamarin
2023-12-24 15:11 Sam James
2023-12-07  4:18 Michał Górny
2023-11-29 15:29 Michał Górny
2023-11-29 15:15 Arthur Zamarin
2023-11-29 14:42 Arthur Zamarin
2023-11-29 14:00 Arthur Zamarin
2023-11-29 11:45 Arthur Zamarin
2023-11-29 11:45 Arthur Zamarin
2023-11-29 11:15 Michał Górny
2023-11-29 11:04 Michał Górny
2023-11-25 15:14 Michał Górny
2023-11-17 10:44 Andrew Ammerlaan
2023-11-11 20:58 Arthur Zamarin
2023-11-11 20:17 Arthur Zamarin
2023-11-11 20:17 Arthur Zamarin
2023-11-11 20:17 Arthur Zamarin
2023-11-11 20:02 Sam James
2023-11-05 17:55 Michał Górny
2023-11-02 19:44 Michał Górny
2023-11-01 16:05 Michał Górny
2023-10-10  5:05 Michał Górny
2023-10-06 18:12 Michał Górny
2023-10-06 17:37 Arthur Zamarin
2023-10-06 17:05 Arthur Zamarin
2023-10-06 17:05 Arthur Zamarin
2023-10-06 16:04 Sam James
2023-10-06 14:34 Arthur Zamarin
2023-10-06 14:30 Arthur Zamarin
2023-10-06 14:29 Sam James
2023-09-26  4:42 Michał Górny
2023-09-01  5:06 Michał Górny
2023-07-23  8:28 Michał Górny
2023-07-20 10:16 WANG Xuerui
2023-07-17 17:51 Michał Górny
2023-07-17 11:15 Sam James
2023-07-09 17:57 Arthur Zamarin
2023-07-09 17:01 Arthur Zamarin
2023-06-18 17:21 Michał Górny
2023-06-18 15:49 Arthur Zamarin
2023-06-18 15:49 Arthur Zamarin
2023-06-18 15:45 Sam James
2023-06-18 15:45 Sam James
2023-06-18 15:15 Sam James
2023-06-18 15:14 Sam James
2023-06-18 14:47 Sam James
2023-06-08  5:13 Michał Górny
2023-05-18 18:54 Michał Górny
2023-05-08 19:31 Arthur Zamarin
2023-04-28 16:02 Arthur Zamarin
2023-04-28 16:00 Arthur Zamarin
2023-04-28 15:57 Arthur Zamarin
2023-04-28 15:55 Arthur Zamarin
2023-04-28 15:24 Arthur Zamarin
2023-04-28 15:07 Arthur Zamarin
2023-04-28 14:52 Arthur Zamarin
2023-04-28 14:49 Arthur Zamarin
2023-04-21  4:34 Michał Górny
2023-04-15  5:29 Michał Górny
2023-04-15  5:29 Michał Górny
2023-03-31 18:05 Sam James
2023-03-31 16:14 Sam James
2023-03-25  6:39 Michał Górny
2023-03-10  9:00 Sam James
2023-03-10  8:48 Yixun Lan
2023-03-10  7:49 Arthur Zamarin
2023-03-10  2:00 Sam James
2023-03-10  2:00 Sam James
2023-03-09 18:17 Michał Górny
2023-03-09 18:17 Michał Górny
2022-11-03 20:18 Arthur Zamarin
2022-11-03 20:17 Sam James
2022-11-03 20:10 Sam James
2022-11-03 19:32 Arthur Zamarin
2022-11-03 19:30 Arthur Zamarin
2022-11-03 19:16 Arthur Zamarin
2022-11-03 19:16 Arthur Zamarin
2022-11-03 19:11 Arthur Zamarin
2022-11-03 19:07 Arthur Zamarin
2022-09-29 18:13 Arthur Zamarin
2022-09-20  8:08 Michał Górny
2022-09-20  7:43 Jakov Smolić
2022-09-19 20:31 Arthur Zamarin
2022-09-19 20:25 Arthur Zamarin
2022-09-19 20:22 Arthur Zamarin
2022-09-19 20:20 Arthur Zamarin
2022-09-19 20:14 Jakov Smolić
2022-09-19 20:10 Jakov Smolić
2022-09-19 20:07 Arthur Zamarin
2022-08-20 13:20 Arthur Zamarin
2022-05-18 14:22 Andrew Ammerlaan
2022-04-26  1:51 Sam James
2021-06-01 20:35 Michał Górny
2021-05-19 18:21 Michał Górny
2020-11-30 21:12 Sergei Trofimovich
2020-11-28 15:26 Sam James
2020-11-28 15:26 Sam James
2020-09-28 17:41 Sergei Trofimovich
2020-09-27  6:42 Matt Turner
2020-09-01  4:22 Sam James
2020-08-29 23:22 Sam James
2020-07-16 19:34 Sam James
2020-06-19 18:10 Michał Górny
2020-05-18 11:52 Michał Górny
2020-05-16 15:37 Michał Górny
2020-05-16 15:37 Michał Górny
2020-05-12 15:54 Mart Raudsepp
2020-03-17 17:14 Michał Górny
2020-02-11 19:51 Agostino Sarubbo
2020-02-11 19:50 Agostino Sarubbo
2020-02-11 19:43 Agostino Sarubbo
2020-02-11 16:01 Agostino Sarubbo
2020-02-06  5:59 Michał Górny
2019-10-15 15:58 Craig Andrews
2019-10-15 15:58 Craig Andrews
2018-06-27  0:02 Zac Medico
2017-09-17 21:09 Matt Turner
2017-09-12 23:02 Matt Turner
2017-08-06  8:43 Markus Meier
2017-07-31 10:49 Tobias Klausmann
2017-04-20 13:41 Michał Górny
2017-01-30 19:47 Sebastien Fabbro
2016-01-14  9:53 Justin Lecher
2015-10-14 16:56 Justin Lecher
2015-09-20  6:51 Justin Lecher
2015-09-19 12:42 Agostino Sarubbo
2015-08-30  3:07 Ian Delaney

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=1724906834.28a461f9faad2e8d341fbcdedaba8b0c8aebdb6a.mgorny@gentoo \
    --to=mgorny@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