Skip to content

Commit

Permalink
Update .github/get_pypi_info.py
Browse files Browse the repository at this point in the history
Co-authored-by: sandcha <[email protected]>
  • Loading branch information
benoit-cty and sandcha authored May 30, 2022
1 parent 3596fa5 commit 638c66a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/get_pypi_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def get_info(package_name: str = "") -> dict:
resp = requests.get(f"https://pypi.org/pypi/{package_name}/json").json()
version = resp["info"]["version"]
for v in resp["releases"][version]:
if v["packagetype"] == "sdist": # for .tag.gz
if v["packagetype"] == "sdist": # for source code (.tar.gz)

return {
"last_version": version,
"url": v["url"],
Expand Down

0 comments on commit 638c66a

Please sign in to comment.