truefoundry 0.10.0__py3-none-any.whl → 0.10.1__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 truefoundry might be problematic. Click here for more details.
- truefoundry/deploy/builder/builders/tfy_spark_buildpack/dockerfile_template.py +4 -2
- truefoundry/deploy/builder/builders/tfy_spark_buildpack/tfy_execute_notebook.py +6 -1
- {truefoundry-0.10.0.dist-info → truefoundry-0.10.1.dist-info}/METADATA +1 -1
- {truefoundry-0.10.0.dist-info → truefoundry-0.10.1.dist-info}/RECORD +6 -6
- {truefoundry-0.10.0.dist-info → truefoundry-0.10.1.dist-info}/WHEEL +0 -0
- {truefoundry-0.10.0.dist-info → truefoundry-0.10.1.dist-info}/entry_points.txt +0 -0
|
@@ -24,9 +24,11 @@ COPY ${requirements_path} ${requirements_destination_path}
|
|
|
24
24
|
% if python_packages_install_command is not None:
|
|
25
25
|
RUN ${package_manager_config_secret_mount} ${python_packages_install_command}
|
|
26
26
|
% endif
|
|
27
|
+
ENV PYTHONDONTWRITEBYTECODE=1
|
|
28
|
+
ENV IPYTHONDIR=/tmp/.ipython
|
|
29
|
+
RUN groupadd --system --gid 1001 spark && useradd --system --uid 1001 --gid spark --no-create-home spark
|
|
27
30
|
USER spark
|
|
28
31
|
COPY . /app
|
|
29
|
-
WORKDIR /app
|
|
30
32
|
"""
|
|
31
33
|
|
|
32
34
|
_POST_USER_TEMPLATE = """
|
|
@@ -45,7 +47,7 @@ RUN apt update && \
|
|
|
45
47
|
+ _POST_USER_TEMPLATE
|
|
46
48
|
)
|
|
47
49
|
|
|
48
|
-
ADDITIONAL_PIP_PACKAGES = ["papermill>=2.6.0,<2.7.0"]
|
|
50
|
+
ADDITIONAL_PIP_PACKAGES = ["papermill>=2.6.0,<2.7.0", "ipykernel>=6.0.0,<7.0.0"]
|
|
49
51
|
|
|
50
52
|
|
|
51
53
|
def generate_pip_install_command(
|
|
@@ -9,7 +9,7 @@ import sys
|
|
|
9
9
|
import papermill as pm
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
def execute_notebook(notebook_path, output_path="output.ipynb", parameters=None):
|
|
12
|
+
def execute_notebook(notebook_path, output_path="/tmp/output.ipynb", parameters=None):
|
|
13
13
|
"""
|
|
14
14
|
Execute a Jupyter notebook using papermill.
|
|
15
15
|
|
|
@@ -31,6 +31,11 @@ def execute_notebook(notebook_path, output_path="output.ipynb", parameters=None)
|
|
|
31
31
|
parameters=parameters,
|
|
32
32
|
# TODO(gw): Replace with kernel name for venv
|
|
33
33
|
kernel_name="python3",
|
|
34
|
+
# Log cell by cell execution output
|
|
35
|
+
# TODO(gw): Output logs to a file instead, so that they aren't merged with the container's logs
|
|
36
|
+
log_output=True,
|
|
37
|
+
stdout_file=sys.stdout,
|
|
38
|
+
stderr_file=sys.stderr,
|
|
34
39
|
)
|
|
35
40
|
print(f"Successfully executed notebook: {notebook_path}")
|
|
36
41
|
|
|
@@ -66,8 +66,8 @@ truefoundry/deploy/builder/builders/tfy_notebook_buildpack/dockerfile_template.p
|
|
|
66
66
|
truefoundry/deploy/builder/builders/tfy_python_buildpack/__init__.py,sha256=_fjqHKn80qKi68SAMMALge7_A6e1sTsQWichw8uoGIw,2025
|
|
67
67
|
truefoundry/deploy/builder/builders/tfy_python_buildpack/dockerfile_template.py,sha256=f4l3fH21E2b8W3-JotMKc0AdPcCxV7LRPxxYJa7z_UQ,9134
|
|
68
68
|
truefoundry/deploy/builder/builders/tfy_spark_buildpack/__init__.py,sha256=NEPlM6_vTVxp4ITa18B8DBbgYCn1q5d8be21lbgu5oY,2888
|
|
69
|
-
truefoundry/deploy/builder/builders/tfy_spark_buildpack/dockerfile_template.py,sha256=
|
|
70
|
-
truefoundry/deploy/builder/builders/tfy_spark_buildpack/tfy_execute_notebook.py,sha256=
|
|
69
|
+
truefoundry/deploy/builder/builders/tfy_spark_buildpack/dockerfile_template.py,sha256=dAmWgAHcNdBLSedpz18r5r7n9hdXKV-PB7yFPMdaoww,5990
|
|
70
|
+
truefoundry/deploy/builder/builders/tfy_spark_buildpack/tfy_execute_notebook.py,sha256=PKJWNlW76dRw_XtFkRnqpzwBGuXU4w6_kIJkgoBmZ5Q,1975
|
|
71
71
|
truefoundry/deploy/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
72
72
|
truefoundry/deploy/cli/commands/__init__.py,sha256=qv818jxqSAygJ3h-6Ul8t-5VOgR_UrSgsVtNCl3e5G0,1408
|
|
73
73
|
truefoundry/deploy/cli/commands/apply_command.py,sha256=DmXmKVokkauyKIiJDtErTwbJ5_LvQeJbTQsG5BjyKpo,2427
|
|
@@ -381,7 +381,7 @@ truefoundry/workflow/remote_filesystem/__init__.py,sha256=LQ95ViEjJ7Ts4JcCGOxMPs
|
|
|
381
381
|
truefoundry/workflow/remote_filesystem/logger.py,sha256=em2l7D6sw7xTLDP0kQSLpgfRRCLpN14Qw85TN7ujQcE,1022
|
|
382
382
|
truefoundry/workflow/remote_filesystem/tfy_signed_url_client.py,sha256=xcT0wQmQlgzcj0nP3tJopyFSVWT1uv3nhiTIuwfXYeg,12342
|
|
383
383
|
truefoundry/workflow/remote_filesystem/tfy_signed_url_fs.py,sha256=nSGPZu0Gyd_jz0KsEE-7w_BmnTD8CVF1S8cUJoxaCbc,13305
|
|
384
|
-
truefoundry-0.10.
|
|
385
|
-
truefoundry-0.10.
|
|
386
|
-
truefoundry-0.10.
|
|
387
|
-
truefoundry-0.10.
|
|
384
|
+
truefoundry-0.10.1.dist-info/METADATA,sha256=J8pSO4FMyMfmb9L455FOPmNPdMzlQ7ZfgHBGltsuJo0,2505
|
|
385
|
+
truefoundry-0.10.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
386
|
+
truefoundry-0.10.1.dist-info/entry_points.txt,sha256=xVjn7RMN-MW2-9f7YU-bBdlZSvvrwzhpX1zmmRmsNPU,98
|
|
387
|
+
truefoundry-0.10.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|