Skip to content

Commit 734d904

Browse files
mesh-2771: removing support for python 3.9
1 parent 0393e72 commit 734d904

8 files changed

Lines changed: 23 additions & 405 deletions

File tree

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
tox:
1010
strategy:
1111
matrix:
12-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
12+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1313

1414
runs-on: ubuntu-latest
1515
if: github.repository == 'NHSDigital/mesh-client'

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
poetry 2.1.3
2-
python 3.13.5 3.12.11 3.11.13 3.10.18 3.9.23
2+
python 3.13.5 3.12.11 3.11.13 3.10.18

CHANGE-LOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ These are not all encompassing, but we will try and capture noteable differences
55

66
----
77

8+
# 5.0
9+
* drop support for Python 3.9 which is now [EOL](https://devguide.python.org/versions/#status-of-python-versions)
10+
* add support for Python 3.14
11+
812
# 4.0
913
* drop support for Python 3.7 and 3.8 which are now [EOL](https://devguide.python.org/versions/#status-of-python-versions)
1014
* add support for Python 3.12 and 3.13

mesh_client/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
TrackingResponse_v2,
4747
)
4848

49-
if sys.version_info[:2] < (3, 9): # noqa: UP036
49+
if sys.version_info[:2] < (3, 10): # noqa: UP036
5050
warnings.warn(
51-
"python versions < 3.9 are end of life and no longer supported as of mesh-client v4",
51+
"python versions < 3.10 are end of life and no longer supported.",
5252
category=DeprecationWarning,
5353
stacklevel=2,
5454
)

poetry.lock

Lines changed: 8 additions & 389 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ packages = [
1010
]
1111
readme = "README.md"
1212
classifiers = [
13-
"Programming Language :: Python :: 3.9",
1413
"Programming Language :: Python :: 3.10",
1514
"Programming Language :: Python :: 3.11",
1615
"Programming Language :: Python :: 3.12",
@@ -26,8 +25,8 @@ classifiers = [
2625

2726
[tool.poetry.dependencies]
2827
# core dependencies
29-
python = ">=3.9,<3.14.0"
30-
urllib3 = ">=1.25.4" # note that we still support Python 3.9, and botocore enforces urllib3 <1.27 for Python <3.10 (see lock file)
28+
python = ">=3.10,<3.14.0"
29+
urllib3 = ">=1.25.4"
3130
requests = ">=2.32.0,<3.0.0"
3231
werkzeug = ">=3.0.3,<4.0.0"
3332

@@ -84,7 +83,7 @@ exclude = [
8483
]
8584
lint.unfixable = ["SIM112"]
8685
line-length = 120
87-
target-version = "py39"
86+
target-version = "py310"
8887

8988

9089
[tool.pytest.ini_options]
@@ -95,7 +94,7 @@ norecursedirs = ".git .venv .eggs build dist terraform features"
9594

9695
[tool.black]
9796
line-length = 120
98-
target-version = ['py39']
97+
target-version = ['py310']
9998
include = '\.pyi?$'
10099
#extend-exclude = '''
101100
#/(
@@ -147,7 +146,7 @@ show_missing = true
147146
output = "reports/coverage.xml"
148147

149148
[tool.mypy]
150-
python_version = "3.9"
149+
python_version = "3.10"
151150
warn_return_any = true
152151
warn_unused_configs = true
153152
show_error_codes = true

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sonar.projectVersion=2.0
22
sonar.projectKey=NHSDigital_mesh-client
33
sonar.organization=nhsdigital
44
sonar.host.url=https://sonarcloud.io
5-
sonar.python.version=3.9
5+
sonar.python.version=3.10
66
#sonar.exclusions=
77
sonar.test.inclusions=tests/**/*.py
88
sonar.cpd.exclusions=tests/**/*.py

tox.ini

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
[tox]
2-
envlist = py{39,310,311,312,313}
2+
envlist = py{310,311,312,313}
33
isolated_build = True
44

55
[gh-actions]
66
python =
7-
3.9: py39
87
3.10: py310
98
3.11: py311
109
3.12: py312
@@ -27,9 +26,6 @@ commands =
2726
pytest
2827

2928
; Uncomment the following lines to specify base Python versions for each environment when using asdf
30-
;[testenv:py39]
31-
;basepython = {env:HOME}/.asdf/installs/python/3.9.23/bin/python
32-
;
3329
;[testenv:py310]
3430
;basepython = {env:HOME}/.asdf/installs/python/3.10.18/bin/python
3531
;

0 commit comments

Comments
 (0)