summaryrefslogtreecommitdiff
path: root/dev-python/selenium
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-10-03 19:04:04 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-10-03 19:04:04 +0000
commitaea0caf6fbf330077944736867748fcdabc85d33 (patch)
tree8abfffe4f3beca7a0fb19f0821243fb2c4f74285 /dev-python/selenium
parent9db05347f01604a785caafda9c9c5dbac4649447 (diff)
downloadbaldeagleos-repo-aea0caf6fbf330077944736867748fcdabc85d33.tar.gz
baldeagleos-repo-aea0caf6fbf330077944736867748fcdabc85d33.tar.xz
baldeagleos-repo-aea0caf6fbf330077944736867748fcdabc85d33.zip
Adding metadata
Diffstat (limited to 'dev-python/selenium')
-rw-r--r--dev-python/selenium/Manifest10
-rw-r--r--dev-python/selenium/selenium-4.31.0.ebuild138
-rw-r--r--dev-python/selenium/selenium-4.32.0.ebuild148
-rw-r--r--dev-python/selenium/selenium-4.33.0-r1.ebuild156
-rw-r--r--dev-python/selenium/selenium-4.36.0.ebuild (renamed from dev-python/selenium/selenium-4.34.0.ebuild)13
5 files changed, 8 insertions, 457 deletions
diff --git a/dev-python/selenium/Manifest b/dev-python/selenium/Manifest
index 6208e567847f..c79964b53abc 100644
--- a/dev-python/selenium/Manifest
+++ b/dev-python/selenium/Manifest
@@ -1,14 +1,8 @@
DIST selenium-4.26.1.tar.gz 967543 BLAKE2B 7e7476338a030083261199b725aaa38d03bb62f71c56c16495600428e976067b456c32b98d18a0fa4fcdcd6544ddb0043a8104b3c6c075917924ebb8466aee56 SHA512 08d75ee4b3b5d93ad5385c0755d1b9b4e604e491127da19ba3531c6de2213c6cbbdb768893168112643e6272019d4d761873039f42af1c96dffc7ccfb9fc3bab
-DIST selenium-4.31.0.tar.gz 855418 BLAKE2B d06268cfc71cfde25718ecded62f4556768138b428b63009d747c4a5e88f6e72bb975ac3b576eee44a014f2e0b55c4ac4fa17e0ddcbac15140bfee44ad584b23 SHA512 478060d4a87d0c000edfb76bed1ff40e0806b226eda41caa0d9818d650abe6a735513bac8520097659b22e64f145cf31d753d4d2209680cfa15a8a86454d0626
-DIST selenium-4.32.0.tar.gz 870997 BLAKE2B b25ceff282c7be6de7e3a02c71769aa08db6d726010b879f4feb7e0f96b465ad5ce9d5942d941f3d1dd4c1c664faeb0e5be5b01c69150420dd1b15b19197971b SHA512 8c46e7e07b1a647c7901401a8d7a2930f95a5df5c4ed81d3364446b88a9c55de5c8401ede06aea6e142807025f890e2c026407b9468a44e239b5bed6a2ffdbb0
-DIST selenium-4.33.0.tar.gz 882387 BLAKE2B 62f32dc6aea5d7d16c546283d884d4f56b86911d7dbeeeb37a3f978d7b2161a8178e6d244b0dd6e6c5ca1a2eb29b0b758ed537d4b13cad5c71012b3d24c38b3e SHA512 c1f4969279d6df92f8537fe3d8cad1cd8265c6942a765399d8024aafeeb90dc0af6e7c11509dcead18a89f03c3486cd526448b27fae91bfc670fbaea7c6a37af
-DIST selenium-4.34.0.tar.gz 895790 BLAKE2B 6f256ff92721eea31ec11dd0ced3d7ce7e1f79cb76664bed07297cfa872032652365ea17bc0a241a8417d3c47ea4242f520590a84024e5575e00e09cec5a9657 SHA512 374d5a321bbdbe260144e88b0cb1f10498e08368a3fc2142dbcb65e576a5188b5310dc3e0f5d8a114c5ac3a8ad9e5155c0cc5b66df13ea7fbd51a993b69472f3
DIST selenium-4.34.2.tar.gz 896309 BLAKE2B 094d3596a86e1cd50a6967a65b3e7b9a73300403f5d88163ded8b1d3a62cb09d77057e9b90a35b39f3a6000a8ba604bd71ecb051866cf7ad88c5ab9e21752978 SHA512 f5911f41bc4988e1af26812299cf37aba7e88820cf4e719e0e04a36a5dbdba5420422c52393c8d31c4e0f88efe779e9beec2c490892e4546caa0a920047e01fa
DIST selenium-4.35.0.tar.gz 907991 BLAKE2B e2d0baade499b41cdb23bdbae0059163fb58157dc86c3bcf4d7b9c4d040bcec19aba4000a223a4e7dd0137d4cc321064e95cd12fe22beaa311237c18261518ce SHA512 09f9149b94974c7965d5b81ee1ca65cca7e7a1de775d7323335c21acbbdc21da17f0f6314a8162177c6a22fdbb23b4147c213b2c3a98bfd9a13ac077dc113812
+DIST selenium-4.36.0.tar.gz 913613 BLAKE2B cc4354d8c5a85aea2ed8c825b2ed06833db7f85276f99c8294b4dcaa1b58ad48f81549a8aafd4e93143b97eeaafd1c96d162b93c3c7bb7d45df6dbd7e9764f9b SHA512 9ad9a3fbe1234754d7eaac94ad07f876108f390414addb057b50fa3ae46107f40f1cc7b40683064d59b82ce081ca9ca0297be6a55f61e8c19d93a49b91bc6d57
DIST selenium-selenium-4.26.1-python.gh.tar.gz 77109265 BLAKE2B c0c5693c64fa65a627e5edf0cbbc051410fcddf59e4fd80c362b9a382c586fc3ad3d574674e5523ab284b40b6639e95e85fd1c8195f2f1a6f35ad6532ed667ce SHA512 7ace69332f17c6f7e28b81223f4c8c62cde1832b5acaf2fd1c777a08a5a9cfebb5d9c83daa10462eeb3acb9c7cb5038711f5acee51f5dad3910d7e29e4387d3f
-DIST selenium-selenium-4.31.0.gh.tar.gz 52458288 BLAKE2B 649d585e116ccd82e68f3b74b50cbbda5b9ac02c6ab8e72473b5775265205dc31ec69c846b1b39c91dceb63234bb02bf4833b321d101227f5873db6ad8897038 SHA512 e440e1b8e15b9e1f592b2466738f3982355a0757458bd7c8ef7eba31548df2bd449e54cea273a47f2b6bd0e68a2d75a1af67a791eff0cf3f601e685c4b8b237a
-DIST selenium-selenium-4.32.0.gh.tar.gz 52479399 BLAKE2B 01a2c0c172d4d25045b7f16d16c23945f4aaf48b422a9c926cdd6dbc728193a94d068c69f0317d3e5b8dd17df655581b3e5fd1e845cb18c1080f7a4aeb88d1dc SHA512 3beac9d23e9b92e54ff53195bb6376f6938019af9fdf9ad42210deb4bcd3b0fafe9e5098d4ba6e974d4d7f6bce6788622c0bd89ccf07117f3f7c7abad4e8831c
-DIST selenium-selenium-4.33.0.gh.tar.gz 52518597 BLAKE2B 126fd55707580ff1e8a1df129680dcfb3f6edd11cacc335bb0163cf0af7b9f713a5c73d70e963089e0bffd14bede21c04dcec8eb99aaa5be6719717411c73088 SHA512 6392f952081cac1c2d9a5d9b1a93da270a6605f370d25fa3e79551b8df648f527b1936448e42d5e75d89613a7306a5d8f351e471b7c783ef35e7b22be9eb2955
-DIST selenium-selenium-4.34.0.gh.tar.gz 52524095 BLAKE2B 1fe7e662697039708ce84ef4941f028369ca54089cd4f5075b3df2aa0d08373a3779ca201daa29ff5c4ad3d139f751a4525e114bfa80e3d0d297901309bf3bda SHA512 6e431e82d1ef4cb5dd47f319a95a43ebf68924b73f5de8e562ba21a0420d58098dcf63578699d36e3da5a6180fe7e433a50389a362357eb7c7f6d0a5770966b6
DIST selenium-selenium-4.34.2-python.gh.tar.gz 52515190 BLAKE2B 319a7083d5942c1962b4f48f907fea12943a403e4490f74f3cd38662f1c63f57270b27b6039a5a8f29a980540cd0dcf1d1c7560c7ac126f07e491983dc0e81ef SHA512 5ca0b6e970ded3dc93cd55a2c1af7c43063d87f57f119a011313eb7d08faa4057896a56d4eac2e13d39857c94b54f04840a053153cc39008c76cbdd33c8ddbba
DIST selenium-selenium-4.35.0.gh.tar.gz 52550104 BLAKE2B b7ed0fb513cfb2ed24aa8393497b349f930739c3d24a330e5942fbaa5505f31d7086396a430776a3a28a5f65927b92bf27c0a32e8c36d893b5d62ef73151d5ef SHA512 dc73829e3b0fcb7fb7ee1cc04574b95b63d23f67974575dbd66338e14a5cb2b06f983145ce874be0d7124e8828b0a41b99c75d3befb19e04cbf8d027d0bb983a
+DIST selenium-selenium-4.36.0.gh.tar.gz 52567842 BLAKE2B e5e715ce0d4e491f2551ea13c2b9cd6c1021fafd6b0bf0dacba9b0aa4e3f479816cb910c66e286e8cb7b737063705caa2c843db3ccb83f964b4bd64ff174d935 SHA512 b95037df807c827c8f110d112ec0d062c7bb3c71b9faf31f5bfae59b5bfd1c2e20b035c3c3ab180b2319f8ba952042fb77966eb44db5b803a545fa18e0285bb5
diff --git a/dev-python/selenium/selenium-4.31.0.ebuild b/dev-python/selenium/selenium-4.31.0.ebuild
deleted file mode 100644
index b9f86c761ead..000000000000
--- a/dev-python/selenium/selenium-4.31.0.ebuild
+++ /dev/null
@@ -1,138 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_TESTED=( python3_{9,10,11,12,13} pypy3 )
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
-
-inherit distutils-r1 pypi
-
-# base releases are usually ${P}, followups ${P}-python
-TEST_TAG=${P}
-[[ ${PV} != *.0 ]] && TEST_TAG+=-python
-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 arm64 ~ppc ~ppc64 ~riscv ~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/filetype[${PYTHON_USEDEP}]
- 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
- )
- )
- )
-"
-
-# xdist is causing random pytest crashes with high job numbers
-distutils_enable_tests pytest
-
-src_prepare() {
- distutils-r1_src_prepare
-
- # do not build selenium-manager implicitly
- sed -e 's:\[tool\.setuptools-rust:[tool.ignore-me:' \
- -i pyproject.toml || 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
- # TODO
- 'test/selenium/webdriver/common/devtools_tests.py::test_check_console_messages[firefox]'
- )
- 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)"
-
- 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[@]}"
-}
diff --git a/dev-python/selenium/selenium-4.32.0.ebuild b/dev-python/selenium/selenium-4.32.0.ebuild
deleted file mode 100644
index 540c85a8efa8..000000000000
--- a/dev-python/selenium/selenium-4.32.0.ebuild
+++ /dev/null
@@ -1,148 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_TESTED=( python3_{9,10,11,12,13} pypy3 )
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
-
-inherit distutils-r1 pypi
-
-# base releases are usually ${P}, followups ${P}-python
-TEST_TAG=${P}
-[[ ${PV} != *.0 ]] && TEST_TAG+=-python
-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 arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
-IUSE="test test-rust"
-RESTRICT="!test? ( test )"
-
-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? (
- ${RDEPEND}
- $(python_gen_cond_dep '
- dev-python/filetype[${PYTHON_USEDEP}]
- dev-python/pytest-mock[${PYTHON_USEDEP}]
- test-rust? (
- dev-python/pytest[${PYTHON_USEDEP}]
- 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
- )
- )
- ' "${PYTHON_TESTED[@]}")
- )
-"
-
-src_prepare() {
- distutils-r1_src_prepare
-
- # do not build selenium-manager implicitly
- sed -e 's:\[tool\.setuptools-rust:[tool.ignore-me:' \
- -i pyproject.toml || die
-}
-
-python_test() {
- # NB: xdist is causing random pytest crashes with high job numbers
-
- 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
- # TODO
- 'test/selenium/webdriver/common/devtools_tests.py::test_check_console_messages[firefox]'
- )
- 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)"
-
- pytest_args+=(
- -p rerunfailures --reruns=5
-
- --driver=firefox
- --browser-binary="$(type -P firefox || type -P firefox-bin)"
- --driver-binary="$(type -P geckodriver)"
- --headless
- -x
- )
-
- 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_browser_tests.py
- test/selenium/webdriver/common/bidi_browsing_context_tests.py
- test/selenium/webdriver/common/bidi_network_tests.py
- test/selenium/webdriver/common/bidi_script_tests.py
- test/selenium/webdriver/common/bidi_session_tests.py
- test/selenium/webdriver/common/bidi_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[@]}"
-}
diff --git a/dev-python/selenium/selenium-4.33.0-r1.ebuild b/dev-python/selenium/selenium-4.33.0-r1.ebuild
deleted file mode 100644
index 6690c973616c..000000000000
--- a/dev-python/selenium/selenium-4.33.0-r1.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_TESTED=( python3_{9,10,11,12,13} pypy3 )
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
-
-inherit distutils-r1 pypi
-
-# base releases are usually ${P}, followups ${P}-python
-TEST_TAG=${P}
-[[ ${PV} != *.0 ]] && TEST_TAG+=-python
-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 arm64 ~loong ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
-IUSE="test test-rust"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- >=dev-python/certifi-2025.4.26[${PYTHON_USEDEP}]
- >=dev-python/trio-0.30[${PYTHON_USEDEP}]
- >=dev-python/trio-websocket-0.12.2[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-4.13.2[${PYTHON_USEDEP}]
- >=dev-python/urllib3-2.4.0[${PYTHON_USEDEP}]
- >=dev-python/websocket-client-1.8.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- ${RDEPEND}
- $(python_gen_cond_dep '
- dev-python/filetype[${PYTHON_USEDEP}]
- dev-python/pytest-mock[${PYTHON_USEDEP}]
- test-rust? (
- dev-python/pytest[${PYTHON_USEDEP}]
- 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
- )
- )
- ' "${PYTHON_TESTED[@]}")
- )
-"
-
-src_prepare() {
- distutils-r1_src_prepare
-
- # do not build selenium-manager implicitly
- sed -e 's:\[tool\.setuptools-rust:[tool.ignore-me:' \
- -i pyproject.toml || die
- # unpin deps
- sed -i -e 's:~=:>=:g' pyproject.toml || die
-
- if use test; then
- cd "${WORKDIR}/${TEST_P}" || die
- eapply "${FILESDIR}/${P}-pytest-ignore.patch"
- fi
-}
-
-python_test() {
- # NB: xdist is causing random pytest crashes with high job numbers
-
- if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
- einfo "Skipping tests on ${EPYTHON}"
- return
- fi
-
- local EPYTEST_IGNORE=()
- 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)"
-
- pytest_args+=(
- -p rerunfailures --reruns=5
-
- --driver=firefox
- --browser-binary="$(type -P firefox || type -P firefox-bin)"
- --driver-binary="$(type -P geckodriver)"
- --headless
- )
-
- local EPYTEST_IGNORE+=(
- # requires some "python.runfiles", also bidi tests generally fail
- test/selenium/webdriver/common/bidi_webextension_tests.py
- )
- 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/devtools_tests.py::test_check_console_messages[firefox]'
-
- # TODO
- test/selenium/webdriver/common/bidi_browser_tests.py
- test/selenium/webdriver/common/bidi_browsing_context_tests.py
- test/selenium/webdriver/common/bidi_network_tests.py
- test/selenium/webdriver/common/bidi_script_tests.py
- test/selenium/webdriver/common/bidi_session_tests.py
- test/selenium/webdriver/common/bidi_storage_tests.py
- test/selenium/webdriver/common/bidi_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_IGNORE+=(
- test/selenium
- )
- fi
-
- cd "${WORKDIR}/${TEST_P}/py" || die
- rm -rf selenium || die
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest "${pytest_args[@]}"
-}
diff --git a/dev-python/selenium/selenium-4.34.0.ebuild b/dev-python/selenium/selenium-4.36.0.ebuild
index 89316f7c6614..e25f69f56609 100644
--- a/dev-python/selenium/selenium-4.34.0.ebuild
+++ b/dev-python/selenium/selenium-4.36.0.ebuild
@@ -16,7 +16,7 @@ TEST_P=selenium-${TEST_TAG}
DESCRIPTION="Python language binding for Selenium Remote Control"
HOMEPAGE="
- https://www.seleniumhq.org/
+ https://seleniumhq.org/
https://github.com/SeleniumHQ/selenium/tree/trunk/py/
https://pypi.org/project/selenium/
"
@@ -50,7 +50,6 @@ BDEPEND="
test-rust? (
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
- dev-python/pytest-xdist[${PYTHON_USEDEP}]
dev-util/selenium-manager
net-misc/geckodriver
|| (
@@ -69,7 +68,7 @@ src_prepare() {
sed -e 's:\[tool\.setuptools-rust:[tool.ignore-me:' \
-i pyproject.toml || die
# unpin deps
- sed -i -e 's:~=:>=:g' pyproject.toml || die
+ sed -i -e 's:,<[0-9.]*::' pyproject.toml || die
}
python_test() {
@@ -80,6 +79,7 @@ python_test() {
return
fi
+ local EPYTEST_PLUGINS=( pytest-mock )
local EPYTEST_IGNORE=()
local EPYTEST_DESELECT=(
# expects vanilla certifi
@@ -89,15 +89,13 @@ python_test() {
# 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_RERUNS=5
pytest_args+=(
- -p rerunfailures --reruns=5
-
--driver=firefox
--browser-binary="$(type -P firefox || type -P firefox-bin)"
--driver-binary="$(type -P geckodriver)"
@@ -128,6 +126,8 @@ python_test() {
# TODO
test/selenium/webdriver/common/bidi_browser_tests.py
test/selenium/webdriver/common/bidi_browsing_context_tests.py
+ test/selenium/webdriver/common/bidi_emulation_tests.py
+ test/selenium/webdriver/common/bidi_input_tests.py
test/selenium/webdriver/common/bidi_network_tests.py
test/selenium/webdriver/common/bidi_permissions_tests.py
test/selenium/webdriver/common/bidi_script_tests.py
@@ -147,6 +147,5 @@ python_test() {
cd "${WORKDIR}/${TEST_P}/py" || die
rm -rf selenium || die
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest "${pytest_args[@]}"
}