mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
fix(releasing): fixes npm script for release validation (#27214)
(cherry picked from commit 2a47edc3a7)
This commit is contained in:
committed by
Michael S. Molina
parent
d47fd44b49
commit
ef2ca408cc
@@ -39,7 +39,7 @@ PYTHON=$(get_python_command)
|
||||
PIP=$(get_pip_command)
|
||||
|
||||
# Get the release directory's path. If you unzip an Apache release and just run the npm script to validate the release, this will be a file name like `apache-superset-x.x.xrcx-source.tar.gz`
|
||||
RELEASE_DIR_NAME="../../$(basename "$(dirname "$(pwd)")").tar.gz"
|
||||
RELEASE_ZIP_PATH="../../$(basename "$(dirname "$(pwd)")")-source.tar.gz"
|
||||
|
||||
# Install dependencies from requirements.txt if the file exists
|
||||
if [ -f "path/to/requirements.txt" ]; then
|
||||
@@ -47,8 +47,5 @@ if [ -f "path/to/requirements.txt" ]; then
|
||||
$PYTHON -m $PIP install -r path/to/requirements.txt
|
||||
fi
|
||||
|
||||
# echo $PYTHON
|
||||
# echo $RELEASE_DIR_NAME
|
||||
|
||||
# Run the Python script with the parent directory name as an argument
|
||||
$PYTHON ../RELEASING/verify_release.py "$RELEASE_DIR_NAME"
|
||||
$PYTHON ../RELEASING/verify_release.py "$RELEASE_ZIP_PATH"
|
||||
|
||||
Reference in New Issue
Block a user