From b38d90367be241acfb702303d8d4d3b7c315f528 Mon Sep 17 00:00:00 2001 From: Bogatenkova Anastasiya Date: Mon, 22 Jul 2024 16:06:10 +0300 Subject: [PATCH] TLDR-735 update dependencies (#17) --- .github/workflows/test_on_push.yaml | 2 +- CHANGELOG.md | 5 +++++ VERSION | 2 +- pyproject.toml | 13 ++++++++----- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test_on_push.yaml b/.github/workflows/test_on_push.yaml index 9688b3d..92f7100 100644 --- a/.github/workflows/test_on_push.yaml +++ b/.github/workflows/test_on_push.yaml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: | python3 -m pip install --upgrade pip - pip3 install .[dev,torch] + pip3 install .[dev,torch,doctr] - name: Run lint run: | pip3 install .[lint] diff --git a/CHANGELOG.md b/CHANGELOG.md index f72c2be..777ba3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Changelog ========= +v0.3.7 (2024-07-22) +------------------- +* Move `doctr` dependencies to a separate group +* Upgrade `numpy` version + v0.3.6 (2023-12-26) ------------------- * Fix image orientation correction in `SkewCorrector` diff --git a/VERSION b/VERSION index 53b61ec..ce4f5af 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.6 \ No newline at end of file +0.3.7 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 972fb8a..a2e1a8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,13 +27,10 @@ license = {file = "LICENSE"} dynamic = ["version"] requires-python = ">=3.6" dependencies = [ - "numpy>=1.22.0,<=1.26.0", + "numpy>=1.22.0,<2.0", "opencv-python>=4.5.5.64,<=4.6.0.66", - "pyclipper==1.3.0.post4", # for doctr "pytesseract>=0.3", - "scikit_learn>=1.0.2,<=1.3.1", - "shapely==2.0.1", # for doctr - "tqdm>=4", # for doctr + "scikit_learn>=1.0.2,<=1.3.1" ] [project.optional-dependencies] @@ -41,7 +38,13 @@ torch = [ "torch~=1.11.0", "torchvision~=0.12.0" ] +doctr = [ + "pyclipper==1.3.0.post4", + "shapely==2.0.1", + "tqdm>=4" +] dev = [ + "importlib_metadata==7.2.1", "build==0.10.0", "twine==4.0.2" ]