From f9ea7630fc7d8a042753f450ca049455fd820531 Mon Sep 17 00:00:00 2001 From: Hansheng-Li Date: Wed, 5 Aug 2026 23:45:36 -0400 Subject: [PATCH] Build a wheel in the release workflow The release job builds with `python setup.py sdist`, so every release since 0.10.1 has been sdist-only. Switch to `python -m build`, which produces both the sdist and a wheel from the existing setup.py. The sdist is byte-for-byte equivalent in contents, and the wheel picks up package_data correctly, including the Lua scripts that RedisScripts loads at runtime. --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f80bc48..84502c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: python-version: 3.12 - run: | - pip install packaging setuptools + pip install build packaging setuptools - name: Normalize the release version run: | echo "release_version=`echo '${{ github.event.inputs.requested_release_tag }}' | sed 's/^v//'`" >> $GITHUB_ENV @@ -76,8 +76,8 @@ jobs: ref: 'refs/tags/${{ env.release_tag }}', sha: context.sha }) - - name: Build Source Distribution + - name: Build the source distribution and wheel run: | - python setup.py sdist + python -m build - name: Upload to PyPI uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13