From 207e6429080d02b60700d5c6a0061bf34a3dcbef Mon Sep 17 00:00:00 2001 From: Tom Bannink Date: Thu, 20 Jun 2024 13:24:43 +0200 Subject: [PATCH] Add Python 3.12 release Use Python 3.12 in regular CI --- .github/workflows/release.yml | 12 ++++++------ .github/workflows/unittests.yml | 8 ++++---- setup.py | 5 +++-- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be6ed26f..b031a48e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.12 - uses: actions/cache@v4 id: cache with: @@ -94,7 +94,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.12 - uses: actions/cache@v4 id: cache with: @@ -137,7 +137,7 @@ jobs: runs-on: macos-13 strategy: matrix: - python-version: ["3.10", 3.11] + python-version: ["3.10", 3.11, 3.12] fail-fast: false steps: - uses: actions/checkout@v4 @@ -182,7 +182,7 @@ jobs: runs-on: macos-14 strategy: matrix: - python-version: ["3.10", 3.11] + python-version: ["3.10", 3.11, 3.12] fail-fast: false steps: - uses: actions/checkout@v4 @@ -227,7 +227,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", 3.11] + python-version: ["3.10", 3.11, 3.12] fail-fast: false steps: - uses: actions/checkout@v4 @@ -272,7 +272,7 @@ jobs: runs-on: windows-2019 strategy: matrix: - python-version: ["3.10", 3.11] + python-version: ["3.10", 3.11, 3.12] fail-fast: false steps: - name: Configure Pagefile diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 15fd6394..c757fca0 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -11,7 +11,7 @@ concurrency: cancel-in-progress: true env: - TF_PYTHON_VERSION: "3.11" + TF_PYTHON_VERSION: "3.12" jobs: TFLite: @@ -77,7 +77,7 @@ jobs: strategy: matrix: tf-version: [2.5.3, 2.6.5, 2.7.4, 2.8.4, 2.9.3, 2.10.1, 2.11.0] - python-version: [3.9] + python-version: [3.10] flatbuffers-version: [2.0] protobuf-version: [3.19.6] include: @@ -86,7 +86,7 @@ jobs: flatbuffers-version: 23.1.21 protobuf-version: 4.23.4 - tf-version: 2.16.1 - python-version: 3.11 + python-version: 3.12 flatbuffers-version: 24.3.25 protobuf-version: 4.25.3 if: "!contains(github.event.head_commit.message, 'ci-skip')" @@ -119,7 +119,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.12 - uses: actions/cache@v4 id: cache with: diff --git a/setup.py b/setup.py index 1999580c..d1b1f858 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Setup for pip package.""" + import os from sys import platform @@ -30,7 +31,7 @@ def get_version_number(default): setup( name="larq-compute-engine", version=get_version_number(default="0.13.0"), - python_requires=">=3.9", + python_requires=">=3.10", description="Highly optimized inference engine for binarized neural networks.", long_description=readme(), long_description_content_type="text/markdown", @@ -55,9 +56,9 @@ def get_version_number(default): "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Mathematics", "Topic :: Scientific/Engineering :: Artificial Intelligence",