From 27f8362f537fc313f8fdb5c07649ef0d92e3b7f6 Mon Sep 17 00:00:00 2001 From: "Mark E. Fuller" Date: Sat, 26 Aug 2023 01:04:03 +0300 Subject: [PATCH] mods to enable python3.12 --- .github/workflows/main.yml | 2 +- interfaces/cython/setup.cfg.in | 1 + interfaces/python_minimal/setup.cfg.in | 1 + interfaces/python_sdist/setup.cfg.in | 1 + src/base/application.h | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 60822189bb..366ddd8435 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,7 +65,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - python-version: ['3.8', '3.10', '3.11'] + python-version: ['3.8', '3.10', '3.11', '3.12'] os: ['ubuntu-20.04', 'ubuntu-22.04'] fail-fast: false env: diff --git a/interfaces/cython/setup.cfg.in b/interfaces/cython/setup.cfg.in index 1a0358a77d..fd3c0b53c4 100644 --- a/interfaces/cython/setup.cfg.in +++ b/interfaces/cython/setup.cfg.in @@ -27,6 +27,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Programming Language :: Python :: Implementation :: CPython Topic :: Scientific/Engineering :: Chemistry Topic :: Scientific/Engineering :: Physics diff --git a/interfaces/python_minimal/setup.cfg.in b/interfaces/python_minimal/setup.cfg.in index 2d96c75eda..753b619ede 100644 --- a/interfaces/python_minimal/setup.cfg.in +++ b/interfaces/python_minimal/setup.cfg.in @@ -23,6 +23,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Topic :: Scientific/Engineering :: Chemistry Topic :: Scientific/Engineering :: Physics project_urls = diff --git a/interfaces/python_sdist/setup.cfg.in b/interfaces/python_sdist/setup.cfg.in index 219e53a3f0..e356b422b8 100644 --- a/interfaces/python_sdist/setup.cfg.in +++ b/interfaces/python_sdist/setup.cfg.in @@ -27,6 +27,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Programming Language :: Python :: Implementation :: CPython Topic :: Scientific/Engineering :: Chemistry Topic :: Scientific/Engineering :: Physics diff --git a/src/base/application.h b/src/base/application.h index 76a6c671a2..b03c049f14 100644 --- a/src/base/application.h +++ b/src/base/application.h @@ -434,7 +434,7 @@ class Application vector inputDirs; //! Versions of Python to consider when attempting to load user extensions - vector m_pythonSearchVersions = {"3.11", "3.10", "3.9", "3.8"}; + vector m_pythonSearchVersions = {"3.12", "3.11", "3.10", "3.9", "3.8"}; //! Set of deprecation warnings that have been emitted (to suppress duplicates) set warnings;