-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The tableauhyperapi module is unavailable on mac with arm64 processors. * Update poetry to take advantage of dependency groups. * Add a tableau dependency group that can be excluded when installing dependencies. * Update python_src to fallback with error messages when using the tableau subdir that creates hyperfiles fails to import everything. * Use new `BUILDPLATFORM` arg in dockerfile to build without tableau deps on an arm64 platform. * Add an export for the BUILDPLATFORM variable to .envrc and pass it through via docker-compose when building the lamp py images.
- Loading branch information
1 parent
7dd25a3
commit 39a5843
Showing
9 changed files
with
683 additions
and
757 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
use asdf | ||
|
||
dotenv | ||
dotenv | ||
|
||
# used in dockercompose and dockerfile | ||
export BUILDPLATFORM=$(uname -m) | ||
|
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,3 +1,3 @@ | ||
poetry 1.4.2 | ||
poetry 1.7.1 | ||
python 3.10.13 | ||
direnv 2.32.2 |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 +1,29 @@ | ||
"""Utilites for Interacting with Tableau and Hyper files""" | ||
"""Utilities for Interacting with Tableau and Hyper files""" | ||
|
||
try: | ||
# pylint: disable=C0414 | ||
# | ||
# Import alias does not rename original package. The intent is to grab it | ||
# here and pass it through other portions of the codebase. | ||
from .pipeline import start_parquet_updates as start_parquet_updates | ||
|
||
# pylint: enable=C0414 | ||
|
||
except ModuleNotFoundError as mfl_exception: | ||
import logging | ||
from lamp_py.postgres.postgres_utils import DatabaseManager | ||
|
||
# pylint: disable=W0613 | ||
# | ||
# db_manaager is unused because this method has to match the function | ||
# signature of the method its replacing. | ||
def start_parquet_updates(db_manager: DatabaseManager) -> None: | ||
""" | ||
re-implimentation of start parquet updates in the event that the | ||
tableauhyperapi module cannot be found. | ||
""" | ||
logging.exception( | ||
"Unable to run parquet files on this machine due to Module Not Found error" | ||
) | ||
|
||
# pylint: enable=W0613 |