Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
twata committed Nov 20, 2023
1 parent f024f95 commit ab9b10c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
date = datetime.date.today().strftime("%Y%m%d")
version = f"{version}.dev{date}"

commit_hash_cmd = subprocess.run(["git", "rev-parse", "HEAD"], stdout=subprocess.PIPE)
commit_hash_cmd = subprocess.run(["git", "rev-parse", "HEAD"], stdout=subprocess.PIPE, check=False)
if commit_hash_cmd.returncode == 0:
project_urls["Commit"] = f"https://github.com/microsoft/onnxscript/tree/{commit_hash_cmd.stdout.decode('utf-8').strip()}"
project_urls[
"Commit"
] = f"https://github.com/microsoft/onnxscript/tree/{commit_hash_cmd.stdout.decode('utf-8').strip()}"

# NOTE: Do not include other metadata in setup.py. Put it in pyproject.toml.
setuptools.setup(version=version, project_urls=project_urls, url="https://onnxscript.ai/")

0 comments on commit ab9b10c

Please sign in to comment.