diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9dc8b219..4f44f5b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: os: ['ubuntu-latest', 'windows-2022', 'macos-13'] - python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-rc.1', 'pypy3.9-v7.3.16', 'pypy3.10-v7.3.17'] + python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-rc.2', 'pypy3.9-v7.3.16', 'pypy3.10-v7.3.17'] name: "Python ${{ matrix.python }} / ${{ matrix.os }}" runs-on: ${{ matrix.os }} @@ -49,7 +49,7 @@ jobs: python -m pip install pytest pytest-github-actions-annotate-failures typing_extensions - name: Install NumPy - if: ${{ !startsWith(matrix.python, 'pypy') && !contains(matrix.python, 'rc.1') }} + if: ${{ !startsWith(matrix.python, 'pypy') && !contains(matrix.python, 'rc.2') }} run: | python -m pip install numpy scipy diff --git a/src/common.cpp b/src/common.cpp index d6dc6264..b3d4d02d 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -184,7 +184,7 @@ PyObject *module_new_submodule(PyObject *base, const char *name, if (!tmp_str) goto fail; -#if PY_VERSION_HEX < 0x030D0000 +#if PY_VERSION_HEX < 0x030D00A0 res = borrow(PyImport_AddModule(tmp_str)); #else res = steal(PyImport_AddModuleRef(tmp_str));