Skip to content

Commit 324c134

Browse files
committed
add update
1 parent 03a88c8 commit 324c134

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mathtranslate/update.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import requests
2+
3+
4+
def get_latest_version():
5+
response = requests.get('https://pypi.org/pypi/mathtranslate/json')
6+
latest_version = response.json()['info']['version']
7+
return latest_version

0 commit comments

Comments
 (0)