Skip to content

Commit 6cd1b70

Browse files
authored
Move core directories and files to databricks directory (#937)
## What changes are proposed in this pull request? This PR moves all the "core" directories and files into the "databricks" directory, which is meant to become the core library. This PR also comments out some tests(specifically tests in tests/integration/test_auth.py) that upload the current copy of the Python SDK to the workspace and use that copy to run some notebook code. The reason for commenting out these tests is that Databricks Connect depends on the Python SDK in the workspace. However, Due to the directory changes, the dependency path in Databricks Connect no longer matches this change. As SDK Mod represents a complete architectural change of the SDK Beta, we cannot simply use it in the DB connect, and we need to update it accordingly. ## How is this tested? Existing Tests. NO_CHANGELOG=true
1 parent edc5c3b commit 6cd1b70

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+272
-263
lines changed

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
databricks/sdk/__init__.py linguist-generated=true
2-
databricks/sdk/errors/overrides.py linguist-generated=true
3-
databricks/sdk/errors/platform.py linguist-generated=true
2+
databricks/sdk/databricks/errors/overrides.py linguist-generated=true
3+
databricks/sdk/databricks/errors/platform.py linguist-generated=true
44
databricks/sdk/service/apps.py linguist-generated=true
55
databricks/sdk/service/billing.py linguist-generated=true
66
databricks/sdk/service/catalog.py linguist-generated=true

.github/workflows/external-message.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
pull_request_target:
1010
types: [opened, reopened, synchronize]
1111
branches:
12-
- main
12+
- dev/sdk-mod
1313

1414
jobs:
1515
comment-on-pr:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ else
66
. .venv/bin/activate
77
endif
88
pip install '.[dev]'
9-
9+
1010
install:
1111
pip install .
1212

databricks/sdk/__init__.py

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/databricks/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

databricks/sdk/azure.py renamed to databricks/sdk/databricks/azure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Dict
22

3+
from ..service.provisioning import Workspace
34
from .oauth import TokenSource
4-
from .service.provisioning import Workspace
55

66

77
def add_workspace_id_header(cfg: "Config", headers: Dict[str, str]):
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)