8000 fix(scripts): call dlt's workspace_deps() instead of parsing WORKSPACE_DEPS by burnash · Pull Request #44 · dlt-hub/dlthub-init · GitHub
[go: up one dir, main page]

Skip to content

fix(scripts): call dlt's workspace_deps() instead of parsing WORKSPACE_DEPS - #44

Merged
burnash merged 2 commits into
develfrom
fix/sync-workspace-deps-callable
Nov 5, 2026
Merged

burnash merged 2 commits into
develfrom
fix/sync-workspace-deps-callable

Conversation

@burnash
@burnash burnash commented Nov 5, 2026
Copy link
Copy Markdown
Contributor

Overview

dlt 1.32.0 turned WORKSPACE_DEPS into a computed workspace_deps(), so the sync script could not read it from the wheel. Resolves #43.

< 8000 h2 dir="auto">Changes
  • The script runs uv run --isolated --with dlt==<locked> and calls workspace_deps(). Falls back to the constant for older dlt.
  • WORKSPACE_DEPS wording updated in Makefile, workflows, CONTRIBUTING.

Tests

  • Unit tests cover the probe, parsing and uv failures.

@burnash burnash self-assigned this Nov 5, 2026
@burnash burnash added the bug Something isn't working label Nov 5, 2026
…E_DEPS

dlt 1.32.0 replaced the literal with a computed function. Run it via
`uv run --isolated --with dlt==<locked>`; fall back to the constant for
older dlt.

Closes #43
@burnash
burnash force-pushed the fix/sync-workspace-deps-callable branch from 1f51ab3 to dfdc25e Compare November 5, 2026 13:57
@burnash
burnash requested review from anuunchin and a balanced review from Copilot November 5, 2026 15:27
Copilot AI left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Tests mock both dlt and subprocess, leaving real import-time dependencies and compatibility unverified until smoke checks against dlt 1.31.0 and 1.32.0 can run in an environment that supports installing them.

No open issues 🎉

What changed in this PR

Updates scaffold dependency syncing for dlt 1.32.0’s computed workspace_deps() API, addressing #43 while retaining compatibility with older dlt versions.

Changes:

  • Replaces wheel parsing with an isolated uv probe using the scaffold’s locked dlt version, with a fallback to WORKSPACE_DEPS.
  • Adds unit tests for the probe, output validation, and subprocess failures.
  • Updates documentation, workflow labels, and generated messages to use the new API name.
File Description
tests/​test_scripts.py Tests callable probing, legacy fallback, parsing, and execution errors.
scripts/​sync_workspace_deps.py Replaces wheel parsing with an isolated runtime probe.
Makefile Updates dependency-sync target descriptions.
CONTRIBUTING.md Updates dependency-sync guidance for the callable API.
CHANGELOG.md Records the dlt 1.32.0 compatibility fix.
.github/​workflows/​ci.yml Updates the dependency-check step label.
.github/​workflows/​bump-dlthub-init.yml Updates comments, messages, and generated acceptance criteria.
.github/​workflows/​bump-changelog-entry.cjs Uses the callable name in generated changelog entries.

Review effort: Balanced

Comment thread scripts/sync_workspace_deps.py Resolved
@burnash
burnash force-pushed the fix/sync-workspace-deps-callable branch from 90ead1c to 8569387 Compare November 5, 2026 16:17
@burnash
burnash requested a review from anuunchin November 5, 2026 16:18
@burnash
burnash merged commit 1aa14db into devel Nov 5, 2026
8 checks passed
@burnash
burnash deleted the fix/sync-workspace-deps-callable branch November 5, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scaffold-deps-sync breaks on dlt 1.32.0: WORKSPACE_DEPS is now a function

3 participants

0