datatailr 0.1.23__py3-none-any.whl → 0.1.24__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 datatailr might be problematic. Click here for more details.
- datatailr/scheduler/base.py +13 -6
- {datatailr-0.1.23.dist-info → datatailr-0.1.24.dist-info}/METADATA +1 -1
- {datatailr-0.1.23.dist-info → datatailr-0.1.24.dist-info}/RECORD +7 -7
- {datatailr-0.1.23.dist-info → datatailr-0.1.24.dist-info}/WHEEL +0 -0
- {datatailr-0.1.23.dist-info → datatailr-0.1.24.dist-info}/entry_points.txt +0 -0
- {datatailr-0.1.23.dist-info → datatailr-0.1.24.dist-info}/licenses/LICENSE +0 -0
- {datatailr-0.1.23.dist-info → datatailr-0.1.24.dist-info}/top_level.txt +0 -0
datatailr/scheduler/base.py
CHANGED
|
@@ -96,13 +96,20 @@ class EntryPoint:
|
|
|
96
96
|
# Find the absolute path to the repository and then the relative path to the module.
|
|
97
97
|
# This will be used in the creation of the code 'bundle' when building the image.
|
|
98
98
|
module_spec = importlib.util.find_spec(func.__module__)
|
|
99
|
-
if
|
|
100
|
-
|
|
99
|
+
if not module_spec:
|
|
100
|
+
raise RepoValidationError(f"Cannot find spec for {self.module_name}")
|
|
101
|
+
# Resolve the filesystem directory of the top package for module_name
|
|
102
|
+
if module_spec.submodule_search_locations:
|
|
103
|
+
# It's a package; get its directory
|
|
104
|
+
package_root = os.path.abspath(
|
|
105
|
+
next(iter(module_spec.submodule_search_locations))
|
|
106
|
+
)
|
|
107
|
+
elif module_spec.origin:
|
|
108
|
+
# It's a module; use its containing directory
|
|
109
|
+
package_root = os.path.abspath(os.path.dirname(module_spec.origin))
|
|
101
110
|
else:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
for _ in range(len(module_parts) - 1):
|
|
105
|
-
package_root = os.path.dirname(package_root)
|
|
111
|
+
raise RepoValidationError(f"Cannot resolve path for {self.module_name}")
|
|
112
|
+
|
|
106
113
|
path_to_repo = run_shell_command(
|
|
107
114
|
f"cd {package_root} && git rev-parse --show-toplevel"
|
|
108
115
|
)[0]
|
|
@@ -19,15 +19,15 @@ datatailr/sbin/datatailr_run_excel.py,sha256=Gr_QZgqJrwgRVD9_o4v-2tbvU-QMvNHL7xU
|
|
|
19
19
|
datatailr/sbin/datatailr_run_service.py,sha256=R8eNLN2SGnMtyfLy3vq9isUHr3dRzeBqESTquNK9Iho,1156
|
|
20
20
|
datatailr/scheduler/__init__.py,sha256=qydHYVtEP6SUWd2CQ6FRdTdRWNz3SbYPJy4FK_wOvMk,1772
|
|
21
21
|
datatailr/scheduler/arguments_cache.py,sha256=3sKXg4_baeZNo8jvSGTFK6zT5RM1TKMpH-UVS1CLn20,6014
|
|
22
|
-
datatailr/scheduler/base.py,sha256=
|
|
22
|
+
datatailr/scheduler/base.py,sha256=cOTtXOloxjfJknWr3W1VEbpwGB5llrDreCot7Zv1Hkk,15015
|
|
23
23
|
datatailr/scheduler/batch.py,sha256=JBSiFNwv2X2BkBocz7ddVmwND6MFds978f0Ok5f8aUc,16782
|
|
24
24
|
datatailr/scheduler/batch_decorator.py,sha256=LqL1bsupWLn-YEQUvFJYae7R3ogrL5-VodyiiScrkRw,5806
|
|
25
25
|
datatailr/scheduler/constants.py,sha256=5WWTsfwZ_BA8gVDOTa2AQX9DJ0NzfaWgtY3vrODS2-8,606
|
|
26
26
|
datatailr/scheduler/schedule.py,sha256=0XJJen2nL1xplRs0Xbjwgq3T-0bFCOrJzkSALdio998,3741
|
|
27
27
|
datatailr/scheduler/utils.py,sha256=up6oR2iwe6G52LkvgfO394xchXgCYNjOMGRQW3e8PQk,1082
|
|
28
|
-
datatailr-0.1.
|
|
29
|
-
datatailr-0.1.
|
|
30
|
-
datatailr-0.1.
|
|
31
|
-
datatailr-0.1.
|
|
32
|
-
datatailr-0.1.
|
|
33
|
-
datatailr-0.1.
|
|
28
|
+
datatailr-0.1.24.dist-info/licenses/LICENSE,sha256=ikKP4_O-UD_b8FuNdKmbzTb6odd0JX085ZW_FAPN3VI,1066
|
|
29
|
+
datatailr-0.1.24.dist-info/METADATA,sha256=1J1Cn8HJ1FeZs8PRADqYfqmY3kPioKXhOD2yiMihVXI,5146
|
|
30
|
+
datatailr-0.1.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
31
|
+
datatailr-0.1.24.dist-info/entry_points.txt,sha256=YqXfk2At-olW4PUSRkqvy_O3Mbv7uTKCCPuAAiz3Qbg,312
|
|
32
|
+
datatailr-0.1.24.dist-info/top_level.txt,sha256=75gntW0X_SKpqxLL6hAPipvpk28GAhJBvoyqN_HohWU,10
|
|
33
|
+
datatailr-0.1.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|