From 40b6424b4b8290f059c1dd07d6cf98819debbead Mon Sep 17 00:00:00 2001 From: Jevgeni Kiski Date: Thu, 18 Apr 2024 14:36:58 +0300 Subject: [PATCH] Python 3.11 is the last supported at the moment. 3.12 does not have "imp" module which is used in "construct". --- .github/workflows/test.yml | 2 +- Dockerfile | 2 +- README.md | 4 ++-- pyproject.toml | 2 +- setup.cfg | 3 +-- tox.ini | 2 +- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index df60730d..5efc659d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - name: Checkout diff --git a/Dockerfile b/Dockerfile index 8c88ab54..b4271a71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-alpine +FROM python:3.11-alpine ENV WORK_DIR=workdir \ HASSIO_DATA_PATH=/data \ diff --git a/README.md b/README.md index 9624ac1c..060c98d1 100644 --- a/README.md +++ b/README.md @@ -65,8 +65,8 @@ See [wiki](https://github.com/ParadoxAlarmInterface/pai/wiki/Installation) ## Tested Environment Tested in the following environment: -* Python 3.6, 3.7, 3.8 -* Mosquitto MQTT Broker >v 1.4.8 +* Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 +* Mosquitto MQTT Broker > 1.4.8 * OrangePi 2G-IOT, NanoPi NEO, and Raspberry Pi 3 through their built in Serial Port (with a level shifter!), or a USB RS232 TTL adapter (CP2102, PL2303, CH340, etc..) * Ubuntu Server 16.04.3 LTS * Paradox MG5050, SP7000 and EVO panels diff --git a/pyproject.toml b/pyproject.toml index 4da8c1aa..86246907 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=46.4.0"] build-backend = "setuptools.build_meta" [tool.black] -target-version = ["py38", "py39", "py310", "py311", "py312"] +target-version = ["py38", "py39", "py310", "py311"] exclude = 'generated' [tool.isort] diff --git a/setup.cfg b/setup.cfg index 646aafcd..7bdd4887 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,13 +21,12 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 license = EPL [options] zip_safe = True packages = find: -python_requires = >=3.8 +python_requires = >=3.8,<3.12 install_requires = construct~=2.9.43 argparse>=1.4.0 diff --git a/tox.ini b/tox.ini index 47a58ef6..a0c0e34c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38, py39, py310, py311, py312 +envlist = py38, py39, py310, py311 isolated_build = True skip_missing_interpreters = True