Skip to content

build: optimize dependencies management - #120

Merged
CaralHsi merged 27 commits into
MemTensor:devfrom
Ki-Seki:feat/dependency-resolve
Jul 19, 2025
Merged

build: optimize dependencies management#120
CaralHsi merged 27 commits into
MemTensor:devfrom
Ki-Seki:feat/dependency-resolve

Conversation

@Ki-Seki

@Ki-Seki Ki-Seki commented Jul 17, 2025

Copy link
Copy Markdown
Member

Description

Summary: optimize dependencies management

Detailed description

⚙️ Dependency Management Overhaul

  • Introduced @require_python_package decorator for dynamic imports of optional dependencies.
  • Migrated from Poetry-only setup to PEP 621 standard with structured optional dependency groups.
  • Removed deprecated configuration sections and refined version constraints.

🧪 CI/CD Pipeline Enhancements

  • Added workflows for Python release testing and multi-platform wheel builds (including macOS 13).
  • Implemented dependency validation to ensure no top-level optional imports.
  • Improved test clarity with comments and slow-test reporting.

📦 Installation & Documentation Updates

  • Updated installation instructions to reflect optional dependency usage.
  • Refined Windows install commands using PowerShell syntax.
  • Improved wheel and sdist installation steps for OS-specific handling.

🧹 Codebase Refactoring

  • Converted imports in modules like Qdrant, sentence-transformers, scikit-learn, and schedule to dynamic.
  • Added scripts/check_dependencies.py to validate dependency cleanliness.
  • Updated test mocks and paths to align with new import structure.

Fix: #21 #40 #111 #115

Docs Issue/PR: MemTensor/MemOS-Docs#20

Reviewer: @CaralHsi @J1awei-Yang @fridayL @tangg555

Checklist:

  • I have performed a self-review of my own code | 我已自行检查了自己的代码
  • I have commented my code in hard-to-understand areas | 我已在难以理解的地方对代码进行了注释
  • I have added tests that prove my fix is effective or that my feature works | 我已添加测试以证明我的修复有效或功能正常
  • I have created related documentation issue/PR in MemOS-Docs (if applicable) | 我已在 MemOS-Docs 中创建了相关的文档 issue/PR(如果适用)
  • I have linked the issue to this PR (if applicable) | 我已将 issue 链接到此 PR(如果适用)
  • I have mentioned the person who will review this PR | 我已提及将审查此 PR 的人

@Ki-Seki
Ki-Seki marked this pull request as ready for review July 17, 2025 21:37
Copilot AI review requested due to automatic review settings July 17, 2025 21:37

This comment was marked as resolved.

@Ki-Seki
Ki-Seki requested a review from Copilot July 18, 2025 03:59

This comment was marked as resolved.

@Ki-Seki Ki-Seki linked an issue Jul 18, 2025 that may be closed by this pull request

@CaralHsi CaralHsi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Looks good to me.

@CaralHsi
CaralHsi merged commit 9dc520d into MemTensor:dev Jul 19, 2025
20 checks passed
tianxing02 pushed a commit to tianxing02/MemOS that referenced this pull request Feb 24, 2026
* build: optimize dependencies management

* build: drop deprecated sections

* fix: correct typo and commands

* refactor: optimize pyproject.toml

* ci: add Python release testing workflow

* build: optimize version constraints and optional groups

* fix: update patch paths for SentenceChunker and QdrantClient in tests

* ci: enhance dependency and building test

* docs: update installation instructions

* fix: move ruff dependency to test group

* fix: specify encoding

* fix: refine wheel and sdist installation steps for OS-specific handling

* fix: update Windows installation commands to use PowerShell syntax

* chore: add comments for clarity in Python tests workflow

* fix: report slowest tests

* ci: support macos-13 as much as possible

* fix: macos-13 testing

* chore: add comments

* chore: update comments in pyproject.toml

* docs: support all platforms

* fix: poetry update

* fix: move scikit-learn and qdrant-client

* docs: clarify optional dependencies

---------

Co-authored-by: CaralHsi <caralhsi@gmail.com>
pull Bot pushed a commit to longduoduo112/MemOS that referenced this pull request Aug 18, 2026
…4b4d8b2

