| 1 | Description: migrate over from deprecated pkg_resources |
| 2 | Author: Ananthu C V <weepingclown@debu> |
| 3 | Last-Update: 2026-05-23 |
| 4 | --- a/cluster/__init__.py |
| 5 | +++ b/cluster/__init__.py |
| 6 | @@ -18,3 +18,3 @@ |
| 7 | |
| 8 | -from pkg_resources import resource_string |
| 9 | +from importlib.resources import files |
| 10 | |
| 11 | @@ -24,2 +24,2 @@ |
| 12 | |
| 13 | -__version__ = resource_string('cluster', 'version.txt').decode('ascii').strip() |
| 14 | +__version__ = files('cluster').joinpath('version.txt') |