Skip to content

Commit

Permalink
feat: Python 3.13 support (#841)
Browse files Browse the repository at this point in the history
* test: update results with new docling-core

Signed-off-by: Michele Dolfi <[email protected]>

* update all deps in the lock

Signed-off-by: Michele Dolfi <[email protected]>

* fix table in test results

Signed-off-by: Michele Dolfi <[email protected]>

* fix version for python3.13

Signed-off-by: Michele Dolfi <[email protected]>

* latest poetry version in CI

Signed-off-by: Michele Dolfi <[email protected]>

* activate py3.13 in CI

Signed-off-by: Michele Dolfi <[email protected]>

* update docs about python 3.13

Signed-off-by: Michele Dolfi <[email protected]>

* test with rapidocr only on python <3.13

Signed-off-by: Michele Dolfi <[email protected]>

---------

Signed-off-by: Michele Dolfi <[email protected]>
  • Loading branch information
dolfim-ibm authored Jan 30, 2025
1 parent bccb022 commit 4df085a
Show file tree
Hide file tree
Showing 6 changed files with 281 additions and 222 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ runs:
using: 'composite'
steps:
- name: Install poetry
run: pipx install poetry==1.8.3
run: pipx install poetry==1.8.5
shell: bash
- uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Install tesseract
Expand Down
23 changes: 1 addition & 22 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,7 @@ This is a collection of FAQ collected from the user questions on <https://github

### Is Python 3.13 supported?

Full support for Python 3.13 is currently waiting for [pytorch](https://github.com/pytorch/pytorch).

At the moment, no release has full support, but nightly builds are available. Docling was tested on Python 3.13 with the following steps:

```sh
# Create a python 3.13 virtualenv
python3.13 -m venv venv
source ./venv/bin/activate

# Install torch nightly builds, see https://pytorch.org/
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu

# Install docling
pip3 install docling

# Run docling
docling --no-ocr https://arxiv.org/pdf/2408.09869
```

_Note: we are disabling OCR since easyocr and the nightly torch builds have some conflicts._

Source: Issue [#136](https://github.com/DS4SD/docling/issues/136)
Python 3.13 is supported from Docling 2.18.0.


??? question "Install conflicts with numpy (python 3.13)"
Expand Down
Loading

0 comments on commit 4df085a

Please sign in to comment.