From 270c32e56589e70c9bfb5224b1239640c4f5decc Mon Sep 17 00:00:00 2001 From: offa Date: Fri, 11 Oct 2024 14:36:12 +0200 Subject: [PATCH 1/2] Add Python 3.13 CI build --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17f3ccb..fcb9f74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] + python: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ] name: python-${{ matrix.python }} steps: - name: Checkout From b48c59c37849369174ed3ed1d28086c6f3044625 Mon Sep 17 00:00:00 2001 From: offa Date: Fri, 11 Oct 2024 14:39:28 +0200 Subject: [PATCH 2/2] Use shlex.quote() for Python 3.13 compatibility --- gitup/update.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gitup/update.py b/gitup/update.py index eab5344..d21eb36 100644 --- a/gitup/update.py +++ b/gitup/update.py @@ -7,7 +7,6 @@ from __future__ import print_function from glob import glob import os -import pipes import re import shlex @@ -85,7 +84,7 @@ def _fetch_remotes(remotes, prune): msg = re.sub(r"\s+", " ", err.stderr).strip() msg = re.sub(r"^stderr: *'(fatal: *)?", "", msg).strip("'") if not msg: - command = " ".join(pipes.quote(arg) for arg in err.command) + command = " ".join(shlex.quote(arg) for arg in err.command) msg = "{0} failed with status {1}.".format(command, err.status) elif not msg.endswith("."): msg += "."