summaryrefslogtreecommitdiff
path: root/dev-python/selenium
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-10-01 03:10:20 -0500
committerCrucible <crucible@localhost>2026-10-01 03:10:20 -0500
commitc387ab5925039957145c01955c824bf9b3c7cafc (patch)
treefca94a681608aa58240434283a0a764ce54fb79f /dev-python/selenium
parent084d0fe1951530add5e3282a613adf97850dbd58 (diff)
downloadsrcux-c387ab5925039957145c01955c824bf9b3c7cafc.tar.gz
srcux-c387ab5925039957145c01955c824bf9b3c7cafc.tar.xz
srcux-c387ab5925039957145c01955c824bf9b3c7cafc.zip
Publish srcux candidate 0000000547-20261001-030821
Diffstat (limited to 'dev-python/selenium')
-rw-r--r--dev-python/selenium/Manifest3
-rw-r--r--dev-python/selenium/selenium-4.50.0.ebuild151
2 files changed, 154 insertions, 0 deletions
diff --git a/dev-python/selenium/Manifest b/dev-python/selenium/Manifest
index 8846676a36d9..c45fadbd594d 100644
--- a/dev-python/selenium/Manifest
+++ b/dev-python/selenium/Manifest
@@ -6,8 +6,11 @@ DIST selenium-4.48.0.tar.gz 1055269 BLAKE2B b32ee5a3173349ea84a1e02a0597c97b16ba
DIST selenium-4.48.0.tar.gz.provenance 9510 BLAKE2B 64930b11f482d836deb355698076bc7b6d69503cc71210ac287d6b666d7ba7af2a489732fbd05ecb745b4ae6d4427f10ab5417f160f9ad5bcdbaf576026620fe SHA512 39b4104f5e9bc8df64e100a20113558496913a344c27610fa558507d97c17cba78c76e181eacdcd7317c1473d09eed5946a85479fbe48402e13a923c906d5886
DIST selenium-4.49.0.tar.gz 1059027 BLAKE2B 9e35fb89dc9966c22ea1577ce7bc0aa3911528cb303255320e757ab6a4d8be66212616aa0ce8cea75441fc11efdf3cb5afa93f4b1a12d6c610c4bd18dbbf6c1c SHA512 c570250edd551bfb1629543c53c360619e6ed214dcb31f9abab43d5ff34f6b52909ac72d362fa9d7fec078df0bf7f73ae193acdd2016e1a42655c2f300c4053b
DIST selenium-4.49.0.tar.gz.provenance 9690 BLAKE2B bbaccc4cba8a4da1c8c5278eb5e4ff2e765920721530eaf041d6b834d14fc60911db530fa93d0b9f9048381627e34e0ca9bf590527354b3a7af233e67095bf49 SHA512 0544fd467dc562e65ffb0125df2d424047890dcae01cd28639c2eabea73be7892d05be6095f4cb739d1f1a239f1d187c0afc0b083bfebbce9ed877660ab7a890
+DIST selenium-4.50.0.tar.gz 1051762 BLAKE2B 6b8854841d8738b8ad36d3654f8a80f8a34b612755380f194cbc3ef4eb83c45d4491cbbf37fd5f4be49a4e431f16f68c0a2b3a24c92bdef961eb2b61b01c91b1 SHA512 59c5f16fb34cd4fa18e6c4d0fd3e8d0cd30ebcaa3e4e255be26ecbc83094da49634ef63be8ced154b0de357d11d2f8f7c4652d4a85b7b2e6385d68ef79f8efd2
+DIST selenium-4.50.0.tar.gz.provenance 9600 BLAKE2B 3e6faa407fd5dac2057d3bb86f18767ff1cc2308cc46a3712c4b9eee5af2abcbd6ce517d9b7182a759d6a832d2d892b5e593c3ccf21da6b4d23765a862591a51 SHA512 f3b9dc689bc5884fc959dda9dece84eb3fbc28f837a579220ffcddf44489a4360cad1649619ab06d75a0dce29a49ec4fc042d353d5934d60cf746739a38bf236
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.47.0.gh.tar.gz 44062095 BLAKE2B d6ce15ce857d3dd0e796935981e419be5357d49921ff76d5bcdf508408022234a2f96859e961b29e62666d3f28875910384900701629a4646b809f1b9c0e8617 SHA512 bb8dc827715fcb276211dd9800e8a375fa2b59b4e42a2952091946c7df2dabe226517633191da3b134d7fdd1554b0643added277be577fe4985dc54d141fad5d
DIST selenium-selenium-4.48.0.gh.tar.gz 44169864 BLAKE2B 6c3073b38b660f73fbfd1b683403d851c62ef1fd13a8d6f4e2df60e562e895ea323cdd999686e70d22b3a40e2cd0194b27cd88a4b4bbbe2dd4795ece30496659 SHA512 f1e5a02d9b2946586263b50be33aea75c3cc98013bafcbe52f8c787f497011528c25d392c0af3af0b3a0023ddfe1a87ab10eb3e813eef6feff3bd9bbe285cd77
DIST selenium-selenium-4.49.0.gh.tar.gz 44228222 BLAKE2B 3efebe68d3b3b70e5089225d86b693357154d8c66d0ec6545d77012edc54edcc1ecde69b92f4e7bb110ce734c49a1766cb8d8fcb13814bac9d0b7dbd49a41567 SHA512 f5aba633816adf0d57814ce62832d3d0ec70ad75c466af4696c47b904f69411afc7a23464544d699b6b1f7d5b927c18e817c45e993c57c98b9f37299949bf625
+DIST selenium-selenium-4.50.0.gh.tar.gz 44272291 BLAKE2B 01dbb95665649c693909f8ebeec0de60f7b219eedbfa320e509689e1bf03d6468a07811e4d68b083af12b79e74f2d60a47e018337952ffead96005c632e09c22 SHA512 34a17233ad4e8caf156993efb9d3860468ed96b71c319735019cfec3461938b035555136a7ed6ae3c529260e59b08c00d5522991391da2fd474bc33413814cea
diff --git a/dev-python/selenium/selenium-4.50.0.ebuild b/dev-python/selenium/selenium-4.50.0.ebuild
new file mode 100644
index 000000000000..6bc9836d962e
--- /dev/null
+++ b/dev-python/selenium/selenium-4.50.0.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_VERIFY_REPO=https://github.com/SeleniumHQ/selenium
+PYTHON_TESTED=( python3_{13..14} )
+PYTHON_COMPAT=( python3_{13..14} )
+
+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://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 ~x86"
+IUSE="test test-rust"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/certifi-2026.1.4[${PYTHON_USEDEP}]
+ >=dev-python/trio-0.31.0[${PYTHON_USEDEP}]
+ >=dev-python/trio-websocket-0.12.2[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-4.15.0[${PYTHON_USEDEP}]
+ >=dev-python/urllib3-2.6.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}]
+ dev-python/rich[\${PYTHON_USEDEP}]
+ test-rust? (
+ dev-python/pytest[\${PYTHON_USEDEP}]
+ dev-python/pytest-rerunfailures[\${PYTHON_USEDEP}]
+ >=dev-util/selenium-manager-${PV}
+ 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:,<[0-9.]*::' pyproject.toml || die
+ # remove nonsense typing deps
+ sed -i -e '/types/d' -e '/typing/d' 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_PLUGINS=( pytest-mock )
+ 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"
+ )
+ 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+=(
+ --driver=firefox
+ --browser-binary="$(type -P firefox || type -P firefox-bin)"
+ --driver-binary="$(type -P geckodriver)"
+ --headless
+ )
+
+ EPYTEST_IGNORE+=(
+ # throws some error that pytest doesn't even show
+ test/selenium/webdriver/firefox/ff_installs_addons_tests.py
+ test/selenium/webdriver/common/bidi/
+ )
+ 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]'
+ test/selenium/webdriver/common/_bidi/
+ 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
+ test/selenium/webdriver/remote/remote_custom_locator_tests.py::test_find_element_with_custom_locator
+ test/selenium/webdriver/remote/remote_custom_locator_tests.py::test_find_elements_with_custom_locator
+
+ # Internet
+ test/selenium/webdriver/remote/remote_server_tests.py::test_download_latest_server
+ test/selenium/webdriver/remote/remote_hub_connection_tests.py::test_command_executor_ssl_certificate_is_verified
+ )
+ else
+ EPYTEST_IGNORE+=(
+ test/selenium
+ )
+ fi
+
+ cd "${WORKDIR}/${TEST_P}/py" || die
+ rm -rf selenium || die
+ epytest "${pytest_args[@]}"
+}