From 6cca6b04397b82032d2948f1dd079946f75cd701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Mon, 23 Oct 2023 11:34:48 +0200 Subject: [PATCH] Add Python v3.12 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- .github/workflows/ci.yml | 4 ++-- pyproject.toml | 1 + requirements.txt | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f616142..b2558c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.11"] + python-version: ["3.11", "3.12"] steps: - name: Check out code from GitHub uses: actions/checkout@v3 @@ -82,7 +82,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.11"] + python-version: ["3.11", "3.12"] steps: - name: Check out code from GitHub uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml index 24fa3ba..782bb5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ classifiers = [ "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Home Automation", ] dependencies = [ diff --git a/requirements.txt b/requirements.txt index ee4ba4f..5ea61aa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -aiohttp +aiohttp>=3.9.0b0;python_version>='3.12' +aiohttp<=3.8.5;python_version<'3.12'