Skip to content

Commit 38d3e9b

Browse files
committed
Drop support for Python 3.9
1 parent 4bfaf1d commit 38d3e9b

File tree

4 files changed

+211
-396
lines changed

4 files changed

+211
-396
lines changed

Diff for: .github/workflows/tests.yml

-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ jobs:
144144
- { name: "Python 3.12", python: "3.12", os: ubuntu-latest, env: "test:all" }
145145
- { name: "Python 3.11", python: "3.11", os: ubuntu-latest, env: "test:all" }
146146
- { name: "Python 3.10", python: "3.10", os: ubuntu-latest, env: "test:all" }
147-
- { name: "Python 3.9", python: "3.9", os: ubuntu-latest, env: "test:all" }
148147

149148
steps:
150149
- uses: actions/checkout@v4

Diff for: locust/main.py

-3
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,6 @@ def kill_workers(children):
287287

288288
greenlet_exception_handler = greenlet_exception_logger(logger)
289289

290-
if sys.version_info < (3, 10):
291-
logger.warning("Python 3.9 support is deprecated and will be removed soon")
292-
293290
if options.list_commands:
294291
print("Available Users:")
295292
for name in user_classes:

Diff for: pyproject.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description = "Developer-friendly load testing framework"
88
license = { text = "MIT" }
99
dynamic = ["version"]
1010
readme = "README.md"
11-
requires-python = ">=3.9"
11+
requires-python = ">=3.10"
1212
authors = [{ name = "Jonatan Heyman" }, { name = "Lars Holmberg" }]
1313
maintainers = [
1414
{ name = "Lars Holmberg" },
@@ -23,7 +23,6 @@ classifiers = [
2323
"Operating System :: OS Independent",
2424
"Programming Language :: Python",
2525
"Programming Language :: Python :: 3",
26-
"Programming Language :: Python :: 3.9",
2726
"Programming Language :: Python :: 3.10",
2827
"Programming Language :: Python :: 3.11",
2928
"Programming Language :: Python :: 3.12",
@@ -156,7 +155,7 @@ locust = ["locust"]
156155
[tool.mypy]
157156
# missing type stubs
158157
ignore_missing_imports = true
159-
python_version = "3.9"
158+
python_version = "3.10"
160159

161160
[tool.pyright]
162161
exclude = ["locust/test"]
@@ -199,7 +198,7 @@ run = [
199198
template = "hatch-test"
200199

201200
[[tool.hatch.envs.test.matrix]]
202-
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
201+
python = ["3.10", "3.11", "3.12", "3.13"]
203202

204203

205204
## Run all unit tests and advanced debugging

0 commit comments

Comments
 (0)