Skip to content

chore(deps): repoint scitex.media at scitex_etc.media (ADR-0001 executed)#317

Open
ywatanabe1989 wants to merge 3 commits into
mainfrom
chore/reroute-media-to-scitex-plt
Open

chore(deps): repoint scitex.media at scitex_etc.media (ADR-0001 executed)#317
ywatanabe1989 wants to merge 3 commits into
mainfrom
chore/reroute-media-to-scitex-plt

Conversation

@ywatanabe1989

@ywatanabe1989 ywatanabe1989 commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Summary

Repoint scitex.media from figrecipe.media (the previous PR draft's
target) back to scitex_etc.media — ADR-0001 executed (operator
decision, 2026-06-07).

scitex.media is media-reference detection/display for chat-pane /
terminal / markdown targets (render.classify, render.detect,
render.show, plus a CLI and an MCP server). It is not
figure-rendering. The previous draft routed it to figrecipe
(figure-recipe / scientific plotting), which is the wrong semantic
home. That draft is reverted in this PR; figrecipe PR #161 is now
closed.

Changes

  • src/scitex/__init__.py: _LazyModule("media", external=...)
    flipped from figrecipe.media back to scitex_etc.media.
  • src/scitex/re_export.py: _DEFAULT_BRANDED["media"] flipped
    from figrecipe.media to scitex_etc.media.
  • pyproject.toml:
    • Drop the figrecipe>=0.29.0 bumps at the three pin sites
      (top-level core deps, [plt] extra, [dev] extra). figrecipe
      goes back to its pre-PR pin >=0.16.0 (it remains a core dep
      via figrecipe.diagram etc.).
    • scitex-etc pin moves to >=0.3.0 at all 3 sites (top-level
      core deps, [etc] extra, [all,dev] aggregate).
    • [etc] extra drops the legacy readchar (it was only used by
      the retired wait_key surface).
  • docs/adr/0001-relocate-media-to-scitex-etc.md: status flipped
    from "Superseded (figrecipe routing)" to Executed — the ADR's
    original conclusion (scitex-etc) is what shipped.
  • CHANGELOG.md: rewritten Unreleased entry.

Merge sequencing

This PR cannot be merged until scitex-etc 0.3.0 is on PyPI
(otherwise the >=0.3.0 pin will fail to resolve). Track:

Test plan

  • CI green.
  • import scitex; scitex.media.render.classify("x.png") works
    end-to-end against scitex-etc>=0.3.0.
  • ADR-0001 reachable from the docs index and shows Executed.

I have read and agree to the SciTeX CLA.

Phase B of the scitex-gen full retirement wave. Operator-confirmed
reroute — supersedes ADR-0001 (which had media landing in scitex-etc).
Operator's view: media belongs with figure rendering (figrecipe), not
with the etc catch-all.

Changes:
- _DEFAULT_BRANDED["media"]: scitex_etc.media -> figrecipe.media.
- _LazyModule for `media` now external="figrecipe.media".
- figrecipe pinned to >=0.29.0 at all three sites (top-level core deps,
  [plt] extra, [dev] group). The new release ships the absorbed
  figrecipe.media submodule.
- scitex-etc==0.2.0 pin kept; scitex-etc develop will retarget 0.2.0 to
  drop media + wait_key (in a parallel PR) but still ship
  count_grids/yield_grids/search.
- docs/adr/0001-relocate-media-to-scitex-etc.md: status flipped to
  Superseded with a pointer to this PR.

I have read and agree to the SciTeX CLA.
Re-target the media re-export from `figrecipe.media` back to
`scitex_etc.media` — ADR-0001 executed (operator decision, 2026-06-07).

`scitex.media` is media-reference detection/display for chat-pane /
terminal / markdown targets (`render.classify`, `render.detect`,
`render.show`, plus a CLI and an MCP server). It is NOT
figure-rendering. The previous draft of this PR routed it to
**figrecipe** (figure-recipe / scientific plotting), which is the
wrong semantic home. That draft is reverted here; figrecipe PR #161
was closed.

Changes vs. previous PR draft:

- `src/scitex/__init__.py`: `_LazyModule("media", external=...)`
  flipped from `figrecipe.media` back to `scitex_etc.media`.
- `src/scitex/re_export.py`: `_DEFAULT_BRANDED["media"]` flipped from
  `figrecipe.media` to `scitex_etc.media`.
- `pyproject.toml`: drop the `figrecipe>=0.29.0` bumps at the three
  pin sites (top-level core deps, `[plt]` extra, `[dev]` extra).
  figrecipe goes back to `>=0.16.0` (the pre-PR pin); the
  scitex-etc pin moves to `>=0.3.0` at all 3 sites.
  [etc] extra also drops the `readchar` legacy dep.
- `docs/adr/0001-relocate-media-to-scitex-etc.md`: status flipped
  from "Superseded (figrecipe routing)" to "Executed" — the ADR's
  original conclusion (scitex-etc) is what shipped.
- CHANGELOG: rewritten Unreleased entry to reflect the
  scitex-etc routing.

Companion PRs:

- scitex-etc PR #24 — now scoped to drop only wait_key and to keep
  + promote `scitex_etc.media`; version bump 0.2.0 -> 0.3.0.
- figrecipe PR #161 — CLOSED (rejected re-route).

I have read and agree to the SciTeX CLA.
@ywatanabe1989 ywatanabe1989 changed the title chore(deps): reroute scitex.media to figrecipe (was scitex-etc) chore(deps): repoint scitex.media at scitex_etc.media (ADR-0001 executed) Jun 6, 2026
Per operator: no figrecipe references should remain in committed
files after the re-route to scitex-etc lands. Trim the CHANGELOG
narrative and the ADR status block to describe the executed
scitex-etc decision without naming the rejected alternative.

I have read and agree to the SciTeX CLA.
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