pyfabric-dev 0.4.1__tar.gz → 0.5.0__tar.gz
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.
- {pyfabric_dev-0.4.1/pyfabric_dev.egg-info → pyfabric_dev-0.5.0}/PKG-INFO +2 -2
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/README.md +1 -1
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/__init__.py +1 -1
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/local_config.py +6 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/runners/notebook.py +8 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0/pyfabric_dev.egg-info}/PKG-INFO +2 -2
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyproject.toml +1 -1
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/LICENSE +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/NOTICE +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/cli/__init__.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/cli/generate_notebooks.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/cli/run_notebook.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/cli/run_pipeline.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/cli/run_tests_parallel.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/defs.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/fabric.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/functions.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/local_env.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/mock_notebookutils.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/runners/__init__.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/runners/hooks.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/runners/pipeline.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev/spark.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev.egg-info/SOURCES.txt +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev.egg-info/dependency_links.txt +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev.egg-info/entry_points.txt +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev.egg-info/requires.txt +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/pyfabric_dev.egg-info/top_level.txt +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/setup.cfg +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/tests/test_functions_merge.py +0 -0
- {pyfabric_dev-0.4.1 → pyfabric_dev-0.5.0}/tests/test_smoke.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyfabric-dev
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: Local development framework for Microsoft Fabric notebooks: source-of-truth Python, generated .Notebook artifacts, mocked Fabric APIs, parallel local testing.
|
|
5
5
|
Author-email: CashHero <engineering@cashhero.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -37,7 +37,7 @@ A development framework for [Microsoft Fabric](https://www.microsoft.com/fabric)
|
|
|
37
37
|
notebooks. Write plain Python modules in `src/`, generate Fabric `.Notebook`
|
|
38
38
|
artifacts from them, and run + test everything locally with mocked Fabric APIs.
|
|
39
39
|
|
|
40
|
-
> **Status:** `v0.
|
|
40
|
+
> **Status:** `v0.5.0`. APIs are stabilizing but pre-1.0; minor versions may break.
|
|
41
41
|
>
|
|
42
42
|
> **Disclaimer:** not affiliated with or endorsed by Microsoft.
|
|
43
43
|
|
|
@@ -4,7 +4,7 @@ A development framework for [Microsoft Fabric](https://www.microsoft.com/fabric)
|
|
|
4
4
|
notebooks. Write plain Python modules in `src/`, generate Fabric `.Notebook`
|
|
5
5
|
artifacts from them, and run + test everything locally with mocked Fabric APIs.
|
|
6
6
|
|
|
7
|
-
> **Status:** `v0.
|
|
7
|
+
> **Status:** `v0.5.0`. APIs are stabilizing but pre-1.0; minor versions may break.
|
|
8
8
|
>
|
|
9
9
|
> **Disclaimer:** not affiliated with or endorsed by Microsoft.
|
|
10
10
|
|
|
@@ -48,6 +48,12 @@ _default_base_dir_name = os.getenv("FABRIC_DEV_BASE_DIR_NAME", ".fabric_dev")
|
|
|
48
48
|
DEV_BASE_DIR = Path(
|
|
49
49
|
os.getenv("DEV_BASE_DIR", Path.home() / _default_base_dir_name / _worktree_hash)
|
|
50
50
|
)
|
|
51
|
+
# Export the resolved value so inlined notebook code (which can't import this
|
|
52
|
+
# module under Fabric) can detect local execution by reading os.environ —
|
|
53
|
+
# e.g. a cf_get_lakehouse_path that routes under DEV_BASE_DIR locally and
|
|
54
|
+
# /lakehouse/default in Fabric. setdefault preserves any value already set
|
|
55
|
+
# (e.g. the per-worker dir the parallel test runner injects).
|
|
56
|
+
os.environ.setdefault("DEV_BASE_DIR", str(DEV_BASE_DIR))
|
|
51
57
|
|
|
52
58
|
# Local lakehouse paths (stand in for /lakehouse/default in Fabric).
|
|
53
59
|
LOCAL_LAKEHOUSE_PATH = DEV_BASE_DIR / "lakehouse" / "default"
|
|
@@ -293,6 +293,14 @@ class NotebookRunner:
|
|
|
293
293
|
or self.hooks.common_functions_name in str(notebook_path)
|
|
294
294
|
)
|
|
295
295
|
|
|
296
|
+
# Ensure a Delta-enabled Spark session is available before any cell
|
|
297
|
+
# runs. Hook-less CLI runs inject no `_spark`, and a notebook's own
|
|
298
|
+
# ``getOrCreate()`` would otherwise yield a session without Delta
|
|
299
|
+
# wired in. Consumers that supply ``_spark`` via hooks are untouched.
|
|
300
|
+
if "_spark" not in self.globals_dict:
|
|
301
|
+
from pyfabric_dev.spark import create_spark_session
|
|
302
|
+
self.globals_dict["_spark"] = create_spark_session()
|
|
303
|
+
|
|
296
304
|
for i, cell in enumerate(cells, 1):
|
|
297
305
|
pending_db = getattr(self, "_pending_default_db", None)
|
|
298
306
|
if pending_db and "_spark" in self.globals_dict:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyfabric-dev
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: Local development framework for Microsoft Fabric notebooks: source-of-truth Python, generated .Notebook artifacts, mocked Fabric APIs, parallel local testing.
|
|
5
5
|
Author-email: CashHero <engineering@cashhero.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -37,7 +37,7 @@ A development framework for [Microsoft Fabric](https://www.microsoft.com/fabric)
|
|
|
37
37
|
notebooks. Write plain Python modules in `src/`, generate Fabric `.Notebook`
|
|
38
38
|
artifacts from them, and run + test everything locally with mocked Fabric APIs.
|
|
39
39
|
|
|
40
|
-
> **Status:** `v0.
|
|
40
|
+
> **Status:** `v0.5.0`. APIs are stabilizing but pre-1.0; minor versions may break.
|
|
41
41
|
>
|
|
42
42
|
> **Disclaimer:** not affiliated with or endorsed by Microsoft.
|
|
43
43
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pyfabric-dev"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.5.0"
|
|
8
8
|
description = "Local development framework for Microsoft Fabric notebooks: source-of-truth Python, generated .Notebook artifacts, mocked Fabric APIs, parallel local testing."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "Apache-2.0" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|