From fe5e764f572a46da9e3c79c655cc2862dc2a018a Mon Sep 17 00:00:00 2001 From: Thirumalesh Aaraveti <97395760+athiruma@users.noreply.github.com> Date: Wed, 5 Jun 2024 13:06:01 +0530 Subject: [PATCH] Python3.12 support (#794) --- .github/workflows/Build.yml | 12 ++++++------ .github/workflows/PR.yml | 6 +++--- .readthedocs.yaml | 2 +- setup.py | 1 + 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 5870cb76..48602499 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11' ] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -114,7 +114,7 @@ jobs: strategy: max-parallel: 1 matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11' ] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0 @@ -232,7 +232,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.11' ] + python-version: [ '3.12' ] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -255,7 +255,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.11' ] + python-version: [ '3.12' ] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -305,7 +305,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.11' ] + python-version: [ '3.12' ] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -328,7 +328,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.11' ] + python-version: [ '3.12' ] needs: [ unittest, terraform_apply, integration, pypi_upload, pypi_validate, quay_upload ] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 313af91d..b00c54ab 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -20,7 +20,7 @@ jobs: needs: [approve] strategy: matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11' ] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] # minimize potential vulnerabilities if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }} steps: @@ -114,7 +114,7 @@ jobs: strategy: max-parallel: 1 matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11' ] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0 @@ -228,7 +228,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11' ] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] steps: - uses: actions/checkout@v4 with: diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 80ef6287..e4a5c1fa 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,7 +9,7 @@ version: 2 build: os: ubuntu-20.04 tools: - python: "3.11" + python: "3.12" # You can also specify other tool versions: # nodejs: "16" # rust: "1.55" diff --git a/setup.py b/setup.py index 9c6d5dfe..bf6dd3a7 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,7 @@ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12' ], zip_safe=False,