Skip to content

cleanup(_dev): sys.modules alias to scitex_dev, drop 6,661 LOC of stale forks#257

Open
ywatanabe1989 wants to merge 1 commit intodevelopfrom
cleanup/dev-consolidation
Open

cleanup(_dev): sys.modules alias to scitex_dev, drop 6,661 LOC of stale forks#257
ywatanabe1989 wants to merge 1 commit intodevelopfrom
cleanup/dev-consolidation

Conversation

@ywatanabe1989
Copy link
Copy Markdown
Owner

Summary

  • The umbrella's src/scitex/_dev/ had 10 stale fork files plus _mcp/, _rename/, and _dashboard/ subpackages that diverged from the standalone scitex-dev package.
  • scitex-dev is consistently newer (every standalone mtime ≥ every umbrella mtime) and ships canonical implementations.
  • Replace src/scitex/_dev/ with a 12-line sys.modules alias.
  • Net: +10 / -6,661 LOC.

Drift severity (resolved by this PR)

umbrella standalone drift
_rtd.py rtd.py 4 lines (cosmetic — ._ecosystem.ecosystem)
_ssh.py ssh.py 12
_github.py github.py 20
_sync_remote.py sync_remote.py 26
_test.py test_runner.py 30
_config.py config.py 53 (config dir moved to ~/.scitex/dev/, ECOSYSTEM canonical)
_versions.py versions.py 103 (additive)
_sync.py sync.py 135 (additive)
_ecosystem.py ecosystem.py 152 — see follow-up
_fix.py fix.py 472 (refactored into single-responsibility functions)

ECOSYSTEM follow-up (separate PR in scitex-dev repo)

The standalone scitex-dev/ecosystem.py added 5 packages (scitex-ui, app, audio, parallel, …) but dropped scitex-notification and scitex-plt that the umbrella still listed. Both dropped packages exist as real GitHub repos and remain bridged via sys.modules in scitex-python — they should be re-added to ECOSYSTEM. PR will follow against ywatanabe1989/scitex-dev.

Test plan

  • python -c "import scitex._dev as d; import scitex_dev as r; assert d is r" — passes
  • from scitex._dev import get_config_path, load_config, create_default_config, sync_all, sync_local, remote_diff, remote_commit, pull_local — all resolve
  • External callers (scitex.cli._dev_config_cli) only use top-level scitex_dev exports, unaffected

… LOC of stale forks

The umbrella's `src/scitex/_dev/` had 10 stale fork files plus _mcp/, _rename/,
and _dashboard/ subpackages that diverged from the standalone scitex-dev
package. scitex-dev is consistently newer (every standalone mtime ≥ every
umbrella mtime) and ships the canonical implementations.

Drift severity (umbrella ↔ standalone):
- _rtd.py ↔ rtd.py: 4 lines (cosmetic — `._ecosystem` → `.ecosystem`)
- _ssh.py ↔ ssh.py: 12, _github.py ↔ github.py: 20, _sync_remote: 26, _test ↔ test_runner: 30
- _config.py ↔ config.py: 53 (config dir moved to ~/.scitex/dev/, ECOSYSTEM is canonical)
- _versions.py ↔ versions.py: 103 (additive features)
- _sync.py ↔ sync.py: 135 (additive features)
- _ecosystem.py ↔ ecosystem.py: 152 (added 5 packages, dropped 2 — see follow-up)
- _fix.py ↔ fix.py: 472 (refactored into single-responsibility functions)

Replace src/scitex/_dev/ with a 12-line sys.modules alias.

Verified:
- `scitex._dev is scitex_dev` → True
- External callers in scitex.cli._dev_config_cli (`get_config_path`, `load_config`,
  `create_default_config`) still resolve via the alias.
- Skill doc `_skills/general/05_version-control_02_release-automation.md` references
  (`sync_all`, `sync_local`, `sync_tags`, `remote_diff`, `remote_commit`, `pull_local`)
  all available on scitex_dev top-level.

Net: +10 / -6,661 LOC.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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