Skip to content

Commit e37334c

Browse files
authored
[py] Update supported Python versions 3.9+ (#15018)
* [py] Update supported Python versions 3.9+ --------- Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent d224cf3 commit e37334c

File tree

8 files changed

+21
-33
lines changed

8 files changed

+21
-33
lines changed

.github/workflows/ci-python.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
steps:
2121
- name: Checkout source tree
2222
uses: actions/checkout@v4
23-
- name: Set up Python 3.8
23+
- name: Set up Python 3.9
2424
uses: actions/setup-python@v4
2525
with:
26-
python-version: 3.8
26+
python-version: 3.9
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
@@ -40,10 +40,10 @@ jobs:
4040
steps:
4141
- name: Checkout source tree
4242
uses: actions/checkout@v4
43-
- name: Set up Python 3.8
43+
- name: Set up Python 3.9
4444
uses: actions/setup-python@v4
4545
with:
46-
python-version: 3.8
46+
python-version: 3.9
4747
- name: Install dependencies
4848
run: |
4949
python -m pip install --upgrade pip
@@ -62,10 +62,10 @@ jobs:
6262
steps:
6363
- name: Checkout source tree
6464
uses: actions/checkout@v4
65-
- name: Set up Python 3.8
65+
- name: Set up Python 3.9
6666
uses: actions/setup-python@v4
6767
with:
68-
python-version: 3.8
68+
python-version: 3.9
6969
- name: Install dependencies
7070
run: |
7171
python -m pip install --upgrade pip

.github/workflows/update-documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ jobs:
107107
run: |
108108
git config --local user.email "selenium-ci@users.noreply.github.com"
109109
git config --local user.name "Selenium CI Bot"
110-
- name: Set up Python 3.8
110+
- name: Set up Python 3.9
111111
uses: actions/setup-python@v5
112112
with:
113-
python-version: 3.8
113+
python-version: 3.9
114114
- name: Install dependencies
115115
run: |
116116
python -m pip install --upgrade pip

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ use_repo(oci, "chrome_standalone", "firefox_standalone", "java_image_base")
111111
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
112112
python.toolchain(
113113
is_default = True,
114-
python_version = "3.8",
114+
python_version = "3.9",
115115
)
116-
python.toolchain(python_version = "3.9")
117116
python.toolchain(python_version = "3.10")
118117
python.toolchain(python_version = "3.11")
118+
python.toolchain(python_version = "3.12")
119119
use_repo(python, "pythons_hub")
120120

121121
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
@@ -127,10 +127,10 @@ pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
127127
requirements_lock = "//py:requirements_lock.txt",
128128
)
129129
for version in [
130-
"3.8",
131130
"3.9",
132131
"3.10",
133132
"3.11",
133+
"3.12",
134134
]
135135
]
136136

