]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
try again with python
authorBob Halley <halley@dnspython.org>
Wed, 3 Sep 2025 18:53:50 +0000 (11:53 -0700)
committerBob Halley <halley@dnspython.org>
Wed, 3 Sep 2025 18:53:50 +0000 (11:53 -0700)
.github/workflows/publish.yml

index 4c4d4cdf5b43d9c495cd24a67734e7ff0ff37ab9..d8b4ee1544f7e07dd5db6d669c007423969fb394 100644 (file)
@@ -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: