Skip to content

Commit 582c209

Browse files
authored
TLDR-915 update to python3.10; update to ubuntu 22.04 (#541)
Note: without build trusted torch
1 parent 84c8a63 commit 582c209

File tree

10 files changed

+12
-10
lines changed

10 files changed

+12
-10
lines changed

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python ${{ matrix.python-version }}
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: '3.9'
18+
python-version: '3.10'
1919

2020
- name: Install dependencies
2121
run: |

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python ${{ matrix.python-version }}
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: '3.9'
18+
python-version: '3.10'
1919

2020
- name: Check version correctness
2121
run: |

.github/workflows/test_labeling.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Set up Python ${{ matrix.python-version }}
2929
uses: actions/setup-python@v2
3030
with:
31-
python-version: '3.9'
31+
python-version: '3.10'
3232
- name: Run tests for labeling
3333
run: |
3434
test="true" docker compose -f labeling/docker-compose.yml up --build --exit-code-from test

.github/workflows/test_on_push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Set up Python ${{ matrix.python-version }}
2929
uses: actions/setup-python@v2
3030
with:
31-
python-version: '3.9'
31+
python-version: '3.10'
3232
- name: Run lint
3333
run: |
3434
python3 -m pip install --upgrade pip

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG REPOSITORY="docker.io"
2-
FROM dedocproject/dedoc_p3.9_base:version_2023_08_28
2+
FROM dedocproject/dedoc_jammy_p3.10_base:version_2025_09_11
33
ARG LANGUAGES=""
44
RUN for lang in $LANGUAGES; do apt install -y tesseract-ocr-$(echo $lang | tr "_" "-"); done
55

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ If you need to change some application settings, you may update `config.py` acco
162162
If you don't want to use docker for running the application, it's possible to run dedoc locally.
163163
However, it isn't suitable for any operating system (`Ubuntu 20+` is recommended) and
164164
there may be not enough machine resources for its work.
165-
You should have `python` (`python3.8`, `python3.9` are recommended) and `pip` installed.
165+
You should have `python` (`python3.9`, `python3.10` are recommended) and `pip` installed.
166166
Installation instructions via pip are available [here](https://dedoc.readthedocs.io/en/latest/getting_started/installation.html#install-dedoc-using-pip).
167167

168168
## Install and run dedoc from sources

dedoc/readers/pdf_reader/pdf_image_reader/table_recognizer/table_extractors/concrete_extractors/onepage_table_extractor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def __build_structure_table_from_tree(self, tables_tree: TableTree, table_type:
8989
table.cells = self.handle_cells(table.cells, table_type)
9090
tables.append(table)
9191
except Exception as ex:
92-
self.logger.warning(f"Warning: unrecognized table into page {self.page_number}. {ex}")
92+
if self.config.get("debug_mode", False):
93+
self.logger.warning(f"Warning: unrecognized table into page {self.page_number}. {ex}")
9394
return tables
9495

9596
def handle_cells(self, cells: List[List[Cell]], table_type: str = "") -> List[List[Cell]]:

docs/.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.9"
6+
python: "3.10"
77
apt_packages:
88
- libmagic1
99

docs/source/getting_started/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Install dedoc using pip
5959
If you don't want to use docker for running the application, it's possible to run dedoc locally.
6060
However, it isn't suitable for any operating system (Ubuntu 20+ is recommended) and
6161
there may be not enough machine's resources for its work.
62-
You should have ``python`` (python3.8, python3.9 are recommended) and ``pip`` installed.
62+
You should have ``python`` (python3.9, python3.10 are recommended) and ``pip`` installed.
6363

6464
.. _install_packages:
6565

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ classifiers=[
1717
"License :: OSI Approved :: Apache Software License",
1818
"Programming Language :: Python :: 3.8",
1919
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
2021
"Programming Language :: Python :: 3 :: Only",
2122
]
2223

@@ -25,7 +26,7 @@ keywords = ["document analysis", "logical structure extraction", "OCR", "deep le
2526
readme="README.md"
2627
license = {file = "LICENSE.txt"}
2728
dynamic = ["dependencies", "version"]
28-
requires-python = ">=3.6"
29+
requires-python = ">=3.8"
2930

3031
[tool.setuptools.dynamic]
3132
version = {file = "VERSION"}

0 commit comments

Comments
 (0)