This repository was archived by the owner on Sep 17, 2025. It is now read-only.
Reorganize dependencies into core and optional groups #152
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.
Description
This PR reorganizes the dependencies in
pyproject.tomlto separate core functionality from optional features, significantly reducing the installation footprint for users who only need basic file editing capabilities.Related Issue
Addresses the need to organize dependencies into different groups as discussed - separating core editor functionality from optional document processing and indexing features.
Motivation and Context
The current dependency structure requires all users to install heavy dependencies like pandas, matplotlib, document processing libraries, and LLaMA Index components, even if they only need basic file editing functionality. This creates unnecessary bloat and potential conflicts.
Key Changes:
Core dependencies (9 packages): Only includes packages needed for basic
file_editorfunctionalitybinaryornot,cachetools,charset-normalizer,pydantic(editor core)tree-sitter,tree-sitter-language-pack,grep-ast,flake8(linting)whatthepatch(diff operations)Optional dependency groups:
documents(14 packages): Document processing (PDF, DOCX, PPTX, audio, YouTube transcripts)indexing(6 packages): Code indexing and analysis (pandas, matplotlib, networkx, etc.)llama(3 packages): LLaMA Index integrationall: All optional dependencies combinedBackward compatibility: Made
MarkdownConverterimport optional with helpful error messagesHow Has This Been Tested?
Installation Options:
Does this PR introduce a breaking change?
No breaking changes. This maintains full backward compatibility:
Benefits:
@xingyaoww can click here to continue refining the PR
Fix #153