Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated configs to use Python 3.11 #180

Merged
merged 2 commits into from
Nov 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sonar.python.version=3.9, 3.10
sonar.python.version=3.9, 3.10, 3.11
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 6 additions & 5 deletions scripts/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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