0.25.0: drop EPUB and ebooklib (AGPL) - #9
Merged
Merged
Conversation
EPUB → Markdown ran on ebooklib (AGPL-3.0). XGEN keeps no AGPL dependency, and EPUB is not a format XGEN supports, so the whole path goes rather than being rewritten. - doc_to_md: _convert_epub / _sanitize_epub_manifest / _epub_image_candidates removed; .epub is no longer a native format. - simple / tools.convert / SourceFormat / project_manager: no .epub entry. An .epub source now fails with "Unsupported source format" instead of the old silent empty Markdown (ebooklib missing → "" → grounding silently empty). - Hosted entry points (MCP server, generate/edit jobs) map unknown MIME types to pdf; application/epub+zip is refused before that, so an EPUB upload is not misread as a broken PDF. - ebooklib removed from dependencies; docs/READMEs updated. - hwp_convert comments cite the published HWP 5.0 spec (rev 1.3 table 6 control characters, table 26 border widths) instead of pyhwp — the values are the spec's. - tests: every entry refuses EPUB; pyproject may not list pymupdf / ebooklib / pyhwp / xgen-contextifier again. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Why
EPUB → Markdown ran on ebooklib (AGPL-3.0). XGEN keeps no AGPL dependency (PyMuPDF went in 0.24.0), and EPUB is not a format XGEN supports — so the path is removed, not rewritten.
What changes
doc_to_md: EPUB converter and its manifest/image helpers removed;.epubis no longer a native format.simple._convert_requests,tools.convert,SourceFormat,project_manager: no.epub. An.epubsource now raisesUnsupported source formatinstead of the old silent empty Markdown.pdf;application/epub+zipis refused before that so an EPUB upload is not misread as a broken PDF.ebooklibremoved from dependencies; docs and READMEs updated.hwp_convertcomments cite the published HWP 5.0 spec (rev 1.3 table 6 control characters, table 26 border widths) instead of pyhwp — the values are the spec's.Tests
tests/unit/test_epub_removed.py: every entry refuses EPUB;pyprojectmay not list pymupdf / ebooklib / pyhwp / xgen-contextifier again..[dev], ebooklib not installed).🤖 Generated with Claude Code