Skip to content

fix(umbrella): make scitex.ml/scitex.genai canonical, scitex.ai legacy#286

Open
ywatanabe1989 wants to merge 1 commit into
mainfrom
fix/umbrella-ml-genai-canonical
Open

fix(umbrella): make scitex.ml/scitex.genai canonical, scitex.ai legacy#286
ywatanabe1989 wants to merge 1 commit into
mainfrom
fix/umbrella-ml-genai-canonical

Conversation

@ywatanabe1989
Copy link
Copy Markdown
Owner

The umbrella had the rename direction reversed: scitex.ai was wired as canonical (external=scitex_ai, a package that no longer exists), while the new scitex.ml was demoted to a deprecated alias pointing back at it. So scitex.ml.X wrongly warned "use scitex.ai instead" and resolved to the missing scitex_ai.

Actual history: scitex.ai → standalone scitex-ai → renamed scitex-ml (+ scitex-genai split out). This wires ml → scitex_ml and genai → scitex_genai as canonical lazy re-exports and redirects legacy ai → ml with a DeprecationWarning.

  • _EXTERNAL_REEXPORTS: ai/scitex_aiml/scitex_ml + genai/scitex_genai
  • lazy modules: aiml + genai
  • _DEPRECATED_MODULE_ALIASES: "ml":"ai""ai":"ml"
  • __all__: aiml + genai
  • tests: drop the deleted scitex_ai identity peer; drop dead scitex.ai.* skips

Verified: scitex.ml.* clean (no warning); scitex.genai resolves; scitex.ai warns "use scitex.ml instead" and is scitex.ml; from scitex.ml import X and import scitex.ml both resolve.

🤖 Generated with Claude Code

The umbrella had the rename direction reversed: scitex.ai was wired as
canonical (external=scitex_ai, a package that no longer exists), while
the new scitex.ml was demoted to a deprecated alias pointing back at it.
Accessing scitex.ml therefore wrongly warned "use scitex.ai instead" and
resolved to the missing scitex_ai package.

The actual history is scitex.ai -> scitex-ai -> scitex-ml (+ scitex-genai
split out). Wire ml -> scitex_ml and genai -> scitex_genai as canonical
lazy re-exports; redirect the legacy ai -> ml with a DeprecationWarning.

- _EXTERNAL_REEXPORTS: ai/scitex_ai -> ml/scitex_ml + genai/scitex_genai
- lazy modules: ai -> ml + genai
- _DEPRECATED_MODULE_ALIASES: "ml":"ai" -> "ai":"ml"
- __all__: ai -> ml + genai
- refresh stale shim-dir comment (dirs never existed; aliases are __getattr__)
- tests: drop deleted scitex_ai identity peer; drop dead scitex.ai.* skips

Verified: scitex.ml.* clean (no warning), scitex.genai resolves,
scitex.ai warns "use scitex.ml instead" and is scitex.ml; from scitex.ml
import X and import scitex.ml both resolve. ml/genai identity-peer tests pass.
Base automatically changed from develop to main May 30, 2026 21:28
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