fix: Feast UI importlib change by privatedumbo · Pull Request #4248 · feast-dev/feast
What this PR does / why we need it:
Starting the UI fails when using the builtin importlib.resources.files function; it works with the one from the library importlib-resources.
The error
TypeError: 'feast.ui_server' is not a package
Proposed solution
Using the reference to the module's parent (its package) through spec (docs). We're using __spec__.parent as opposed to __package__ because __package__ does not seem to be the way according to this.
According to the python-docs, the function should work with both modules and packages, but that does not seem to be the case (link to docs).
Which issue(s) this PR fixes:
Fixes 4241.