Skip to content

Commit b3f9144

Browse files
authored
Merge pull request #15 from krrome/bug-reduce-min-req-numpy
drop numpy min requirement to 1.19.5. Other minor changes.
2 parents e3bee97 + f8432fe commit b3f9144

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ classifiers = [
1919
]
2020
dependencies = [
2121
"docling>=2.53.0",
22-
"numpy>=2.0.2",
22+
"numpy>=1.19.5",
2323
"pymupdf>=1.26.4",
24-
"scikit-learn>=1.6.1",
24+
"scikit-learn>=1.6.0",
2525
]
2626

2727
[project.urls]
File renamed without changes.
File renamed without changes.

tests/test_metadata_toc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_convert():
2222
3. Conclusion
2323
"""
2424

25-
source = sample_path / "sample_document.pdf" # document per local path or URL
25+
source = sample_path / "sample_document_hierarchical.pdf" # document per local path or URL
2626
converter = DocumentConverter()
2727
result = converter.convert(source)
2828
hbm = HierarchyBuilderMetadata(result)

tests/test_postprocessing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def compare(res_text, fn):
2121

2222

2323
def test_result_postprocessor_textpdf_no_bookmarks():
24-
source = sample_path / "sample_document_no_bookmarks.pdf" # document per local path or URL
24+
source = sample_path / "sample_document_hierarchical_no_bookmarks.pdf" # document per local path or URL
2525
converter = DocumentConverter()
2626
result = converter.convert(source)
2727
ResultPostprocessor(result).process()
@@ -47,7 +47,7 @@ def test_result_postprocessor_textpdf_no_bookmarks():
4747

4848

4949
def test_result_postprocessor_textpdf():
50-
source = sample_path / "sample_document.pdf" # document per local path or URL
50+
source = sample_path / "sample_document_hierarchical.pdf" # document per local path or URL
5151
converter = DocumentConverter()
5252
result = converter.convert(source)
5353
ResultPostprocessor(result).process()
@@ -76,7 +76,7 @@ def test_result_postprocessor_textpdf():
7676

7777

7878
def test_result_postprocessor_textpdf_stream():
79-
source_path = sample_path / "sample_document.pdf" # document per local path or URL
79+
source_path = sample_path / "sample_document_hierarchical.pdf" # document per local path or URL
8080
with source_path.open("rb") as fh:
8181
source = DocumentStream(name=source_path.name, stream=BytesIO(fh.read()))
8282
converter = DocumentConverter()
@@ -120,7 +120,7 @@ def test_result_postprocessor_textpdf_stream():
120120

121121

122122
def test_result_postprocessor_textpdf_string():
123-
source_path = sample_path / "sample_document.pdf" # document per local path or URL
123+
source_path = sample_path / "sample_document_hierarchical.pdf" # document per local path or URL
124124
source = str(source_path)
125125
converter = DocumentConverter()
126126
result = converter.convert(source)

tests/test_toc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@
19281928

19291929

19301930
def compare(res_text, i):
1931-
p = results_path / f"sample_{i}.txt"
1931+
p = results_path / f"hierarch_header_sample_{i}.txt"
19321932
if p.exists():
19331933
assert res_text == p.read_text()
19341934
else:

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)