Commit 987833b
Add __version__ attribute for programmatic version checking (#5046)
Summary:
Pull Request resolved: #5046
Adds `__version__` to `ax/__init__.py` by importing from `ax.version`, which is generated by `setuptools_scm` at build time. Uses a try/except fallback to `"Unknown"` for environments where the version file hasn't been generated yet, matching the same pattern used in BoTorch. This enables programmatic version checking via `ax.__version__`.
---
AI generated Summary & Test Plan from DEV111709377
Reviewed By: saitcakmak
Differential Revision: D96685150
fbshipit-source-id: 76f7bd8885ab67e9630b012e33b20b2110d69f781 parent bc43ed7 commit 987833b
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
0 commit comments