summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-25 06:27:45 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-25 07:39:42 +0100
commit2268df1e2ef5e299526c92cd99b48dfb29b73f12 (patch)
tree7fbac5a2992de6d00a328f8499222ce9f90fda82 /dev-python/selenium
parentdev-python/requests-cache: Bump to 1.0.1 (diff)
downloadgentoo-2268df1e2ef5e299526c92cd99b48dfb29b73f12.tar.gz
gentoo-2268df1e2ef5e299526c92cd99b48dfb29b73f12.tar.bz2
gentoo-2268df1e2ef5e299526c92cd99b48dfb29b73f12.zip
dev-python/selenium: Bump to 4.8.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/selenium')
-rw-r--r--dev-python/selenium/Manifest2
-rw-r--r--dev-python/selenium/selenium-4.8.3.ebuild63
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/selenium/Manifest b/dev-python/selenium/Manifest
index 95842afea95e..675ccc16e0a4 100644
--- a/dev-python/selenium/Manifest
+++ b/dev-python/selenium/Manifest
@@ -1,3 +1,5 @@
DIST selenium-4.5.0-py3-none-any.whl 995204 BLAKE2B 214050a4e410a4689255ec8472a1cb35a37596e73d46c48769aa8e184b6f84e281a20e7e5f812b8185edacfcbca6eed77507aa59ffcaeae384f962b4214928a0 SHA512 b22d80d750c85337a2b793799b5a63b11bed45d11b874c1a64c02f53b4adb57263e69bebc79203de3bdfa5b8708203959971723cf0aef7fb68bd1b2a9028e9d9
DIST selenium-4.8.2.tar.gz 6729347 BLAKE2B b3c4632287a4544bc159122c8a2522463ac9c422f305d9dafb05984bf561f237299a11fd21d508e2b33696f5e24cb6e5bc910866c42aa4700d2a32635c4b6394 SHA512 247dce400860f81cbb4b948a5d0065680f3aeb9b570a15c5c94ba9c3bcbc0e3cfe0b84eafaa83a03b77bfad433df508f3dcd0094b0149b4d3f19d60a60587dcd
+DIST selenium-4.8.3.tar.gz 6332823 BLAKE2B cf874ab56182471055aa3d76d8828529f3c54f04eb9b7bd9342a87eade9c39875eecf00fce4f47019d5453bd65a0e5ace99170770394fc21bec1cf8d7998c579 SHA512 8bcaacb1f809e92ba9c1d14ccc0560979a29d27d61bfcd7d7fa08c3ee877c98699a0c5ffbb361ea37f0cc01a51b44b3d04ed4df025340bea7f842b4376d2715c
DIST selenium-selenium-4.8.2-python.gh.tar.gz 90628267 BLAKE2B e5d6dd0615cd7410e7328f1551b3ecbf421fb12ae20a602f8d23a6260520eefdc888b4ac210e00366da047ff3f755794e366e4cbaed1e7822b1f0254bf58af53 SHA512 f28b4da43cf95df67b75a44dd1b95a09360e70ad06506b5f617bf94fcc15e086688a282d8c3e4d4e3ddf7dad13aa7e842b36472d916ed5233af0e9dd61fbcd07
+DIST selenium-selenium-4.8.3-python.gh.tar.gz 90236640 BLAKE2B 943497a5015da8a626f210568715c6839b566feb7a04cf28230c2eded44ca3d110d782d9f90730206c0a2135200d81a960d60974662ce63dc1cf2e3cc09a4f0e SHA512 d3182eec2229872860ba370e99b3093fe73a519e839bfdcd01b2c3cc74e28b51c272e7fe176c2123d2af21d6cda1fec99051362c4ee10469359d8a24a8bdc7e8
diff --git a/dev-python/selenium/selenium-4.8.3.ebuild b/dev-python/selenium/selenium-4.8.3.ebuild
new file mode 100644
index 000000000000..56dacad1d343
--- /dev/null
+++ b/dev-python/selenium/selenium-4.8.3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1 pypi
+
+# upstream sometimes tags it as ${P}, sometimes as ${P}-python, sigh
+TEST_TAG=${P}-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
+ )
+"
+
+KEYWORDS="~amd64 ~ppc ~riscv ~sparc ~x86"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+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/urllib3-2[${PYTHON_USEDEP}]
+ >=dev-python/urllib3-1.26[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # TODO: we may need extra setup or deps
+ test/selenium
+
+ # expects vanilla certifi
+ test/unit/selenium/webdriver/remote/remote_connection_tests.py::test_get_connection_manager_for_certs_and_timeout
+ )
+
+ cd "${WORKDIR}/${TEST_P}/py" || die
+ rm -rf selenium || die
+ # https://github.com/SeleniumHQ/selenium/blob/selenium-4.8.2-python/py/test/runner/run_pytest.py#L20-L24
+ # seriously?
+ epytest -o "python_files=*_tests.py test_*.py"
+}