https://kedro.org/ logo
#questions
Title
# questions
j

Juan Diego

04/26/2023, 3:42 PM
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

Juan Luis

04/27/2023, 9:41 AM
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

Juan Diego

04/27/2023, 11:03 AM
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

Sajid Alam

04/27/2023, 2:28 PM
You could try pkginfo library, you can use its api to extract the Kedro version from the wheel file's metadata.
👍 1
j

Juan Diego

04/27/2023, 2:45 PM
Thanks Sajid, I will give it a try also.
2 Views