mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
feat: Python 3.13 support (#841)
* test: update results with new docling-core Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * update all deps in the lock Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * fix table in test results Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * fix version for python3.13 Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * latest poetry version in CI Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * activate py3.13 in CI Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * update docs about python 3.13 Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * test with rapidocr only on python <3.13 Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> --------- Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
@@ -59,15 +59,18 @@ def test_e2e_conversions():
|
||||
EasyOcrOptions(),
|
||||
TesseractOcrOptions(),
|
||||
TesseractCliOcrOptions(),
|
||||
RapidOcrOptions(),
|
||||
EasyOcrOptions(force_full_page_ocr=True),
|
||||
TesseractOcrOptions(force_full_page_ocr=True),
|
||||
TesseractOcrOptions(force_full_page_ocr=True, lang=["auto"]),
|
||||
TesseractCliOcrOptions(force_full_page_ocr=True),
|
||||
TesseractCliOcrOptions(force_full_page_ocr=True, lang=["auto"]),
|
||||
RapidOcrOptions(force_full_page_ocr=True),
|
||||
]
|
||||
|
||||
# rapidocr is only available for Python >=3.6,<3.13
|
||||
if sys.version_info < (3, 13):
|
||||
engines.append(RapidOcrOptions())
|
||||
engines.append(RapidOcrOptions(force_full_page_ocr=True))
|
||||
|
||||
# only works on mac
|
||||
if "darwin" == sys.platform:
|
||||
engines.append(OcrMacOptions())
|
||||
|
||||
Reference in New Issue
Block a user