diff --git a/.github/workflows/lint-and-build.yml b/.github/workflows/lint-and-build.yml index 126b6f4c..ed3c1c5f 100644 --- a/.github/workflows/lint-and-build.yml +++ b/.github/workflows/lint-and-build.yml @@ -49,7 +49,7 @@ jobs: fail-fast: false # Pyright is version and platform sensible matrix: - python-version: ["3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] steps: - name: Checkout ${{ github.repository }}/${{ github.ref }} uses: actions/checkout@v3 @@ -72,7 +72,7 @@ jobs: fail-fast: false # Pylint is version and platform sensible matrix: - python-version: ["3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] steps: - name: Checkout ${{ github.repository }}/${{ github.ref }} uses: actions/checkout@v3 @@ -92,7 +92,7 @@ jobs: fail-fast: false # Flake8 is tied to the version of Python on which it runs. Platform checks are ignored matrix: - python-version: ["3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] steps: - name: Checkout ${{ github.repository }}/${{ github.ref }} uses: actions/checkout@v3 @@ -112,10 +112,10 @@ jobs: steps: - name: Checkout ${{ github.repository }}/${{ github.ref }} uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" cache: "pip" cache-dependency-path: "scripts/requirements*.txt" - run: scripts/install.ps1 @@ -128,7 +128,7 @@ jobs: fail-fast: false # Only the Python version we plan on shipping matters. matrix: - python-version: ["3.10"] + python-version: ["3.10", "3.11"] steps: - name: Checkout ${{ github.repository }}/${{ github.ref }} uses: actions/checkout@v3 diff --git a/.sonarcloud.properties b/.sonarcloud.properties index 79132012..ff239edf 100644 --- a/.sonarcloud.properties +++ b/.sonarcloud.properties @@ -1 +1 @@ -sonar.python.version=3.9, 3.10 +sonar.python.version=3.9, 3.10, 3.11 diff --git a/pyproject.toml b/pyproject.toml index d7fe7563..5b21dbf3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,6 @@ ignore = [ "E70" # Allow ... on same line as def ] - # https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file [tool.pyright] typeCheckingMode = "strict" diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 2ce61e47..14bd6b0e 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -13,25 +13,26 @@ certifi ImageHash>=4.3.1 # Contains type information + setup as package not module git+https://github.com/Avasam/keyboard.git@fix-563#egg=keyboard # Fix install on linux-ci https://github.com/boppreh/keyboard/pull/568 -numpy>=1.23 # Updated types +numpy>=1.23.2 # Python 3.11 wheels opencv-python-headless>=4.6 # Breaking changes importing cv2.cv2 packaging Pillow>=9.2 # gnome-screeshot checks psutil PyAutoGUI -PyQt6>=6.2.1 # Python 3.10 support +--extra-index-url https://www.riverbankcomputing.com/pypi/simple/ --pre +PyQt6>6.4.0 # Python 3.11 support requests toml # # Build and compile resources -PyInstaller>=5.2 # opencv-python 4.6 support +PyInstaller>=5.5 # Python 3.11 support pyinstaller-hooks-contrib>=2022.9 # opencv-python 4.6 support. Changes for pywintypes and comtypes -PySide6>=6.2.2 # Apple silicon support +PySide6>=6.4.0.1 # Python 3.11 support # # https://peps.python.org/pep-0508/#environment-markers # # Windows-only dependencies: git+https://github.com/andreaschiavinato/python_grabber.git#egg=pygrabber ; sys_platform == 'win32' # Completed types pywin32>=301 ; sys_platform == 'win32' -winsdk>=v1.0.0b4 ; sys_platform == 'win32' +winsdk>=v1.0.0b7 ; sys_platform == 'win32' # Python 3.11 support git+https://github.com/ranchen421/D3DShot.git#egg=D3DShot ; sys_platform == 'win32' # D3DShot from PyPI with Pillow>=7.2.0 will install 0.1.3 instead of 0.1.5