From 97fe88989c3cefb10190e921d99036df9efbef3d Mon Sep 17 00:00:00 2001 From: Dpeta <69427753+Dpeta@users.noreply.github.com> Date: Thu, 4 May 2023 20:08:33 +0200 Subject: [PATCH 1/2] Replace deprecated inspect.getargspec with inspect.getfullargspec Python 3.11 removes inspect.getargspec completely. --- toast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toast.py b/toast.py index 519b1d1..4df9b97 100644 --- a/toast.py +++ b/toast.py @@ -107,7 +107,7 @@ class ToastMachine: for k, v in self.machine.types.items(): if self.machine.type == k: try: - args = inspect.getargspec(v.__init__).args + args = inspect.getfullargspec(v.__init__).args except: args = [] @@ -133,7 +133,7 @@ class ToastMachine: if "default" in self.machine.types: if ( "parent" - in inspect.getargspec( + in inspect.getfullargspec( self.machine.types["default"].__init__ ).args ): From 1f10e255358d13f2977c89afb0eed0e28210c6f0 Mon Sep 17 00:00:00 2001 From: Dpeta <69427753+Dpeta@users.noreply.github.com> Date: Thu, 4 May 2023 20:25:42 +0200 Subject: [PATCH 2/2] Update workflows to Python 3.11 --- .github/workflows/main.yml | 18 +++++++++--------- .github/workflows/pylint.yml | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 140dfbd..baca6da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,10 +7,10 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - - name: Setup Python 3.10 x64 + - name: Setup Python 3.11 x64 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' architecture: 'x64' - name: Update pip run: python -m pip install --upgrade pip @@ -33,10 +33,10 @@ jobs: runs-on: windows-2019 steps: - uses: actions/checkout@v3 - - name: Setup Python 3.10 x64 + - name: Setup Python 3.11 x64 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' architecture: 'x64' - name: Update pip run: python -m pip install --upgrade pip @@ -49,11 +49,11 @@ jobs: - name: Run PyInstaller run: python3 pyinst.py --no-prompts --onefile --no-upx --crt --no-clean --windowed - name: Create archive (.zip) - run: tar.exe -a -c -f Pesterchum_win64_py310.zip -C dist Pesterchum + run: tar.exe -a -c -f Pesterchum_win64_py311.zip -C dist Pesterchum - uses: actions/upload-artifact@v3 with: - name: Pesterchum_win64_py310.zip - path: Pesterchum_win64_py310.zip + name: Pesterchum_win64_py311.zip + path: Pesterchum_win64_py311.zip build_win32_38: runs-on: windows-2019 @@ -85,10 +85,10 @@ jobs: runs-on: macos-11 steps: - uses: actions/checkout@v3 - - name: Setup Python 3.10 x64 + - name: Setup Python 3.11 x64 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' architecture: 'x64' - name: Update pip run: python -m pip install --upgrade pip diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 1708bfe..46c0c6e 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -5,10 +5,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Setup Python 3.10 x64 + - name: Setup Python 3.11 x64 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' architecture: 'x64' - name: Install Dependencies run: python3 -m pip install PyQt6 certifi PyInstaller