aplos-nca-saas-sdk 0.0.24__py3-none-any.whl → 0.0.25__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.
- aplos_nca_saas_sdk/utilities/environment_services.py +13 -11
- aplos_nca_saas_sdk/version.py +1 -1
- {aplos_nca_saas_sdk-0.0.24.dist-info → aplos_nca_saas_sdk-0.0.25.dist-info}/METADATA +1 -1
- {aplos_nca_saas_sdk-0.0.24.dist-info → aplos_nca_saas_sdk-0.0.25.dist-info}/RECORD +6 -6
- {aplos_nca_saas_sdk-0.0.24.dist-info → aplos_nca_saas_sdk-0.0.25.dist-info}/WHEEL +0 -0
- {aplos_nca_saas_sdk-0.0.24.dist-info → aplos_nca_saas_sdk-0.0.25.dist-info}/licenses/LICENSE +0 -0
@@ -26,8 +26,7 @@ class EnvironmentServices:
|
|
26
26
|
|
27
27
|
if not starting_path:
|
28
28
|
starting_path = __file__
|
29
|
-
|
30
|
-
|
29
|
+
|
31
30
|
environment_file: str | None = self.find_file(
|
32
31
|
starting_path=starting_path,
|
33
32
|
file_name=file_name,
|
@@ -58,17 +57,15 @@ class EnvironmentServices:
|
|
58
57
|
|
59
58
|
return event
|
60
59
|
|
61
|
-
|
62
|
-
|
63
60
|
def find_module_path(
|
64
61
|
self,
|
65
62
|
starting_path: str | None = None,
|
66
63
|
raise_error_if_not_found: bool = True,
|
67
64
|
) -> str | None:
|
68
65
|
"""From a given starting point, move up the directory chain until you find the modules root"""
|
69
|
-
|
66
|
+
|
70
67
|
starting_path = starting_path or __file__
|
71
|
-
parents = len(starting_path.split(os.sep)) -1
|
68
|
+
parents = len(starting_path.split(os.sep)) - 1
|
72
69
|
MODULE_ROOT = "aplos_nca_saas_sdk" # pylint: disable=c0103
|
73
70
|
paths: List[str] = []
|
74
71
|
for parent in range(parents):
|
@@ -92,9 +89,9 @@ class EnvironmentServices:
|
|
92
89
|
self, starting_path: str, file_name: str, raise_error_if_not_found: bool = True
|
93
90
|
) -> str | None:
|
94
91
|
"""Searches the project directory structure for a file"""
|
95
|
-
|
92
|
+
|
96
93
|
starting_path = starting_path or __file__
|
97
|
-
parents = len(starting_path.split(os.sep)) -1
|
94
|
+
parents = len(starting_path.split(os.sep)) - 1
|
98
95
|
paths: List[str] = []
|
99
96
|
for parent in range(parents):
|
100
97
|
try:
|
@@ -107,8 +104,7 @@ class EnvironmentServices:
|
|
107
104
|
except Exception as e:
|
108
105
|
print(f"Error {str(e)}")
|
109
106
|
print(f"Failed to find the file: {file_name}.")
|
110
|
-
|
111
|
-
|
107
|
+
self.__print_paths(paths)
|
112
108
|
|
113
109
|
if raise_error_if_not_found:
|
114
110
|
searched_paths = "\n".join(paths)
|
@@ -116,4 +112,10 @@ class EnvironmentServices:
|
|
116
112
|
f"Failed to locate environment file: {file_name} in: \n {searched_paths}"
|
117
113
|
)
|
118
114
|
|
119
|
-
return None
|
115
|
+
return None
|
116
|
+
|
117
|
+
def __print_paths(self, paths: List[str]):
|
118
|
+
"""Prints the paths"""
|
119
|
+
print("Searched Paths:")
|
120
|
+
for path in paths:
|
121
|
+
print(f"\t{path}")
|
aplos_nca_saas_sdk/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
aplos_nca_saas_sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
aplos_nca_saas_sdk/run_analysis_execution.py,sha256=H425VMCtxIX1vlWac0Wex2CJXVzQQwgv5AGNCpaVqN4,4446
|
3
|
-
aplos_nca_saas_sdk/version.py,sha256=
|
3
|
+
aplos_nca_saas_sdk/version.py,sha256=TIqMesG9fBSK0ycgCPC1gCQJEUrNSi7ilaGAXtBTY2M,172
|
4
4
|
aplos_nca_saas_sdk/integration_testing/example_main.py,sha256=9SXu8s7B4MLe53WDkr0GuMu8h4oyfmltYOH1XT_fqC4,2500
|
5
5
|
aplos_nca_saas_sdk/integration_testing/integration_test_base.py,sha256=ci3oOfz_McdDKGSrqOHF7F_vrvgTWo7HzxydNdPSHLs,2787
|
6
6
|
aplos_nca_saas_sdk/integration_testing/integration_test_configurations.py,sha256=GRDHSy0ZiAJtZQvL7uPlYG2oYVo9nWlP7hNZbNnrz7U,1900
|
@@ -42,11 +42,11 @@ aplos_nca_saas_sdk/sample_files/analysis_files/single_ev/config.json,sha256=lLnR
|
|
42
42
|
aplos_nca_saas_sdk/sample_files/analysis_files/single_ev/input.csv,sha256=qFSAlgLOmERsabMmp1X6PAZa-8yFthZlHacM_f7_AOY,6528
|
43
43
|
aplos_nca_saas_sdk/sample_files/analysis_files/single_ev/meta_data.json,sha256=p1KYOAe5Cl3rjtfF1t96oRG-QtFJJCo9otReRPNtvIk,447
|
44
44
|
aplos_nca_saas_sdk/utilities/commandline_args.py,sha256=iia2g0sdPfg637GV8PuddRNUAtg46GdmlDx4OJ0iS-s,10242
|
45
|
-
aplos_nca_saas_sdk/utilities/environment_services.py,sha256=
|
45
|
+
aplos_nca_saas_sdk/utilities/environment_services.py,sha256=xuwywZLIifWW2Eb-IbT4wQfXXiDdPXsPv70iViq4lhs,3833
|
46
46
|
aplos_nca_saas_sdk/utilities/environment_vars.py,sha256=aXheFXg6FVMaSYLe2LmoWRF5Ks9vwxDazO4XYb4vLjc,1132
|
47
47
|
aplos_nca_saas_sdk/utilities/file_utility.py,sha256=J4cN0zizcA-oZnALu1ICiImi_KcIzN1yQ0Bj0lfpeX4,1364
|
48
48
|
aplos_nca_saas_sdk/utilities/http_utility.py,sha256=DQ-ClLOmNoyPn5vhrSh4q-2wi4ViP_gplJD9asEKDM8,464
|
49
|
-
aplos_nca_saas_sdk-0.0.
|
50
|
-
aplos_nca_saas_sdk-0.0.
|
51
|
-
aplos_nca_saas_sdk-0.0.
|
52
|
-
aplos_nca_saas_sdk-0.0.
|
49
|
+
aplos_nca_saas_sdk-0.0.25.dist-info/METADATA,sha256=yFFnxMwG5Rmnr6N-LMn3X30m2ImjHdZqIDQ3NC1gIPQ,3792
|
50
|
+
aplos_nca_saas_sdk-0.0.25.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
51
|
+
aplos_nca_saas_sdk-0.0.25.dist-info/licenses/LICENSE,sha256=JQMpBrnqu_m2tISmyh6_dTgb8-m3HNnA51fuOh2TzkE,1076
|
52
|
+
aplos_nca_saas_sdk-0.0.25.dist-info/RECORD,,
|
File without changes
|
{aplos_nca_saas_sdk-0.0.24.dist-info → aplos_nca_saas_sdk-0.0.25.dist-info}/licenses/LICENSE
RENAMED
File without changes
|