From e179d796e6703e440ec0da0c0253913c6b3a7635 Mon Sep 17 00:00:00 2001 From: Illia Halatiuk Date: Fri, 7 Jun 2024 17:41:55 +0700 Subject: [PATCH] Upgrade to python 3.12 --- .github/workflows/tests.yml | 2 +- pyproject.toml | 1 + requirements.txt | 6 +++--- tox.ini | 8 ++++---- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3a7b39c..b3f6993 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ['3.10'] + python-version: ['3.10', '3.12'] steps: - uses: actions/checkout@v2 diff --git a/pyproject.toml b/pyproject.toml index e9ac8fa..2345f4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,7 @@ classifiers = [ "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: System :: Monitoring", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", diff --git a/requirements.txt b/requirements.txt index 86a8a51..48a3555 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -typing_extensions==4.3.0 +typing_extensions>=4.3.0 pillow>=9.4.0 mss>=7.0.1 @@ -6,6 +6,6 @@ pystray>=0.19.4 opencv-python>=4.7.0.68 numpy>=1.24.1 -winput==1.5.0; sys_platform == 'win32' -pywin32==305; sys_platform == 'win32' +winput>=1.5.0; sys_platform == 'win32' +pywin32>=305; sys_platform == 'win32' evdev>=1.6.0; sys_platform == 'linux' diff --git a/tox.ini b/tox.ini index 0849e61..10fffbb 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,12 @@ [tox] minversion = 3.25.1 -envlist = python3.10, flake8, mypy +envlist = python3.10, python3.12, flake8, mypy isolated_build = true [gh-actions] python = - 3.10: python3.10, flake8, mypy + 3.10: python3.10, python3.12, flake8, mypy [testenv] setenv = @@ -19,13 +19,13 @@ commands = [testenv:flake8] -basepython = python3.10 +basepython = python3.12 deps = flake8 commands = flake8 --ignore=E1,E2,E3,E401,E5,E70,E731,W1,W2,W3,W5 src tests [testenv:mypy] -basepython = python3.10 +basepython = python3.12 deps = -r{toxinidir}/requirements_dev.txt commands = mypy src --cache-dir="{envdir}/mypy_cache" --namespace-packages --config-file {toxinidir}/pyproject.toml