From 49f1afc341a3ea75967027b44aa49f4e95cd175c Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Thu, 8 Feb 2024 17:50:48 +0100 Subject: [PATCH 01/12] Sort list of downloads, and add link to mpdecimal sources (#32) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- README.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index b771bd9626..6a440f4ae5 100644 --- a/README.rst +++ b/README.rst @@ -50,13 +50,14 @@ the release management team to create those builds. Download links -------------- -- ``sqlite``: https://www.sqlite.org/download.html - ``bzip2``: https://www.sourceware.org/bzip2/downloads.html -- ``xz``: https://tukaani.org/xz/ -- ``zlib``: https://zlib.net/ -- ``tcl``/``tk``: https://tcl.tk/software/tcltk/download.html -- ``openssl``: https://www.openssl.org/source/ - ``libffi`` : https://github.com/libffi/libffi +- ``mpdecimal`` : https://www.bytereef.org/mpdecimal/download.html +- ``openssl``: https://www.openssl.org/source/ +- ``sqlite``: https://www.sqlite.org/download.html +- ``tcl``/``tk``: https://tcl.tk/software/tcltk/download.html +- ``xz``: https://xz.tukaani.org/xz-utils/ +- ``zlib``: https://zlib.net/ Tagging the commit ------------------ From 2fff816801830ca3004c77d447e313d64e6c3f68 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 16 Apr 2024 20:36:22 +0100 Subject: [PATCH 02/12] Prevent PRs on this repo --- .github/workflows/autoclose.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/autoclose.yaml diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml new file mode 100644 index 0000000000..78a92d66ef --- /dev/null +++ b/.github/workflows/autoclose.yaml @@ -0,0 +1,17 @@ +name: Close Pull Requests + +on: + pull_request_target: + types: [opened] + +jobs: + run: + runs-on: ubuntu-latest + steps: + # Pin to commit hash to avoid surprises via the action + - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 + with: + comment: | + We do not accept PRs on this repository. Please file an issue at + https://github.com/python/cpython requesting an update to the + source packages in this repository. From 20024de6d51d8d5ef6fc29e216c7550e4d471e00 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 16 Apr 2024 20:42:28 +0100 Subject: [PATCH 03/12] Update workflow to use LF endings and run on all branches --- .github/workflows/autoclose.yaml | 35 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml index 78a92d66ef..84e1756c52 100644 --- a/.github/workflows/autoclose.yaml +++ b/.github/workflows/autoclose.yaml @@ -1,17 +1,18 @@ -name: Close Pull Requests - -on: - pull_request_target: - types: [opened] - -jobs: - run: - runs-on: ubuntu-latest - steps: - # Pin to commit hash to avoid surprises via the action - - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - We do not accept PRs on this repository. Please file an issue at - https://github.com/python/cpython requesting an update to the - source packages in this repository. +name: Close Pull Requests + +on: + pull_request_target: + types: [opened] + branches: [*] + +jobs: + run: + runs-on: ubuntu-latest + steps: + # Pin to commit hash to avoid surprises via the action + - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 + with: + comment: | + We do not accept PRs on this repository. Please file an issue at + https://github.com/python/cpython requesting an update to the + source packages in this repository. From 2459a28bab1fc548b782e28fe3c4485016cddf57 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 16 Apr 2024 20:43:45 +0100 Subject: [PATCH 04/12] Update workflow to use alternate format for wildcard --- .github/workflows/autoclose.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml index 84e1756c52..8332a0d967 100644 --- a/.github/workflows/autoclose.yaml +++ b/.github/workflows/autoclose.yaml @@ -3,7 +3,8 @@ name: Close Pull Requests on: pull_request_target: types: [opened] - branches: [*] + branches: + - '**' jobs: run: From cfe6d2ba823e51cedd8c57b9b880808e60de021f Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 16 Apr 2024 20:53:25 +0100 Subject: [PATCH 05/12] Close PR with gh CLI instead of action --- .github/workflows/autoclose.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml index 8332a0d967..1031688d61 100644 --- a/.github/workflows/autoclose.yaml +++ b/.github/workflows/autoclose.yaml @@ -4,16 +4,17 @@ on: pull_request_target: types: [opened] branches: - - '**' + - '**/*' jobs: run: runs-on: ubuntu-latest steps: - # Pin to commit hash to avoid surprises via the action - - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | + - name: Close Pull + run: gh pr close --comment "$COMMENT" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMMENT: > We do not accept PRs on this repository. Please file an issue at https://github.com/python/cpython requesting an update to the source packages in this repository. From c9f34ad93ed82fed33eca17e33b675b0d7942b6a Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 16 Apr 2024 21:11:07 +0100 Subject: [PATCH 06/12] Trying alternate trigger settings --- .github/workflows/autoclose.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml index 1031688d61..4738708401 100644 --- a/.github/workflows/autoclose.yaml +++ b/.github/workflows/autoclose.yaml @@ -1,10 +1,11 @@ name: Close Pull Requests +permissions: + pull-requests: write + on: pull_request_target: - types: [opened] - branches: - - '**/*' + types: [opened, synchronize, reopened] jobs: run: From f2fc35fb2cad74fe649befe2c9028946d993826c Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 16 Apr 2024 21:29:02 +0100 Subject: [PATCH 07/12] Replace trigger with schedule. This avoids the problem of needing the workflow in every base branch in order to work. --- .github/workflows/autoclose.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml index 4738708401..66e2e6e726 100644 --- a/.github/workflows/autoclose.yaml +++ b/.github/workflows/autoclose.yaml @@ -4,15 +4,17 @@ permissions: pull-requests: write on: - pull_request_target: - types: [opened, synchronize, reopened] + schedule: + - cron: '0 * * * *' jobs: run: runs-on: ubuntu-latest steps: - - name: Close Pull - run: gh pr close --comment "$COMMENT" + - name: Close Pull Requests + run: > + gh pr list --json number --jq .[].number + | xargs -L1 gh pr close --comment "$COMMENT" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} COMMENT: > From f11008aa82933cd2f19092f83dc5b7ae95fe6496 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Tue, 16 Apr 2024 15:37:03 -0500 Subject: [PATCH 08/12] Allow manual trigger --- .github/workflows/autoclose.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml index 66e2e6e726..37186ddd98 100644 --- a/.github/workflows/autoclose.yaml +++ b/.github/workflows/autoclose.yaml @@ -6,6 +6,7 @@ permissions: on: schedule: - cron: '0 * * * *' + workflow_dispatch: jobs: run: From 36d5ce5189af783bbf634994c39cfaa5bff4f057 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Tue, 16 Apr 2024 15:48:17 -0500 Subject: [PATCH 09/12] Specify --repo, avoid xargs --- .github/workflows/autoclose.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml index 37186ddd98..fb1cbce705 100644 --- a/.github/workflows/autoclose.yaml +++ b/.github/workflows/autoclose.yaml @@ -14,10 +14,12 @@ jobs: steps: - name: Close Pull Requests run: > - gh pr list --json number --jq .[].number - | xargs -L1 gh pr close --comment "$COMMENT" + for pr in $(gh pr list --repo $REPO_NAME --json number --jq .[].number); do + gh pr close --repo $REPO_NAME --comment "$COMMENT" $pr; + done env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO_NAME: python/cpython-source-deps COMMENT: > We do not accept PRs on this repository. Please file an issue at https://github.com/python/cpython requesting an update to the From 3d20ebb4f4c14711d0f9200ec591b4d99d38c912 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Mon, 3 Mar 2025 18:12:10 -0600 Subject: [PATCH 10/12] Replace dead xz link with link to xz on GitHub Thanks to @StanFromIreland for pointing out the dead link. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 6a440f4ae5..7ed2fbba65 100644 --- a/README.rst +++ b/README.rst @@ -56,7 +56,7 @@ Download links - ``openssl``: https://www.openssl.org/source/ - ``sqlite``: https://www.sqlite.org/download.html - ``tcl``/``tk``: https://tcl.tk/software/tcltk/download.html -- ``xz``: https://xz.tukaani.org/xz-utils/ +- ``xz``: https://github.com/tukaani-project/xz - ``zlib``: https://zlib.net/ Tagging the commit From aa5010fceaaba126f892915973222aa62bce9caf Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Mon, 3 Mar 2025 18:15:45 -0600 Subject: [PATCH 11/12] Add pull request opened trigger to autoclose job --- .github/workflows/autoclose.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/autoclose.yaml b/.github/workflows/autoclose.yaml index fb1cbce705..fc6a6c1524 100644 --- a/.github/workflows/autoclose.yaml +++ b/.github/workflows/autoclose.yaml @@ -4,6 +4,9 @@ permissions: pull-requests: write on: + pull_request: + types: + - opened schedule: - cron: '0 * * * *' workflow_dispatch: From c4e30be37214a6e4aa38e0aa27d2ac8007463f7d Mon Sep 17 00:00:00 2001 From: Emma Harper Smith Date: Sat, 26 Apr 2025 15:48:34 -0700 Subject: [PATCH 12/12] Add Zstandard source link --- README.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 7ed2fbba65..a7e4a88f15 100644 --- a/README.rst +++ b/README.rst @@ -35,8 +35,8 @@ Once the PR has been merged, tag the commit as ``sqlite-``. For updating each project to be updated, follow the above instructions with -appropriate substitutions. For ``sqlite``, ``bzip2``, ``xz``, and ``zlib``, -that's it! +appropriate substitutions. For ``sqlite``, ``bzip2``, ``xz``, ``zlib``, and +``zstd``, that's it! For ``openssl``, ``tcl``/``tk``, and ``libffi``, builds of each should also be checked into `cpython-bin-deps `_ @@ -58,6 +58,7 @@ Download links - ``tcl``/``tk``: https://tcl.tk/software/tcltk/download.html - ``xz``: https://github.com/tukaani-project/xz - ``zlib``: https://zlib.net/ +- ``zstd``: https://github.com/facebook/zstd Tagging the commit ------------------