py/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,17 +277,17 @@ py_wheel(
277277
"Topic :: Software Development :: Testing",
278278
"Topic :: Software Development :: Libraries",
279279
"Programming Language :: Python",
280-
"Programming Language :: Python :: 3.8",
281280
"Programming Language :: Python :: 3.9",
282281
"Programming Language :: Python :: 3.10",
283282
"Programming Language :: Python :: 3.11",
284283
"Programming Language :: Python :: 3.12",
284+
"Programming Language :: Python :: 3.13",
285285
],
286286
description_file = "README.rst",
287287
distribution = "selenium",
288288
homepage = "https://www.selenium.dev",
289289
license = "Apache 2.0",
290-
python_requires = ">=3.8",
290+
python_requires = ">=3.9",
291291
python_tag = "py3",
292292
requires = [
293293
"urllib3[socks]>=1.26,<3",

py/docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Several browsers/drivers are supported (Firefox, Chrome, Internet Explorer), as
2424
Supported Python Versions
2525
=========================
2626

27-
* Python 3.8+
27+
* Python 3.9+
2828

2929
Installing
3030
==========

py/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "4.28.0.202411261607"
88
license = { text = "Apache 2.0" }
99
description = "Official Python bindings for Selenium WebDriver."
1010
readme = "README.rst"
11-
requires-python = "~=3.8"
11+
requires-python = "~=3.9"
1212
classifiers = [
1313
"Development Status :: 5 - Production/Stable",
1414
"Intended Audience :: Developers",
@@ -19,7 +19,6 @@ classifiers = [
1919
"Topic :: Software Development :: Testing",
2020
"Topic :: Software Development :: Libraries",
2121
"Programming Language :: Python",
22-
"Programming Language :: Python :: 3.8",
2322
"Programming Language :: Python :: 3.9",
2423
"Programming Language :: Python :: 3.10",
2524
"Programming Language :: Python :: 3.11",

py/requirements_lock.txt

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.8
2+
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
55
# bazel run //py:requirements.update
@@ -271,10 +271,6 @@ importlib-metadata==6.8.0 \
271271
# -r py/requirements.txt
272272
# keyring
273273
# twine
274-
importlib-resources==6.1.1 \
275-
--hash=sha256:3893a00122eafde6894c59914446a512f728a0c1a45f9bb9b63721b6bacf0b4a \
276-
--hash=sha256:e8bf90d8213b486f428c9c39714b920041cb02c184686a3dee24905aaa8105d6
277-
# via keyring
278274
inflection==0.5.1 \
279275
--hash=sha256:1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417 \
280276
--hash=sha256:f38b2b640938a4f35ade69ac3d053042959b62a0f1076a5bbaa1b9526605a8a2
@@ -292,9 +288,7 @@ jaraco-classes==3.3.0 \
292288
jeepney==0.8.0 \
293289
--hash=sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806 \
294290
--hash=sha256:c0a454ad016ca575060802ee4d590dd912e35c122fa04e70306de3d076cce755
295-
# via
296-
# keyring
297-
# secretstorage
291+
# via secretstorage
298292
keyring==24.3.0 \
299293
--hash=sha256:4446d35d636e6a10b8bce7caa66913dd9eca5fd222ca03a3d42c38608ac30836 \
300294
--hash=sha256:e730ecffd309658a08ee82535a3b5ec4b4c8669a9be11efb66249d8e0aeb9a25
@@ -522,9 +516,7 @@ rich==13.7.0 \
522516
secretstorage==3.3.3 \
523517
--hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \
524518
--hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99
525-
# via
526-
# -r py/requirements.txt
527-
# keyring
519+
# via -r py/requirements.txt
528520
sniffio==1.3.1 \
529521
--hash=sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2 \
530522
--hash=sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc
@@ -563,9 +555,7 @@ twine==4.0.2 \
563555
typing-extensions==4.9.0 \
564556
--hash=sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783 \
565557
--hash=sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd
566-
# via
567-
# -r py/requirements.txt
568-
# rich
558+
# via -r py/requirements.txt
569559
urllib3[socks]==2.0.7 \
570560
--hash=sha256:c97dfde1f7bd43a71c8d2a58e369e9b2bf692d1334ea9f9cae55add7d0dd0f84 \
571561
--hash=sha256:fdb6d215c776278489906c2f8916e6e7d4f5a9b602ccbcfdf7f016fc8da0596e
@@ -589,4 +579,3 @@ zipp==3.17.0 \
589579
# via
590580
# -r py/requirements.txt
591581
# importlib-metadata
592-
# importlib-resources

py/tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ commands =
4747
isort --check-only --diff selenium/ test/ conftest.py
4848
; execute black in check only mode with diff.
4949
black --check --diff selenium/ test/ conftest.py -l 120
50-
flake8 selenium/ test/ --min-python-version=3.8
50+
flake8 selenium/ test/ --min-python-version=3.9
5151
docformatter --check -r selenium/
5252

5353
[testenv:linting]
@@ -64,7 +64,7 @@ deps =
6464
commands =
6565
isort selenium/ test/ conftest.py
6666
black selenium/ test/ conftest.py -l 120
67-
flake8 selenium/ test/ --min-python-version=3.8
67+
flake8 selenium/ test/ --min-python-version=3.9
6868
docformatter --in-place -r selenium/
6969

7070
[flake8]

0 commit comments

Comments
 (0)