Skip to content

Commit

Permalink
Upgrade to python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
IGalat committed Jun 7, 2024
1 parent 6662221 commit e179d79
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
typing_extensions==4.3.0
typing_extensions>=4.3.0

pillow>=9.4.0
mss>=7.0.1
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'
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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 =
Expand All @@ -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

0 comments on commit e179d79

Please sign in to comment.