From 8d205ee2321226bbbfee99781ff5ae596626b78c Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 3 Sep 2025 11:53:50 -0700 Subject: [PATCH] try again with python --- .github/workflows/publish.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c4d4cdf..d8b4ee15 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,7 +52,15 @@ jobs: name: python-package-distributions path: dist/ - name: rename - run: "ls dist | sed -e 's/dnspython_\\(.*\\)/mv dist\\/dnspython_\\1 dist\\/dnspython_test-\\1/' | sh" + run: | + python3 << 'EOF' + import os + os.chdir("dist") + for f in os.listdir("."): + if f.startswith('dnspython-'): + nf = f.replace("dnspython-", "dnspython_test-") + os.rename(f, nf) + EOF - name: Publish distribution to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: -- 2.47.3