e4b4d8b2 Merge pull request MemTensor#157 from MemTensor/docs-sync/openclaw-cloud-auto-draft-release
28eb5f81 ci: automate cloud plugin draft releases
bf3f9b32 Merge pull request MemTensor#156 from MemTensor/fix/npm-publish-propagation
df4634d3 ci: validate release fixes before merge
0da6e0a9 ci: harden npm release propagation verification
a3176616 Merge pull request MemTensor#155 from EF1874/test
2ff7ec75 0.1.20
09714e85 Merge pull request MemTensor#153 from MemTensor/docs-sync/openclaw-cloud-main-source-release
d33d77fb ci: publish reviewed main versions without action PRs
066f330d Merge pull request MemTensor#152 from EF1874/test
50ae8cc5 Merge pull request MemTensor#149 from MemTensor/docs-sync/openclaw-cloud-release-quality
1b027080 ci: surface cloud workflow contract failures
31a17497 ci: isolate read-only release dry runs
8ebc5f02 ci: declare reusable publish secret
e941685b ci: minimize dry-run workflow privileges
6a8de049 ci: align prerelease and stable release channels
41201c0a ci: normalize cloud release evidence refs
8517603d ci: close cloud release failure recovery gaps
58d9efa3 ci: preserve reusable workflow token permissions
7a8cb8fd ci: pin cloud release recovery to npm source
56170ea5 0.1.20-beta.0
557c7269 Merge branch 'main' into test
4d993bcd ci: add auditable cloud release quality gates
066db592 feat: implement deduplication for agent_end snapshots and enhance API call timeout handling
8aee50e2 ci: require recovery mode for missing release metadata
ca0f2357 ci: suppress tag fetch warnings when local tags exist
b06dcf7d ci: avoid tag fetch warnings in originless tests
74d25dd5 ci: validate manual cloud release note categories
98549947 ci: cover publish confirmation guard dry runs
7c9830f4 ci: require confirmation for real cloud releases
34e0f7b2 ci: request candidate self-checks for cloud release notes
0dde13cc ci: harden cloud plugin release previews
fd4bad4c Merge pull request MemTensor#148 from MemTensor/docs-sync/openclaw-cloud-plugin-semver-previous-tag
c20bf70c fix: compare release tags with semver precedence
becc6f18 Merge pull request MemTensor#147 from MemTensor/docs-sync/openclaw-cloud-plugin-release
ef831b5d ci: validate telemetry credentials before packaging
2f43ff8c ci: resolve annotated release tags to commits
252e9608 ci: read release tag evidence from commits
7f29b992 ci: add cloud plugin release dry-run automation
d0f2cea7 ci: add OpenClaw cloud plugin release workflow
18cb8c7f Merge pull request MemTensor#140 from MemTensor/test
3b978092 Merge pull request MemTensor#135 from EF1874/test
0c2cd2a1 0.1.19
c4ab3104 0.1.19-beta.0
d053b0a2 feat: enhance OpenClaw system prompt detection and handling
e1e7fb0f 0.1.18
ce0a9e16 Merge pull request MemTensor#132 from Hun-ger/dev_gyh_260617
5152641c feat: add config UI update check
9b9e4ab2 Merge pull request MemTensor#131 from MemTensor/test
2af0cb2a Merge pull request MemTensor#129 from EF1874/test
3b0e068e 0.1.17
f7fd95e2 0.1.17-beta.0
70fb1840 feat: update MEMOS_SOURCE to append platform-specific suffixes and add corresponding tests
31d5f6a0 Merge branch 'test' of https://github.com/MemTensor/MemOS-Cloud-OpenClaw-Plugin into test
8b18998d Merge pull request MemTensor#127 from EF1874/test
e43380d8 Merge pull request MemTensor#123 from EF1874/test
ec9764d3 0.1.16
0d74ab93 0.1.16-beta.1
ed52b9c1 feat: extend system command detection to include 'clear' command and add internal prompt patterns for session management
00edb855 0.1.16-beta.0
9c773370 feat: enhance memory section handling by adding tool memory support and simplifying filtering logic
f7c1edb9 feat: refactor system event detection logic into dedicated functions for clarity and reuse
eb2bddc8 feat: add function to strip leading system notes from text input
bf25eb78 feat: implement system event detection in recall and agent end hooks to skip processing for heartbeat and command events
869217d7 Merge pull request MemTensor#122 from MemTensor/test
306841f2 feat: update recall hook registration to use before_prompt_build for newer OpenClaw hosts and add tests for version compatibility
7e8304a7 Merge pull request MemTensor#120 from EF1874/test
a63116fc 0.1.15
5d2bb28e 0.1.15-beta.0
b4af645e feat: add activation hooks to plugin configurations and improve hook policy handling in index.js
083b6e4b Merge pull request MemTensor#119 from MemTensor/test
3b5ddaa4 Merge pull request MemTensor#118 from EF1874/test
e931499a 0.1.14
1a86dc0d 0.1.14-beta.0
d0b88342 feat: add version detection and comparison utilities for host CLI
f7d19029 refactor: enhance configuration UI and improve session handling logic
d982aa0f chore: remove HOOK.md file and clean up package.json by eliminating unused hooks
03fcc33c Merge pull request MemTensor#115 from MemTensor/test
1e77054b 0.1.13
19e8eb38 0.1.13-beta.1
b32b493a Merge pull request MemTensor#113 from Hun-ger/fix_cloud_plugin_filter
23a48675 fix:fix filter params
de07588e 0.1.13-beta.0
4451c8a5 Merge pull request MemTensor#111 from Hun-ger/fix_cloud_plugin_filter
4c84c6c3 fix typos
9f663e50 Merge pull request MemTensor#110 from Hun-ger/fix_cloud_plugin_filter
92e66d30 feat: Add shared support knowledgebase for multi-agent reuse

git-subtree-dir: apps/MemOS-Cloud-OpenClaw-Plugin
git-subtree-split: e4b4d8b2ad3c50449a1b75f04eee985ebdb324a9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contrib:good-first-issue Good for newcomers | 适合新手

Projects

None yet

3 participants