From 089cd5822ce990e342e180cda8cdd6bece87874e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 26 Jan 2025 12:32:44 +0100 Subject: [PATCH] GHA: Test more Python versions on macOS/Windows Remove PyConfig.use_system_logger: it will only be available on Python 3.13.2 which is not released yet. --- .github/workflows/build.yml | 37 ++++++++++++++++++++++++++++++------- pythoncapi_compat.h | 3 --- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bdd3672..dd726af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,22 +49,45 @@ jobs: - "pypy3.7-v7.3.2" include: - # Windows: test old and new Python + # Windows - os: windows-latest - python: 3.6 + python: "3.6" - os: windows-latest - python: 3.13 + python: "3.7" + - os: windows-latest + python: "3.8" + - os: windows-latest + python: "3.9" + - os: windows-latest + python: "3.10" + - os: windows-latest + python: "3.11" + - os: windows-latest + python: "3.12" + - os: windows-latest + python: "3.13" - # macOS: test only new Python + # macOS + # Python 3.8 is the oldest version available on macOS/arm64. + - os: macos-latest + python: "3.8" + - os: macos-latest + python: "3.9" + - os: macos-latest + python: "3.10" + - os: macos-latest + python: "3.11" + - os: macos-latest + python: "3.12" - os: macos-latest - python: 3.12 + python: "3.13" # Ubuntu: test deadsnakes Python versions which are not supported by # GHA python-versions. - os: ubuntu-20.04 - python: 3.6 + python: "3.6" - os: ubuntu-22.04 - python: 3.7 + python: "3.7" steps: # https://github.com/actions/checkout diff --git a/pythoncapi_compat.h b/pythoncapi_compat.h index 8c1822d..52f36cc 100644 --- a/pythoncapi_compat.h +++ b/pythoncapi_compat.h @@ -2082,9 +2082,6 @@ PyConfig_Get(const char *name) PYTHONCAPI_COMPAT_SPEC(use_frozen_modules, BOOL, _Py_NULL), #endif PYTHONCAPI_COMPAT_SPEC(use_hash_seed, BOOL, _Py_NULL), -#if 0x030D0000 <= PY_VERSION_HEX && defined(__APPLE__) - PYTHONCAPI_COMPAT_SPEC(use_system_logger, BOOL, _Py_NULL), -#endif PYTHONCAPI_COMPAT_SPEC(user_site_directory, BOOL, _Py_NULL), #if 0x030A0000 <= PY_VERSION_HEX PYTHONCAPI_COMPAT_SPEC(warn_default_encoding, BOOL, _Py_NULL),