dev-python/selenium: Bump to 4.30.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-03-22 06:39:05 +01:00
parent aa6dbc5cbb
commit fc2723786f
2 changed files with 140 additions and 0 deletions

View File

@@ -2,7 +2,9 @@ DIST selenium-4.25.0.tar.gz 957765 BLAKE2B e62f1e9e0619f376e75cbfdbc67540184dde3
DIST selenium-4.26.1.tar.gz 967543 BLAKE2B 7e7476338a030083261199b725aaa38d03bb62f71c56c16495600428e976067b456c32b98d18a0fa4fcdcd6544ddb0043a8104b3c6c075917924ebb8466aee56 SHA512 08d75ee4b3b5d93ad5385c0755d1b9b4e604e491127da19ba3531c6de2213c6cbbdb768893168112643e6272019d4d761873039f42af1c96dffc7ccfb9fc3bab
DIST selenium-4.28.1.tar.gz 981633 BLAKE2B a8b856d4de7be4a68028f97c88852faf867224c2632ec40273d1589de2b84a75ae96d4b3799bce50dd8967ed979da686511212c0fa2bad5775f9288c5fbf0be4 SHA512 cefcf4286fcce8f3e33d9d97001bee0ecee157609aa921adfe58b748cb4f7b90feeda95181a4d67ebc6ed2b5381db1fb2f1ffb105c6469f0034918a93cba01d1
DIST selenium-4.29.0.tar.gz 985717 BLAKE2B 61dbda8dcc3280289a2f84159edd11bbef66c507ceb10d017b50249e4ae2d200761d7fc83d457ff412001c8e18f363b89c04eafc118ac4f2a2ac15f681e9a5a6 SHA512 aff22caec524b1835f3c0d857e44545693716e2cd250f835c77b89225c1a3af6dfe2090d66bbad270e131e36ba0629af72cf0075e40c04d9e8c908dd41f8f6ad
DIST selenium-4.30.0.tar.gz 859424 BLAKE2B af4a48506b8749620441272a892dd21c8dcb0075ddfe4d489b803be2ec81c6489367483c7d1444de2c91a173148b519e700aa937a7be11c5703baa5cf1baa441 SHA512 6e8b73c0b877064987d66a7ebfd04edc550332ea0dbdcbd84d2060e47f8fce0817c47480fb18849332513e6e115239f25e09ad02f5ba72271af9bbc998f482f2
DIST selenium-selenium-4.25.0.gh.tar.gz 77158053 BLAKE2B 9978239a874d32e23d98ec98eb5292153496c42abcdd0f959875b2b460df5a85c0b532b6843e0d13b931078490958ebdc2944a8c21ce2eae24a0ac6a3c830772 SHA512 6d11d1aa22d27dbc07c3d39f5f852080c5089b12b1da0251e7b09c38ac3b8f56f452a24c64a20685eb0aff238698ab4bd18a8b7089c69f261cfbcdc679ceeac8
DIST selenium-selenium-4.26.1-python.gh.tar.gz 77109265 BLAKE2B c0c5693c64fa65a627e5edf0cbbc051410fcddf59e4fd80c362b9a382c586fc3ad3d574674e5523ab284b40b6639e95e85fd1c8195f2f1a6f35ad6532ed667ce SHA512 7ace69332f17c6f7e28b81223f4c8c62cde1832b5acaf2fd1c777a08a5a9cfebb5d9c83daa10462eeb3acb9c7cb5038711f5acee51f5dad3910d7e29e4387d3f
DIST selenium-selenium-4.28.1-python.gh.tar.gz 52438112 BLAKE2B 62e2a8334238a6fbe063eda6253f2e6d6ab83484dde2b6b7d2fb6fab3e37d7c1d78b82b424c665c5b38fa06928ec693ece8dab03831132b3d7666c296c4cd39f SHA512 f5c917615a7424470c095c7b9730c02e1e7d7e691b51bc29fbb2d72f3ea08d647705d67702e287e962c033f1269b7cff8cba93bef4999de09c90a6f0e9029efa
DIST selenium-selenium-4.29.0.gh.tar.gz 52589103 BLAKE2B 65b202e599c1a3d31ebd15a3da1246fe7e8ea4a55c24189a1146d07e4a49a5fcdfbdb000b7e8102b09de4f3c60d4ca13c033c2127603f8ed2c6277d254cb3069 SHA512 2a3dde375539592cb65fc2dca27e5a3f92ccdd9111dd0c7a0453a6f447a2f4b738d92120d1ef6872321265f86c87708859e714288b49893f6b8ccb1ad003cbf7
DIST selenium-selenium-4.30.0.gh.tar.gz 52519870 BLAKE2B 440198b919d2c3400666bc07d246bff04521ec10716fadf660c564bd316e5889c4ecb314a45422661623b2a17e47e93921cad6eb97d3ca1b6f47cbae0ad42ac7 SHA512 561551002d2c37acc9a0b5fc40e3989a47d69dc0692a6fe44c90b0b77bf0056bc390848020fea7f5681ccbb5ec9808912cc5e63c286577ec60d787f3d2991b82

View File

@@ -0,0 +1,138 @@
# 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_{10..13} pypy3 pypy3_11 )
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
)
)
)
"
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)"
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[@]}"
}