From 6888f5f125259d3a7999bf2db8c87a4741f66ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Sat, 5 Oct 2024 15:04:21 +0200 Subject: [PATCH] ci: updated to Python 3.12 in release-notes job, made build_changelog.sh script compatible with Python 3.9 and before --- .github/workflows/build.yml | 2 +- scripts/build_changelog.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ffcd87b9..e139cb4a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -247,7 +247,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.12" - name: Install deps run: | diff --git a/scripts/build_changelog.py b/scripts/build_changelog.py index 1e7a15b7..1957f828 100755 --- a/scripts/build_changelog.py +++ b/scripts/build_changelog.py @@ -349,7 +349,7 @@ def build( commit_range: Tuple[str, str], output_path: str, repo_order: List[str], - filter_types: List[str] | None = None, + filter_types: Optional[List[str]] = None, ): # provides a commit summary for the repo and subrepos, recursively looking up subrepos # NOTE: this must be done *before* `get_all_contributors` is called,