Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ github:
- "Unit Tests (Python 3.12)"
- "Unit Tests (Python 3.13)"
- "Dependency Review"
- "Run Various Lint and Other Checks"
- "Build and upload Documentation"
- "Run Various Lint and Other Checks (3.10)"
- "Build and upload Documentation (3.10)"

notifications:
jobs: notifications@libcloud.apache.org
Expand Down
11 changes: 6 additions & 5 deletions dist/verify_checksums.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ TMP_DIR=$(mktemp -d)
# TODO: Use json endpoint + jq to parse out the url
# https://pypi.org/pypi/apache-libcloud/3.4.0/json
EXTENSIONS[0]=".tar.gz"
EXTENSIONS[1]="-py3-none-any.whl"
EXTENSIONS[1]="-py2.py3-none-any.whl"

APACHE_MIRROR_URL="http://www.apache.org/dist/libcloud"
PYPI_MIRROR_URL_SOURCE="https://pypi.python.org/packages/source/a/apache-libcloud"
PYPI_MIRROR_URL_WHEEL="https://files.pythonhosted.org/packages/py3/a/apache-libcloud"
PYPI_SIMPLE_URL="https://pypi.org/simple/apache-libcloud/"

# From http://tldp.org/LDP/abs/html/debugging.html#ASSERT
function assert () # If condition false,
Expand Down Expand Up @@ -69,16 +69,17 @@ do
extension=${EXTENSIONS[$i]}
file_name="${VERSION}${extension}"

if [ "${extension}" = "-py3-none-any.whl" ]; then
if [ "${extension}" = "-py2.py3-none-any.whl" ]; then
# shellcheck disable=SC2001
file_name=$(echo "${file_name}" | sed "s/apache-libcloud/apache_libcloud/g")
fi

apache_url="${APACHE_MIRROR_URL}/${file_name}"
pypi_url="${PYPI_MIRROR_URL}/${file_name}"

if [ "${extension}" = "-py3-none-any.whl" ]; then
pypi_url="${PYPI_MIRROR_URL_WHEEL}/${file_name}"
if [ "${extension}" = "-py2.py3-none-any.whl" ]; then
# Get the wheel full URL from PyPi Simple index
pypi_url=$(curl -s ${PYPI_SIMPLE_URL} | grep "${file_name}" | sed -n 's/.*href="\([^"]*\)".*/\1/p')
else
pypi_url="${PYPI_MIRROR_URL_SOURCE}/${file_name}"
fi
Expand Down