Skip to content

Commit

Permalink
GHA: Test more Python versions on macOS/Windows
Browse files Browse the repository at this point in the history
Remove PyConfig.use_system_logger: it will only be available on
Python 3.13.2 which is not released yet.
  • Loading branch information
vstinner committed Jan 26, 2025
1 parent 8a52253 commit 089cd58
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions pythoncapi_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 089cd58

Please sign in to comment.