Commit 76d43b3
committed
Add __version__ attribute to boltons package
Uses importlib.metadata to read the version from the installed package
metadata, falling back to "unknown" when running from a source checkout
without installing.
This allows users to do:
import boltons
print(boltons.__version__)1 parent 49f381e commit 76d43b3
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments