You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(confluence): make SVG processing optional to fix pycairo install… (#20115)
* feat(confluence): make SVG processing optional to fix pycairo installation issues
This change addresses installation failures on Debian/Ubuntu systems where
svglib 1.6.0 introduced breaking changes that require pycairo compilation,
which fails without gcc and cairo-dev system libraries.
Changes:
- Move svglib dependency to optional extras: pip install 'llama-index-readers-confluence[svg]'
- Add graceful degradation in process_svg() when dependencies unavailable
- Add FileType.SVG enum for custom parser support
- Add comprehensive migration guide with 4 different approaches
- Add unit tests for optional dependency behavior
- Add working examples for all SVG processing options
- Update README and CHANGELOG
Breaking Change:
SVG processing now requires explicit installation with [svg] extra.
Users who need SVG support should install with:
pip install 'llama-index-readers-confluence[svg]'
Backward Compatibility:
Maintained through graceful degradation - SVG attachments are skipped
with informative warnings when dependencies are not installed.
Fixes installation issues on systems without C compilers.
Tested: 3 tests passed, 1 skipped (expected when svglib not installed)
* Revert "feat(confluence): make SVG processing optional to fix pycairo installation issues"
This reverts commit ace7418.
* fix: pin svglib to >=1.5,<1.6
* bump: version to 0.5.0 for confluence reader
0 commit comments