Skip to content

fix(packaging): drop bogus tool/ruff runtime deps, declare build-system#20

Merged
RatulMaharaj merged 1 commit into
mainfrom
fix/drop-bogus-runtime-deps
Jun 25, 2026
Merged

fix(packaging): drop bogus tool/ruff runtime deps, declare build-system#20
RatulMaharaj merged 1 commit into
mainfrom
fix/drop-bogus-runtime-deps

Conversation

@RatulMaharaj

Copy link
Copy Markdown
Collaborator

Problem

tool>=0.8.0 and ruff>=0.14.0 are declared as runtime dependencies but are not imported anywhere in the SDK:

  • ruff is a linter (dev-only at most).
  • tool is unrelated 2011 abandonware (GPL3; pulls argh/pydispatcher/pyyaml; sdist-only, no wheels).

The DataMaker desktop app builds its Python runner venv offline on Windows (uv sync --frozen --offline --no-index --find-links wheelhouse). These extra source-only deps must be built on the user's machine with no network. That build fails / the wheelhouse can't satisfy it, uv sync aborts, the runner venv is never created, and scenarios silently never run on Windows. macOS installs online and tolerated it.

Fix

  • Remove tool and ruff from runtime dependencies (neither is imported).
  • Add an explicit setuptools [build-system] and [tool.setuptools.packages.find] where = ["src"] so the wheel build no longer depends on the frontend's implicit backend / src-layout autodiscovery.

Verification

uv build --wheel produces a clean wheel:

  • Requires-Dist: only python-dotenv>=1.0.1 and requests>=2.32.3
  • datamaker/ package correctly included (datamaker/__init__.py, main.py, routes/*)

🤖 Generated with Claude Code

`tool>=0.8.0` and `ruff>=0.14.0` were listed as runtime dependencies but are
not imported anywhere in the SDK. `ruff` is a linter (dev-only at most) and
`tool` is unrelated 2011 abandonware (GPL3, argh/pydispatcher/pyyaml, sdist-only
with no wheels). Dragging them in forces extra source builds at install time,
which breaks the DataMaker desktop runner's *offline* venv build on Windows
(`uv sync --offline --no-index`) — scenarios then never run because the runner
venv is never created. macOS installs online and tolerated it.

- Remove `tool` and `ruff` from runtime dependencies (neither is imported).
- Add an explicit setuptools `[build-system]` + `[tool.setuptools.packages.find]`
  (where = src) so the wheel build no longer relies on the build frontend's
  implicit backend / src-layout autodiscovery.

Verified `uv build --wheel` produces a clean wheel whose only Requires-Dist are
python-dotenv and requests, with the `datamaker` package correctly included.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TMwtcrQZ2WSMZB7wZYM6za
@RatulMaharaj RatulMaharaj merged commit 411a077 into main Jun 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant