Skip to content

Commit 598f0c0

Browse files
authored
Merge pull request #27 from SUSYUSTC/dev
add update
2 parents bc49b8a + 324c134 commit 598f0c0

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)