From d95add6cfd10174287faeaf11f86be1dd63f888e Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 11 Oct 2023 13:26:33 +0200 Subject: [PATCH 1/2] Build and test with Python 3.12 --- ...nux_64_python3.12_default.____cpython.yaml | 14 ++++++++++++++ ...osx_64_python3.12_default.____cpython.yaml | 19 +++++++++++++++++++ .../win_64_python3.12.____cpython.yaml | 10 ++++++++++ .github/workflows/ci.yml | 5 +++-- .github/workflows/conda-build.yml | 4 ++-- pyproject.toml | 1 - setup.py | 3 +-- 7 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 .ci_support/linux_64_python3.12_default.____cpython.yaml create mode 100644 .ci_support/osx_64_python3.12_default.____cpython.yaml create mode 100644 .ci_support/win_64_python3.12.____cpython.yaml diff --git a/.ci_support/linux_64_python3.12_default.____cpython.yaml b/.ci_support/linux_64_python3.12_default.____cpython.yaml new file mode 100644 index 00000000..95426958 --- /dev/null +++ b/.ci_support/linux_64_python3.12_default.____cpython.yaml @@ -0,0 +1,14 @@ +c_compiler: +- gcc +c_compiler_version: +- '12' +cxx_compiler: +- gxx +cxx_compiler_version: +- '12' +numpy: +- '1.26' +python: +- 3.12.* *_cpython +target_platform: +- linux-64 diff --git a/.ci_support/osx_64_python3.12_default.____cpython.yaml b/.ci_support/osx_64_python3.12_default.____cpython.yaml new file mode 100644 index 00000000..41d8bb0a --- /dev/null +++ b/.ci_support/osx_64_python3.12_default.____cpython.yaml @@ -0,0 +1,19 @@ +MACOSX_DEPLOYMENT_TARGET: +- '10.9' +c_compiler: +- clang +c_compiler_version: +- '15' +cxx_compiler: +- clangxx +cxx_compiler_version: +- '15' +macos_machine: +- x86_64-apple-darwin13.4.0 +numpy: +- '1.26' +python: +- 3.12.* *_cpython +target_platform: +- osx-64 + diff --git a/.ci_support/win_64_python3.12.____cpython.yaml b/.ci_support/win_64_python3.12.____cpython.yaml new file mode 100644 index 00000000..3408bf24 --- /dev/null +++ b/.ci_support/win_64_python3.12.____cpython.yaml @@ -0,0 +1,10 @@ +c_compiler: +- vs2017 +cxx_compiler: +- vs2017 +numpy: +- '1.26' +python: +- 3.12.* *_cpython +target_platform: +- win-64 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eab9669f..b6ab69de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,9 @@ jobs: - { os: ubuntu-latest, python-version: '3.9' } - { os: ubuntu-latest, python-version: '3.10' } - { os: ubuntu-latest, python-version: '3.11' } - - { os: macos-latest, python-version: '3.11' } - - { os: windows-latest, python-version: '3.11' } + - { os: ubuntu-latest, python-version: '3.12' } + - { os: macos-latest, python-version: '3.12' } + - { os: windows-latest, python-version: '3.12' } steps: - name: Checkout branch uses: actions/checkout@v4 diff --git a/.github/workflows/conda-build.yml b/.github/workflows/conda-build.yml index 92f736e7..78a49c6a 100644 --- a/.github/workflows/conda-build.yml +++ b/.github/workflows/conda-build.yml @@ -16,14 +16,14 @@ jobs: matrix: include: - { conda_build_yml: linux_64_python3.9_default.____cpython, os: ubuntu-latest, conda-build-args: '' } - - { conda_build_yml: linux_64_python3.10_default.____cpython, os: ubuntu-latest, conda-build-args: '' } + - { conda_build_yml: linux_64_python3.12_default.____cpython, os: ubuntu-latest, conda-build-args: '' } - { conda_build_yml: linux_aarch64_python3.10_default.____cpython, os: ubuntu-latest, conda-build-args: ' --no-test' } - { conda_build_yml: linux_ppc64le_python3.10_default.____cpython, os: ubuntu-latest, conda-build-args: ' --no-test' } - { conda_build_yml: osx_64_python3.11_default.____cpython, os: macos-latest, conda-build-args: '' } - { conda_build_yml: osx_arm64_python3.9.____cpython, os: macos-latest, conda-build-args: ' --no-test' } - { conda_build_yml: osx_arm64_python3.10.____cpython, os: macos-latest, conda-build-args: ' --no-test' } - { conda_build_yml: win_64_python3.9.____cpython, os: windows-latest, conda-build-args: '' } - - { conda_build_yml: win_64_python3.10.____cpython, os: windows-latest, conda-build-args: '' } + - { conda_build_yml: win_64_python3.12.____cpython, os: windows-latest, conda-build-args: '' } steps: - name: Checkout branch diff --git a/pyproject.toml b/pyproject.toml index 0b940f79..80ec3c23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,6 @@ skip = [ "*-manylinux_i686", "pp*", "*-musllinux_*", - "cp312*", "cp36*", "cp37*", "cp38*", diff --git a/setup.py b/setup.py index b6228b2d..e5612ca3 100644 --- a/setup.py +++ b/setup.py @@ -150,11 +150,10 @@ author_email="noreply@quantco.com", classifiers=[ # Optional "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ], package_dir={"": "src"}, packages=find_packages(where="src"), From e79ea4d20143acb200b503e58cc3be0b77189f5d Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 11 Oct 2023 13:27:14 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0501e9de..f619faf8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,6 +14,7 @@ Unreleased - Improve the performance of ``from_pandas`` in the case of low-cardinality categorical variables. - Require Python>=3.9 in line with `NEP 29 `_ +- Build and test with Python 3.12 in CI. 3.1.10 - 2023-06-23 -------------------