From d52f74b9149a0fdfae6daa06de80a1150545f020 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 4 May 2024 11:09:46 +1000 Subject: [PATCH 1/5] Updated actions --- .github/workflows/pre-commit.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 22561025..8fe9e066 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,8 +9,8 @@ jobs: pre-commit: runs-on: macos-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.10' - name: set PY @@ -19,4 +19,4 @@ jobs: with: path: ~/.cache/pre-commit key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} - - uses: pre-commit/action@v1.0.1 + - uses: pre-commit/action@v3.0.1 From 6a94b0013f343ba65f818bcd30ad26f9d1319915 Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Sat, 4 May 2024 11:03:03 +1000 Subject: [PATCH 2/5] Use latest stable version of Python --- .github/workflows/pre-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 8fe9e066..f9d28968 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.x' - name: set PY run: echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV - uses: actions/cache@v1 From 7285ba4a54ddfdc34fe94b930660eeaa51bddc18 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 4 May 2024 11:12:25 +1000 Subject: [PATCH 3/5] Do not shadow builtin --- src/py2app/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/py2app/util.py b/src/py2app/util.py index 85faa572..2af2c579 100644 --- a/src/py2app/util.py +++ b/src/py2app/util.py @@ -6,12 +6,12 @@ import io import os import pathlib +import py_compile import stat import subprocess import sys import time import typing -from py_compile import compile import macholib.util from macholib.util import is_platform_file @@ -373,7 +373,7 @@ def byte_compile( with open(fn, "wb") as fp_out: fp_out.write(fp_in.read()) - compile(fn, cfile, dfile, optimize=optimize) + py_compile.compile(fn, cfile, dfile, optimize=optimize) os.unlink(fn) elif suffix in PY_SUFFIXES: From 982253de2706f49db05566c5c1178b9f7569778e Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 27 Jul 2025 23:55:16 +1000 Subject: [PATCH 4/5] Updated envlist and basepython --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index e319e240..c9ee9383 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] ;envlist = py37,py38,py39,py310 -envlist = py27,py39,py310,py311 +envlist = py39,py310,py311,py312,py313 isolated_build = True [testenv] @@ -24,7 +24,7 @@ commands = coverage report [testenv:mypy] -basepython = python3.10 +basepython = python3.13 deps = mypy rich From 12ee94547784d7b246bdc4eda2c1728c712da3fe Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 15 Sep 2025 23:17:34 +1000 Subject: [PATCH 5/5] Updated actions --- .github/workflows/pre-commit.yml | 6 +++--- .github/workflows/release_to_pypi.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index f9d28968..a7d90c95 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,13 +9,13 @@ jobs: pre-commit: runs-on: macos-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 with: python-version: '3.x' - name: set PY run: echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV - - uses: actions/cache@v1 + - uses: actions/cache@v4 with: path: ~/.cache/pre-commit key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} diff --git a/.github/workflows/release_to_pypi.yml b/.github/workflows/release_to_pypi.yml index a2b94d1c..09e50490 100644 --- a/.github/workflows/release_to_pypi.yml +++ b/.github/workflows/release_to_pypi.yml @@ -20,10 +20,10 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v5 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v6 with: python-version: "3.x"