From 83001a2b45ef786e178894f77dd9fbc0878e73c1 Mon Sep 17 00:00:00 2001 From: jo-basevi Date: Tue, 6 Aug 2024 09:01:16 +1000 Subject: [PATCH] Replace deprecated `distutils` dependency (#477) Replace distutils with sysconfig and add Python3.12 to CI tests. distutils was removed in python3.12 --- .github/workflows/CI.yml | 2 +- payu/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a8d6112e..0cee7e26 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -62,7 +62,7 @@ jobs: # Run the job for different versions of python strategy: matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] # Steps represent a sequence of tasks that will be executed as part of the job steps: diff --git a/payu/cli.py b/payu/cli.py index 1a6b5bab..0a6348a3 100644 --- a/payu/cli.py +++ b/payu/cli.py @@ -8,7 +8,7 @@ """ import argparse -from distutils import sysconfig +import sysconfig import importlib import os import pkgutil