Skip to content

The agent engineering platform.

Support release-testing packages with dashes in their names. (#12654)

Predrag Gruevski94f018f1ba94
diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml
index 35377b3db0..793081ae40 100644
--- a/.github/workflows/_release.yml
+++ b/.github/workflows/_release.yml
@@ -131,7 +131,11 @@ jobs:
--extra-index-url https://pypi.org/simple/ \
"$PKG_NAME==$VERSION"
- python -c "import $PKG_NAME; print(dir($PKG_NAME))"
+ # Replace all dashes in the package name with underscores,
+ # since that's how Python imports packages with dashes in the name.
+ IMPORT_NAME="$(echo "$PKG_NAME" | sed s/-/_/g)"
+
+ python -c "import $IMPORT_NAME; print(dir($IMPORT_NAME))"
publish:
needs: