-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…182) * #174 Replaced Language Container Stuff with PEC * Fixed typeguard errors * #183 Fixed warning on tests with __init__ constructor * Added plugin pytest-exasol-slc and used it for creating the SLC for integration tests. * disabled backend saas for pytest * #180 Replaced ITDE by pytest plugin exasol-backend * Added dependency to pytest-exasol-extension * tempoarily replacing bucketfs_connection_factory with own implementation, still, preserving the old interface to current test implementation in query_handler_runner_udf.py, still using the olf bucketfs api for now. Will be fixed in the scope of github issue #176. * Removed SLC deployer and tests - language_container_deployer_cli.py - language_container_deployer.py - test_language_container_deployer_cli.py - test_language_container_deployer.py * #184 Updated micromamba to version 2.0.0
- Loading branch information
Showing
59 changed files
with
665 additions
and
681 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 |
---|---|---|
|
@@ -161,3 +161,6 @@ doc/_build | |
|
||
# emacs | ||
TAGS | ||
|
||
# locally build script language container files | ||
.slc |
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
111 changes: 0 additions & 111 deletions
111
exasol_advanced_analytics_framework/deployment/language_container_deployer.py
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
exasol_advanced_analytics_framework/deployment/language_container_deployer_cli.py
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from contextlib import contextmanager | ||
from exasol.python_extension_common.deployment.language_container_builder import ( | ||
LanguageContainerBuilder, | ||
find_path_backwards | ||
) | ||
|
||
LANGUAGE_ALIAS = "PYTHON3_AAF" | ||
SLC_NAME = "exasol_advanced_analytics_framework_container" | ||
SLC_FILE_NAME = SLC_NAME + ".tar.gz" | ||
SLC_URL_FORMATTER = "https://github.com/exasol/advanced_analytics_framework/releases/download/{version}/" + SLC_NAME | ||
|
||
|
||
@contextmanager | ||
def custom_slc_builder() -> LanguageContainerBuilder: | ||
project_directory = find_path_backwards("pyproject.toml", __file__).parent | ||
with LanguageContainerBuilder(SLC_NAME) as builder: | ||
builder.prepare_flavor(project_directory) | ||
yield builder |
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
10 changes: 6 additions & 4 deletions
10
exasol_data_science_utils_python/utils/data_classes_runtime_type_check.py
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,12 @@ | ||
from dataclasses import fields | ||
|
||
import typeguard | ||
|
||
from typeguard import TypeCheckError | ||
|
||
def check_dataclass_types(datacls): | ||
for field in fields(datacls): | ||
typeguard.check_type(value=datacls.__dict__[field.name], | ||
expected_type=field.type, | ||
argname=field.name) | ||
try: | ||
typeguard.check_type(value=datacls.__dict__[field.name], | ||
expected_type=field.type) | ||
except TypeCheckError as e: | ||
raise TypeCheckError(f"Field '{field.name}' has wrong type: {e}") |
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
Oops, something went wrong.