mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 12:18:24 +00:00
Support release-testing packages with dashes in their names. (#12654)
This commit is contained in:
parent
912ace18e9
commit
94f018f1ba
6
.github/workflows/_release.yml
vendored
6
.github/workflows/_release.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user