-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Assorted updates to feast packaging (#2683)
* chore: Assorted updates to feast packaging Signed-off-by: Achal Shah <[email protected]> * fixup Signed-off-by: Achal Shah <[email protected]> * fixup Signed-off-by: Achal Shah <[email protected]> * fixup for dockerfile Signed-off-by: Achal Shah <[email protected]> * fixup for dockerfile Signed-off-by: Achal Shah <[email protected]> * fixup for dockerfile Signed-off-by: Achal Shah <[email protected]>
- Loading branch information
Showing
6 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ prune docs | |
prune infra | ||
prune examples | ||
|
||
graft sdk/python/feast/ui/build | ||
graft sdk/python/feast/ui/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import pkg_resources | ||
try: | ||
from importlib.metadata import PackageNotFoundError, version | ||
except ModuleNotFoundError: | ||
from importlib_metadata import PackageNotFoundError, version # type: ignore | ||
|
||
|
||
def get_version(): | ||
"""Returns version information of the Feast Python Package.""" | ||
try: | ||
sdk_version = pkg_resources.get_distribution("feast").version | ||
except pkg_resources.DistributionNotFound: | ||
sdk_version = version("feast") | ||
except PackageNotFoundError: | ||
sdk_version = "unknown" | ||
return sdk_version |