version.py 440 B

1234567891011121314
  1. import warnings
  2. try:
  3. import aphrodite.commit_id
  4. __commit__ = aphrodite.commit_id.__commit__
  5. __short_commit__ = aphrodite.commit_id.__short_commit__
  6. except Exception as e:
  7. warnings.warn(f"Failed to read commit hash:\n{e}",
  8. RuntimeWarning,
  9. stacklevel=2)
  10. __commit__ = "COMMIT_HASH_PLACEHOLDER"
  11. __short_commit__ = "SHORT_COMMIT_HASH_PLACEHOLDER"
  12. __version__ = "0.6.5"