Skip to content

Commit 96af834

Browse files
Update download.py
1 parent a4b8ff1 commit 96af834

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

scripts/download.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import sys
3+
import time
34
import subprocess
45

56
version = sys.argv[1]
@@ -23,5 +24,13 @@
2324
url = f'https://github.com/learnforpractice/mixin-python/releases/download/v{version}/'
2425

2526
for f in files:
26-
if not os.path.exists(f):
27+
count = 60*60/10
28+
while True:
29+
print('Downloading {}'.format(f))
2730
subprocess.call(['wget', url + f])
31+
if os.path.exists(f):
32+
break
33+
time.sleep(10)
34+
count -= 1
35+
if count <= 0:
36+
break

tag.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
VERSION=v0.2.3
2+
git push origin :refs/tags/$VERSION
3+
git tag -d $VERSION
4+
git tag $VERSION -F release.txt
5+
git push -f origin $VERSION
6+

0 commit comments

Comments
 (0)