refactor(decorators): extract scitex.decorators into standalone scitex-decorators package#237
Open
ywatanabe1989 wants to merge 1 commit intodevelopfrom
Open
refactor(decorators): extract scitex.decorators into standalone scitex-decorators package#237ywatanabe1989 wants to merge 1 commit intodevelopfrom
ywatanabe1989 wants to merge 1 commit intodevelopfrom
Conversation
…x-decorators package The decorator library (numpy_fn / torch_fn / pandas_fn / xarray_fn / signal_fn type-converters, cache_disk / cache_disk_async / cache_mem caching, batching helpers, deprecated / not_implemented / preserve_doc / timeout, auto-order machinery) now lives in the standalone scitex-decorators package (https://github.com/ywatanabe1989/scitex-decorators). scitex.decorators/__init__.py becomes a sys.modules alias to scitex_decorators. The [decorators] extra is updated to depend on scitex-decorators[all]>=0.1.0 (joblib, torch, pandas, xarray as transitive opts). Decoupling notes (handled in scitex-decorators's initial commit): - scitex.config.get_paths() (used by cache_disk for cache_dir) becomes a best-effort try/except, falling back to SCITEX_CACHE_DIR or XDG_CACHE_HOME or ~/.cache/scitex-decorators/function_cache. - The lazy `__getattr__` re-exporting scitex.session was dropped (umbrella-only). 160/164 tests pass; the 4 failures are pre-existing upstream test bugs (mock.patch targets the lazy-imported _Memory at module scope where it doesn't exist — same failure in scitex-python source, unrelated to extraction). This unblocks scitex-linalg dropping its vendored _decorators copies in a follow-up PR. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extracts `scitex.decorators` into scitex-decorators v0.1.0. `scitex.decorators/init.py` becomes a `sys.modules` alias.
Follow-up
This unblocks `scitex-linalg` dropping its vendored `_decorators/` copies.
🤖 Generated with Claude Code