Skip to content

Commit c330ba2

Browse files
committed
Bump minimum supported Python version to 3.12
1 parent 94b141f commit c330ba2

File tree

6 files changed

+9
-21
lines changed

6 files changed

+9
-21
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
matrix:
3434
os: ['ubuntu-latest', 'macos-latest']
35-
python: ['3.9', '3'] # oldest/newest supported versions
35+
python: ['3.12', '3'] # oldest/newest supported versions
3636
steps:
3737
- name: Checkout
3838
uses: actions/checkout@v5
@@ -54,6 +54,7 @@ jobs:
5454
- name: Inspect
5555
run: |
5656
unzip -l dist/*.whl | tee files
57+
set -x
5758
grep -E 'cylc_uiserver.*.dist-info/.*COPYING' files
5859
grep 'cylc/uiserver/py.typed' files
5960
grep 'cylc/uiserver/ui' files

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
os: ['ubuntu-latest']
30-
python-version: ['3.9', '3']
30+
python-version: ['3.12', '3']
3131
include:
3232
- os: 'macos-latest'
33-
python-version: '3.9' # oldest supported
33+
python-version: '3.12' # oldest supported
3434
env:
3535
PYTEST_ADDOPTS: --cov --color=yes
3636

cylc/uiserver/jupyter_config.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,8 @@
1515

1616
# Configuration file for jupyterhub.
1717

18+
from importlib.resources import files
1819
from pathlib import Path
19-
import sys
20-
21-
22-
if sys.version_info[:2] > (3, 8):
23-
from importlib.resources import files
24-
else:
25-
# BACK_COMPAT: importlib_resources
26-
from importlib_resources import files
2720

2821
from cylc.uiserver import (
2922
__file__ as uis_pkg,

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[mypy]
2-
python_version = 3.9
2+
python_version = 3.12
33
ignore_missing_imports = True
44
files = cylc/uiserver
55
# don't run mypy on these files directly

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ verbosity_assertions = 2
6363

6464
[tool.ruff]
6565
line-length = 79
66-
target-version = "py37"
66+
target-version = "py312"
6767

6868
[tool.ruff.format]
6969
quote-style = "preserve"
7070

7171

7272
[tool.black]
7373
line-length = 79
74-
target-version = ['py37']
74+
target-version = ['py312']
7575
skip-string-normalization = true
7676

7777

setup.cfg

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,12 @@ classifiers =
3333
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
3434
Operating System :: POSIX
3535
Programming Language :: Python
36-
Programming Language :: Python :: 3.9
37-
Programming Language :: Python :: 3.10
38-
Programming Language :: Python :: 3.11
39-
Programming Language :: Python :: 3.12
40-
Programming Language :: Python :: 3.13
4136
Programming Language :: Python :: 3 :: Only
4237
Programming Language :: Python :: Implementation :: CPython
4338

4439
[options]
4540
packages = find_namespace:
46-
python_requires = >=3.9
41+
python_requires = >=3.12
4742
include_package_data = True
4843
install_requires =
4944
# NB: We have cylc-flow at the top to force it to install its transitive
@@ -52,7 +47,6 @@ install_requires =
5247
# bleeding-edge version.
5348
cylc-flow==8.6.*
5449
ansimarkup>=1.0.0
55-
importlib-resources>=1.3.0; python_version < "3.9"
5650
jupyter_server>=2.13.0
5751
requests
5852
packaging

0 commit comments

Comments
 (0)