Skip to content

Commit 8b7249c

Browse files
authored
remove hard coded version in provenance attributes (#799)
1 parent 492537c commit 8b7249c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

echopype/utils/prov.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
from pathlib import PosixPath
33
from typing import Any, Dict, List, Tuple, Union
44

5-
# TODO: uncomment after release (causes flake8 to fail)
6-
# from _echopype_version import version as ECHOPYPE_VERSION
5+
from _echopype_version import version as ECHOPYPE_VERSION
76
from typing_extensions import Literal
87

98
ProcessType = Literal["conversion", "processing"]
@@ -18,10 +17,10 @@ def echopype_prov_attrs(process_type: ProcessType) -> Dict[str, str]:
1817
process_type : ProcessType
1918
Echopype process function type
2019
"""
21-
# TODO: change hard coded 0.6.0 after release
20+
2221
prov_dict = {
2322
f"{process_type}_software_name": "echopype",
24-
f"{process_type}_software_version": "0.6.0", # ECHOPYPE_VERSION,
23+
f"{process_type}_software_version": ECHOPYPE_VERSION,
2524
f"{process_type}_time": dt.utcnow().isoformat(timespec="seconds") + "Z", # use UTC time
2625
}
2726

0 commit comments

Comments
 (0)