Hi team!, any suggestions on how to extract the Ke...
# questions
j
Hi team!, any suggestions on how to extract the Kedro version used to build a wheel via
kedro package
? It will be useful when used to raise an error when doesn’t meet the one expected for a launcher.
j
hi @Juan Diego, I looked around the wheel metadata and source files and can't find this information. the closes is the project metadata:
Copy code
> grep kedro METADATA | head -n1                                       
Requires-Dist: kedro (~=0.18.7)
but this is not reliable. do you want to open an issue about it?
j
Hi @Juan Luis and many thanks for the suggestion, I will open the issue as this seems to be feature useful for the community.
👍🏼 1
👍 1
s
You could try pkginfo library, you can use its api to extract the Kedro version from the wheel file's metadata.
👍 1
j
Thanks Sajid, I will give it a try also.