Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.10", "3.11"]
python: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v7
- if: matrix.os == 'macos-latest'
Expand All @@ -22,8 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
# MacOS issue ref.: https://github.com/actions/setup-python/issues/855 & https://github.com/actions/setup-python/issues/865
python-version: ${{ matrix.os == 'macos-latest' && matrix.python == '3.10' && '3.11' || matrix.python }}
python-version: ${{ matrix.python }}
architecture: x64
- name: Cache python modules
uses: actions/cache@v6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- if: matrix.os == 'macos-latest'
name: Install MacOS prerequisites
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
python-version: "3.11"
architecture: x64
- name: check status
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/public_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
# Must match version at https://www.python.org/ftp/python/
python: ["3.10.13", "3.11.8", "3.12.7"]
python: ["3.11.15", "3.12.9", "3.13.14"]
# NOTE: Since docTR 1.0.0 torch doesn't exist as a seperate install option it's only to keep the naming convention
framework: ["torch", "torch,viz,html,contrib"]

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
python-version: "3.11"
architecture: x64
- name: Cache python modules
uses: actions/cache@v6
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/references.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand All @@ -145,7 +145,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand All @@ -171,7 +171,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand All @@ -232,7 +232,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand All @@ -259,7 +259,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down Expand Up @@ -293,7 +293,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down Expand Up @@ -325,7 +325,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand All @@ -351,7 +351,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down Expand Up @@ -385,7 +385,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down Expand Up @@ -417,7 +417,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10", "3.11"]
python: ["3.11", "3.12"]
steps:
- if: matrix.os == 'macos-latest'
name: Install MacOS prerequisites
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10", "3.11"]
python: ["3.11", "3.12"]
steps:
- if: matrix.os == 'macos-latest'
name: Install MacOS prerequisites
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10", "3.11"]
python: ["3.11", "3.12"]
steps:
- if: matrix.os == 'macos-latest'
name: Install MacOS prerequisites
Expand Down Expand Up @@ -108,14 +108,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.10", "3.11"]
python: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
# MacOS issue ref.: https://github.com/actions/setup-python/issues/855 & https://github.com/actions/setup-python/issues/865
python-version: ${{ matrix.os == 'macos-latest' && matrix.python == '3.10' && '3.11' || matrix.python }}
python-version: ${{ matrix.python }}
architecture: x64
- name: Run environment collection script
run: python scripts/collect_env.py
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand All @@ -31,7 +31,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.10"]
python: ["3.11"]
steps:
- uses: actions/checkout@v7
- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: no-commit-to-branch
args: ['--branch', 'main']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
rev: v0.15.20
hooks:
- id: ruff
args: [ --fix ]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# Install Python
ARG PYTHON_VERSION=3.10.13
ARG PYTHON_VERSION=3.11.15

RUN wget http://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz && \
tar -zxf Python-$PYTHON_VERSION.tgz && \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ This project is supported by [t2k GmbH](https://www.text2knowledge.de/de),

### Prerequisites

Python 3.10 (or higher) and [pip](https://pip.pypa.io/en/stable/) are required to install docTR.
Python 3.11 (or higher) and [pip](https://pip.pypa.io/en/stable/) are required to install docTR.

### Latest release

Expand Down Expand Up @@ -268,7 +268,7 @@ docker run -it --gpus all ghcr.io/mindee/doctr:torch-py3.9.18-2024-10 bash
The Docker images for docTR follow a specific tag nomenclature: `<deps>-py<python_version>-<doctr_version|YYYY-MM>`. Here's a breakdown of the tag structure:

- `<deps>`: `torch`, `torch-viz-html-contrib`.
- `<python_version>`: `3.9.18`, `3.10.13` or `3.11.8`.
- `<python_version>`: `3.10.13`, `3.11.8`, etc.
- `<doctr_version>`: a tag >= `v0.11.0`
- `<YYYY-MM>`: e.g. `2014-10`

Expand Down
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10-slim
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11-slim

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = ["Mindee <contact@mindee.com>"]
license = "Apache-2.0"

[tool.poetry.dependencies]
python = ">=3.10,<3.13"
python = ">=3.11,<3.13"
python-doctr = {git = "https://github.com/mindee/doctr.git", branch = "main" }
# Fastapi: minimum version required to avoid pydantic error
# cf. https://github.com/tiangolo/fastapi/issues/4168
Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting_started/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Installation
************

This library requires `Python <https://www.python.org/downloads/>`_ 3.10 or higher.
This library requires `Python <https://www.python.org/downloads/>`_ 3.11 or higher.


Via Python Package
Expand Down
2 changes: 1 addition & 1 deletion doctr/utils/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_colors(num_colors: int) -> list[tuple[float, float, float]]:
hue = i / 360.0
lightness = (50 + np.random.rand() * 10) / 100.0
saturation = (90 + np.random.rand() * 10) / 100.0
colors.append(colorsys.hls_to_rgb(hue, lightness, saturation)) # type: ignore[arg-type]
colors.append(colorsys.hls_to_rgb(hue, lightness, saturation))
return colors


Expand Down
Loading
Loading