dev-python/selenium: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-08-11 06:27:51 +02:00
parent 952d5d0a4d
commit 2f773f1c64
3 changed files with 0 additions and 336 deletions
-5
View File
@@ -1,12 +1,7 @@
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.44.0.tar.gz 993133 BLAKE2B 1c8f7f1fdfb21812569651c6086eba57455354b79ab1736d7fbfe6415affafed1f154bb21ead08a66fc5ffc638e05244a60f1ee1e85405b492ba3e84ac8b9f06 SHA512 72dabe202620ed29c9f66936827c257adf44d2f7c98a39724b1d2ef99fd7819875877f2d3cd2b1086f9e544a1f29bb3df6aa516ff8670f3701469b2ce75f5856
DIST selenium-4.45.0.tar.gz 1005503 BLAKE2B ae9de988a6a7fd2b07aaac90d90973b600d7f494c8c840b8da7e19159222352382005e1d2a5774d2be6fff0987455e828da5227a8fdf71d0532e3ae759c1f6de SHA512 e67a731e93d172c0e1029656fdb06d4af808ccae3649fee85ba94f519da2407799b5d4a344c7334e0ce419031017493f83fd5fe82583d41060aeba49c369ff7a
DIST selenium-4.45.0.tar.gz.provenance 9743 BLAKE2B 485094912f8be3583d22377e06248ac42c2aadf8d7eb4cc6a0fdef566532f33346f7ba32a0b190e34e8657755c886de3fde73633d0f349c7282579a8c0fc4965 SHA512 dcbd6d32d76b3d76cb273c2dcd80966a84113879e8731f81a598d3c66495c0e26d7d870dca78f36da413bee052ce4d9db16e938efa6b0c1f6b8c138c798340cc
DIST selenium-4.46.0.tar.gz 1006000 BLAKE2B c3277f8c98a368b3bac948e62437771231bf23088567128276c56d968c2d285c4556e9fadd9cbfbd9246470ee35ddc7fdb7deed1a60951196e6af919454b1d65 SHA512 52ed8d7abcb250348d8dac11c5b7a5192c06df62a86fdfec70184b3f8e2d11e6891671fcab5a5633e5fa74d4b3891064546a045e7750a2d077a836dfc30f105a
DIST selenium-4.46.0.tar.gz.provenance 9688 BLAKE2B de5716d5d5b1789c2ccbfaccb2934f4c76f639abf5077c7e13c4603e81104a1a32d41df2bc2da71d37d5992a1f4da5acdaa95f46a46e9233fafdff760eea1bd8 SHA512 3a22178896bbea8b8ce15fdd9f78dc977a4197354150e23659dd43bbb521228bd26a71f4132053ae5f08e5d7370cfb9246282d59bbb3294d24fb4abb4e9a272c
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.44.0.gh.tar.gz 43755091 BLAKE2B 05a58f6cde1bf1a9cdd4aa7dc61a93bedbeed814f6b16c9876cb85879d5aa4f470db569c21b6582673a281af01637237c0e099c79d9dc6e602ceedfc57e1a04d SHA512 6b93db69b9c1196e72b0a762b64b0677d70262428fc5a8dfe8d93847588fa5b78e481e9fa195fac41279ebbe4f1dd354b1217635cabcf7fac1c964a3a8b18e7a
DIST selenium-selenium-4.45.0.gh.tar.gz 43849895 BLAKE2B ac9f2a6fdb393946e4e92326174c07c36fb15e1a8fc5053cbe5b4f4c76234127545234863149ec2d1811445d0985794b51927924f86d1067f2a9b4a5e36e2835 SHA512 943db9e790a2e9f52dcab9ea688bf805a9e6875a7eb43972f3c2b2eb454d2067eeb14204146dbc203b255d7228b18d9806a41711c8e37fa2e3d07a5b0bb96985
DIST selenium-selenium-4.46.0.gh.tar.gz 43968307 BLAKE2B 83554d041f8fb060d74e326494ada681c27dcf1457d705e7c6c91b92f7342cd8675c2954cf34ffabec445d542f824d88bf610e27778dd5363a713bf96b9ee89a SHA512 4a5317252dfaf90bac5689b0df83a19cb9e1dfd03fdb7de1f6d1ec03c50803c444cf89f231e34d6d26971f7275ab30179bcb35883533dc132d49beba9d96462c
-165
View File
@@ -1,165 +0,0 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_TESTED=( python3_{11..14} 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://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
)
local EPYTEST_IGNORE+=(
# requires some "python.runfiles", also bidi tests generally fail
test/selenium/webdriver/common/bidi_webextension_tests.py
# throws some error that pytest doesn't even show
test/selenium/webdriver/firefox/ff_installs_addons_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_emulation_tests.py
test/selenium/webdriver/common/bidi_errors_tests.py
test/selenium/webdriver/common/bidi_input_tests.py
test/selenium/webdriver/common/bidi_integration_tests.py
test/selenium/webdriver/common/bidi_log_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
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
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[@]}"
}
-166
View File
@@ -1,166 +0,0 @@
# 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_{12..15} )
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://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
)
local EPYTEST_IGNORE+=(
# requires some "python.runfiles", also bidi tests generally fail
test/selenium/webdriver/common/bidi_webextension_tests.py
# throws some error that pytest doesn't even show
test/selenium/webdriver/firefox/ff_installs_addons_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_emulation_tests.py
test/selenium/webdriver/common/bidi_errors_tests.py
test/selenium/webdriver/common/bidi_input_tests.py
test/selenium/webdriver/common/bidi_integration_tests.py
test/selenium/webdriver/common/bidi_log_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
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
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[@]}"
}