Marcel Telka
2022-10-12 53ac6186084ed3c25d12c3329526eb20baf68b57
tools/python-integrate-project: set COMPONENT_ARCHIVE_URL

1 files modified
9 ■■■■■ changed files
tools/python-integrate-project 9 ●●●●● patch | view | raw | blame | history
tools/python-integrate-project
@@ -88,6 +88,13 @@
    exit 1
fi
# Get download url
DOWNLOAD_URL=$(printf "%s" "$PYPI_PROJECT_RELEASE" | /usr/bin/jq -r '.urls[]|select(.packagetype=="sdist")|.url')
if (($? != 0)) || [[ -z "$DOWNLOAD_URL" || "$DOWNLOAD_URL" == "null" ]] ; then
    printf "WARNING: Failed to get download url for project %s, version %s from pypi\n" "$PROJECT" "$VERSION" >&2
    DOWNLOAD_URL="TODO"
fi
# Prepare the directory
DIR="$DIR/$PROJECT"
@@ -153,6 +160,8 @@
COMPONENT_REVISION =        $((PREV_REV + 1))
COMPONENT_SUMMARY =        $PROJECT - TODO
COMPONENT_PROJECT_URL =        $HOMEPAGE
COMPONENT_ARCHIVE_URL =        \\
    $DOWNLOAD_URL
COMPONENT_ARCHIVE_HASH =    \\
    sha256:TODO
COMPONENT_LICENSE =        license:TODO