Skip to content

Commit 11496ad

Browse files
committed
back to get_distribution()
1 parent 5d997ac commit 11496ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/update_zblinks_api/matrix_table_datasets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import click
22
import pandas as pd
3+
from pkg_resources import get_distribution
34

45
import importlib
56

@@ -43,8 +44,9 @@ def create_deids_table_dataset(partner, df_hist):
4344
)
4445
)
4546

47+
dist = get_distribution("update-zblinks-api")
4648
df_hist["matched_by"] = "zbmath-links-api"
47-
df_hist["matched_by_version"] = "1.0.0"
49+
df_hist["matched_by_version"] = dist.version
4850

4951
if "zbl_code" in df_hist.columns:
5052
df_hist = get_des_from_zbl_ids(df_hist)

0 commit comments

Comments
 (0)