From e80c8a6a73522bf7db584794e02f05482b0ead3b Mon Sep 17 00:00:00 2001 From: Daniel Flook Date: Fri, 4 Sep 2026 10:16:43 +0100 Subject: [PATCH 1/3] Update to self-repo action references --- .github/workflows/create_draft_release.yaml | 2 +- .github/workflows/release.yaml | 2 +- .github/workflows/release_test.yaml | 2 +- .github/workflows/test.yaml | 2 +- .github/workflows/xtest.yaml | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/create_draft_release.yaml b/.github/workflows/create_draft_release.yaml index a6d83472..1f927eb1 100644 --- a/.github/workflows/create_draft_release.yaml +++ b/.github/workflows/create_draft_release.yaml @@ -175,7 +175,7 @@ jobs: merge-multiple: true - name: Test - uses: ./.github/actions/run-in-container + uses: $/.github/actions/run-in-container with: image: danielflook/python-minifier-build:python${{ matrix.python }}-2025-09-26 run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9a08f169..e71cd145 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,7 +19,7 @@ jobs: create_draft_release: name: Create Draft Release - uses: ./.github/workflows/create_draft_release.yaml + uses: $/.github/workflows/create_draft_release.yaml if: github.ref == 'refs/heads/main' permissions: contents: write diff --git a/.github/workflows/release_test.yaml b/.github/workflows/release_test.yaml index b6d20268..85808a72 100644 --- a/.github/workflows/release_test.yaml +++ b/.github/workflows/release_test.yaml @@ -34,7 +34,7 @@ jobs: create_draft_release: name: Create Draft Release - uses: ./.github/workflows/create_draft_release.yaml + uses: $/.github/workflows/create_draft_release.yaml needs: - determine_version permissions: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7870778f..0e8c7e85 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -28,7 +28,7 @@ jobs: sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py - name: Run tests - uses: ./.github/actions/run-in-container + uses: $/.github/actions/run-in-container with: image: danielflook/python-minifier-build:${{ matrix.python }}-2025-09-26 run: | diff --git a/.github/workflows/xtest.yaml b/.github/workflows/xtest.yaml index c6dbda76..21737621 100644 --- a/.github/workflows/xtest.yaml +++ b/.github/workflows/xtest.yaml @@ -31,7 +31,7 @@ jobs: sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py - name: Run tests - uses: ./.github/actions/run-in-container + uses: $/.github/actions/run-in-container with: image: danielflook/python-minifier-build:${{ matrix.python }}-2025-09-26 run: | @@ -66,7 +66,7 @@ jobs: sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py - name: Run tests - uses: ./.github/actions/run-in-container + uses: $/.github/actions/run-in-container with: image: danielflook/python-minifier-build:python3.14-2025-09-26 run: | @@ -79,7 +79,7 @@ jobs: test-corpus: needs: test name: Minify Corpus - uses: ./.github/workflows/test_corpus.yaml + uses: $/.github/workflows/test_corpus.yaml with: ref: ${{ github.ref }} base-ref: ${{ github.base_ref }} From a59f986ae7cbc7e4a14fd31dd20cc768bc74f8f8 Mon Sep 17 00:00:00 2001 From: Daniel Flook Date: Fri, 4 Sep 2026 10:26:26 +0100 Subject: [PATCH 2/3] Update to self-repo action references --- .github/actionlint.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/actionlint.yaml diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 00000000..53682cd5 --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,10 @@ +# Configuration for actionlint +# https://github.com/rhysd/actionlint/blob/main/docs/config.md + +paths: + .github/workflows/**/*.yaml: + ignore: + # actionlint doesn't recognise GitHub's self-repository syntax ($/...) + # in uses: yet. Remove these when it does. + - 'specifying action "\$/' + - 'reusable workflow call "\$/' From 60e365a9f5773156ce36000a2542d3bc6e1c1799 Mon Sep 17 00:00:00 2001 From: Daniel Flook Date: Fri, 4 Sep 2026 10:30:40 +0100 Subject: [PATCH 3/3] :bookmark: v3.3.0 --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62bd96ee..22dfd23b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ and will output source code compatible with the version of the interpreter it is This means that if you minify code written for Python 3.11 using python-minifier running with Python 3.12, the minified code may only run with Python 3.12. -## [Unreleased] +## [3.3.0] - 2026-09-04 ### Added - New transform to remove `if` statement branches that have no effect because the condition is always `True` or `False`. This is enabled by default and can be disabled with the `--no-remove-dead-branches` option. @@ -331,6 +331,7 @@ the minified code may only run with Python 3.12. - python-minifier package - pyminify command +[3.3.0]: https://github.com/dflook/python-minifier/compare/3.2.0...3.3.0 [3.2.0]: https://github.com/dflook/python-minifier/compare/3.1.1...3.2.0 [3.1.1]: https://github.com/dflook/python-minifier/compare/3.1.0...3.1.1 [3.1.0]: https://github.com/dflook/python-minifier/compare/3.0.0...3.1.0