port-ocean 0.12.5__py3-none-any.whl → 0.12.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of port-ocean might be problematic. Click here for more details.
- port_ocean/tests/helpers/ocean_app.py +7 -2
- {port_ocean-0.12.5.dist-info → port_ocean-0.12.7.dist-info}/METADATA +1 -1
- {port_ocean-0.12.5.dist-info → port_ocean-0.12.7.dist-info}/RECORD +6 -6
- {port_ocean-0.12.5.dist-info → port_ocean-0.12.7.dist-info}/LICENSE.md +0 -0
- {port_ocean-0.12.5.dist-info → port_ocean-0.12.7.dist-info}/WHEEL +0 -0
- {port_ocean-0.12.5.dist-info → port_ocean-0.12.7.dist-info}/entry_points.txt +0 -0
|
@@ -6,6 +6,7 @@ from typing import Any, Dict, List, Tuple, Union
|
|
|
6
6
|
from yaml import safe_load
|
|
7
7
|
|
|
8
8
|
from port_ocean.bootstrap import create_default_app
|
|
9
|
+
from port_ocean.config.dynamic import default_config_factory
|
|
9
10
|
from port_ocean.core.handlers.port_app_config.models import ResourceConfig
|
|
10
11
|
from port_ocean.core.ocean_types import RESYNC_RESULT
|
|
11
12
|
from port_ocean.ocean import Ocean
|
|
@@ -16,8 +17,9 @@ def get_integration_ocean_app(
|
|
|
16
17
|
integration_path: str, config_overrides: Union[Dict[str, Any], None] = None
|
|
17
18
|
) -> Ocean:
|
|
18
19
|
spec_file = get_spec_file(Path(integration_path))
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
config_factory = None
|
|
21
|
+
if spec_file is not None:
|
|
22
|
+
config_factory = default_config_factory(spec_file.get("configurations", []))
|
|
21
23
|
|
|
22
24
|
default_app = create_default_app(
|
|
23
25
|
integration_path,
|
|
@@ -32,6 +34,7 @@ def get_integration_ocean_app(
|
|
|
32
34
|
},
|
|
33
35
|
},
|
|
34
36
|
)
|
|
37
|
+
|
|
35
38
|
main_path = f"{integration_path}/main.py"
|
|
36
39
|
sys.path.append(integration_path)
|
|
37
40
|
app_module = load_module(main_path)
|
|
@@ -46,6 +49,8 @@ def get_integation_resource_configs(integration_path: str) -> List[ResourceConfi
|
|
|
46
49
|
config_file_path = f"{integration_path}/.port/resources/port-app-config."
|
|
47
50
|
if not Path(f"{config_file_path}yml").exists():
|
|
48
51
|
config_file_path = f"{config_file_path}yaml"
|
|
52
|
+
else:
|
|
53
|
+
config_file_path = f"{config_file_path}yml"
|
|
49
54
|
|
|
50
55
|
with open(config_file_path) as port_app_config_file:
|
|
51
56
|
resource_configs = safe_load(port_app_config_file)
|
|
@@ -126,7 +126,7 @@ port_ocean/tests/core/handlers/entity_processor/test_jq_entity_processor.py,sha2
|
|
|
126
126
|
port_ocean/tests/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
127
127
|
port_ocean/tests/helpers/fixtures.py,sha256=IQEplbHhRgjrAsZlnXrgSYA5YQEn25I9HgO3_Fjibxg,1481
|
|
128
128
|
port_ocean/tests/helpers/integration.py,sha256=_RxS-RHpu11lrbhUXYPZp862HLWx8AoD7iZM6iXN8rs,1104
|
|
129
|
-
port_ocean/tests/helpers/ocean_app.py,sha256=
|
|
129
|
+
port_ocean/tests/helpers/ocean_app.py,sha256=8BysIhNqtTwhjnya5rr0AtrjulfJnJJMFz5cPUxIpLk,2167
|
|
130
130
|
port_ocean/tests/helpers/port_client.py,sha256=5d6GNr8vNNSOkrz1AdOhxBUKuusr_-UPDP7AVpHasQw,599
|
|
131
131
|
port_ocean/tests/helpers/smoke_test.py,sha256=_9aJJFRfuGJEg2D2YQJVJRmpreS6gEPHHQq8Q01x4aQ,2697
|
|
132
132
|
port_ocean/tests/test_smoke.py,sha256=uix2uIg_yOm8BHDgHw2hTFPy1fiIyxBGW3ENU_KoFlo,2557
|
|
@@ -141,8 +141,8 @@ port_ocean/utils/repeat.py,sha256=0EFWM9d8lLXAhZmAyczY20LAnijw6UbIECf5lpGbOas,32
|
|
|
141
141
|
port_ocean/utils/signal.py,sha256=K-6kKFQTltcmKDhtyZAcn0IMa3sUpOHGOAUdWKgx0_E,1369
|
|
142
142
|
port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
|
|
143
143
|
port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
|
|
144
|
-
port_ocean-0.12.
|
|
145
|
-
port_ocean-0.12.
|
|
146
|
-
port_ocean-0.12.
|
|
147
|
-
port_ocean-0.12.
|
|
148
|
-
port_ocean-0.12.
|
|
144
|
+
port_ocean-0.12.7.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
145
|
+
port_ocean-0.12.7.dist-info/METADATA,sha256=_MT7aiNNRduYEGrRxeeCYTA0-K-CF303XDvPXUQWj3o,6669
|
|
146
|
+
port_ocean-0.12.7.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
147
|
+
port_ocean-0.12.7.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
|
|
148
|
+
port_ocean-0.12.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|