Skip to content

Commit

Permalink
update get_latest_pypi_version.py to include package name arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannis-vm committed Oct 9, 2023
1 parent 0a4c976 commit deccbcf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/osmg/get_latest_pypi_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import argparse
import requests


Expand All @@ -15,6 +16,11 @@ def get_latest_version(package_name):


if __name__ == "__main__":
package = "osmg"

parser = argparse.ArgumentParser()
parser.add_argument("--package_name", default="osmg", help="Name of the package.")
args = parser.parse_args()

package = args.package_name
version = get_latest_version(package)
print(version)

0 comments on commit deccbcf

Please sign in to comment.