Skip to content

Commit

Permalink
Merge pull request #27 from SUSYUSTC/dev
Browse files Browse the repository at this point in the history
add update
  • Loading branch information
SUSYUSTC authored Apr 2, 2023
2 parents bc49b8a + 324c134 commit 598f0c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mathtranslate/update.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import requests


def get_latest_version():
response = requests.get('https://pypi.org/pypi/mathtranslate/json')
latest_version = response.json()['info']['version']
return latest_version

0 comments on commit 598f0c0

Please sign in to comment.