Skip to content

Commit 8416d03

Browse files
committed
Merge branch 'release/v1.2.4'
2 parents c558add + b6288ca commit 8416d03

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tempren"
3-
version = "1.2.3"
3+
version = "1.2.4"
44
description = "Template-based renaming utility"
55
readme = "README.md"
66
license = "GPL-3.0-or-later"

wait_for_pypi.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
set -eux
3+
4+
PACKAGE_NAME=$1
5+
PACKAGE_VERSION=$2
6+
TIMEOUT=$3
7+
DELAY_BETWEEN_REQUESTS=$4
8+
9+
declare URL=https://pypi.org/project/$PACKAGE_NAME/$PACKAGE_VERSION/
10+
11+
DELAY_BETWEEN_REQUESTS=$DELAY_BETWEEN_REQUESTS \
12+
URL=$URL STATUS=200 timeout \
13+
--foreground -s TERM $TIMEOUT bash -c \
14+
'while [[ ${STATUS_RECEIVED} != ${STATUS} ]];\
15+
do STATUS_RECEIVED=$(curl -s -o /dev/null -L -w ''%{http_code}'' ${URL}) && \
16+
echo "received status: $STATUS_RECEIVED" && \
17+
sleep $DELAY_BETWEEN_REQUESTS;\
18+
done;
19+
echo success with status: $STATUS_RECEIVED'

0 commit comments

Comments
 (0)