Skip to content

Commit 8efc364

Browse files
committed
Trying out Python 3.10 build
Missing library and type stub Let all job matrix complete
1 parent c2deb11 commit 8efc364

File tree

4 files changed

+7860
-8510
lines changed

4 files changed

+7860
-8510
lines changed

.github/workflows/lint-and-build.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ jobs:
2424
Pyright:
2525
runs-on: windows-latest
2626
strategy:
27+
fail-fast: false
2728
matrix:
28-
python-version: ["3.8", "3.9"]
29+
python-version: ["3.8", "3.9", "3.10"]
2930
steps:
3031
- name: Checkout ${{ github.repository }}/${{ github.ref }}
3132
uses: actions/checkout@v2
@@ -47,8 +48,9 @@ jobs:
4748
Pylint:
4849
runs-on: windows-latest
4950
strategy:
51+
fail-fast: false
5052
matrix:
51-
python-version: ["3.8", "3.9"]
53+
python-version: ["3.8", "3.9", "3.10"]
5254
steps:
5355
- name: Checkout ${{ github.repository }}/${{ github.ref }}
5456
uses: actions/checkout@v2
@@ -67,8 +69,9 @@ jobs:
6769
Flake8:
6870
runs-on: windows-latest
6971
strategy:
72+
fail-fast: false
7073
matrix:
71-
python-version: ["3.8", "3.9"]
74+
python-version: ["3.8", "3.9", "3.10"]
7275
steps:
7376
- name: Checkout ${{ github.repository }}/${{ github.ref }}
7477
uses: actions/checkout@v2
@@ -87,8 +90,9 @@ jobs:
8790
Bandit:
8891
runs-on: windows-latest
8992
strategy:
93+
fail-fast: false
9094
matrix:
91-
python-version: ["3.8", "3.9"]
95+
python-version: ["3.8", "3.9", "3.10"]
9296
steps:
9397
- name: Checkout ${{ github.repository }}/${{ github.ref }}
9498
uses: actions/checkout@v2
@@ -107,8 +111,9 @@ jobs:
107111
Build:
108112
runs-on: windows-latest
109113
strategy:
114+
fail-fast: false
110115
matrix:
111-
python-version: ["3.8", "3.9"]
116+
python-version: ["3.8", "3.9", "3.10"]
112117
steps:
113118
- name: Checkout ${{ github.repository }}/${{ github.ref }}
114119
uses: actions/checkout@v2

scripts/requirements.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@
1010
# Creating AutoSplit.exe with PyInstaller: .\scripts\build.bat
1111
#
1212
# Dependencies:
13+
numpy>=1.22.0rc1
14+
opencv-python>=4.5.4
15+
PyQt6>=6.2.1
16+
PyQt6-tools
17+
PySide6
1318
ImageHash
1419
keyboard
15-
numpy>=1.22.0rc1
16-
opencv-python
1720
packaging
1821
Pillow
19-
PyQt6
20-
PyQt6-tools
21-
PySide6
2222
pyautogui
2323
pywin32
2424
requests
2525
certifi
26+
toml
2627
# Linting and Types
2728
bandit
2829
flake8

src/capture_windows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def capture_region(hwnd: int, selection: Region, print_window: bool):
5656
if print_window:
5757
ctypes.windll.user32.PrintWindow(hwnd, dc_object.GetSafeHdc(), PW_RENDERFULLCONTENT)
5858

59-
compatible_dc = cast(PyCDC, dc_object.CreateCompatibleDC())
59+
compatible_dc = dc_object.CreateCompatibleDC()
6060
bitmap: PyCBitmap = win32ui.CreateBitmap()
6161
bitmap.CreateCompatibleBitmap(dc_object, selection["width"], selection["height"])
6262
compatible_dc.SelectObject(bitmap)

0 commit comments

Comments
 (0)