From 53a8e67338bca5b9f7c0c13f5128c45428fb8f0b Mon Sep 17 00:00:00 2001 From: Yunchu Lee Date: Mon, 19 Feb 2024 15:13:56 +0900 Subject: [PATCH] remove python 3.8 supporting --- .github/workflows/code_scan.yml | 2 +- .github/workflows/health_check.yml | 2 -- .github/workflows/linter.yml | 2 +- .github/workflows/nightly_check.yml | 4 +--- .github/workflows/pr_check.yml | 6 +++--- .github/workflows/weekly_check.yml | 6 +++--- CHANGELOG.md | 2 ++ contributing.md | 2 +- .../docs/get-started/quick-start-guide/installation.rst | 2 +- pyproject.toml | 6 +++--- setup.py | 2 +- tox.ini | 2 +- 12 files changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/code_scan.yml b/.github/workflows/code_scan.yml index f0a34f14fc..05e1921092 100644 --- a/.github/workflows/code_scan.yml +++ b/.github/workflows/code_scan.yml @@ -38,7 +38,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.10 - name: Install dependencies run: python -m pip install tox - name: Bandit Scanning diff --git a/.github/workflows/health_check.yml b/.github/workflows/health_check.yml index 305ab30adb..d1231f94b9 100644 --- a/.github/workflows/health_check.yml +++ b/.github/workflows/health_check.yml @@ -16,8 +16,6 @@ jobs: fail-fast: false matrix: include: - - python-version: "3.8" - tox-env-py: "38" - python-version: "3.9" tox-env-py: "39" - python-version: "3.10" diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 216e5e9b3a..a07c0d393d 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -7,7 +7,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.10 - uses: pre-commit/action@v3.0.0 with: extra_args: --all-files diff --git a/.github/workflows/nightly_check.yml b/.github/workflows/nightly_check.yml index 259ab22f47..854f2ee504 100644 --- a/.github/workflows/nightly_check.yml +++ b/.github/workflows/nightly_check.yml @@ -12,14 +12,12 @@ jobs: fail-fast: false matrix: os: ['ubuntu-20.04', 'windows-2022'] - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.9', '3.10', '3.11'] include: - os: "ubuntu-20.04" tox-env-os: "lin" - os: "windows-2022" tox-env-os: "win" - - python-version: "3.8" - tox-env-py: "38" - python-version: "3.9" tox-env-py: "39" - python-version: "3.10" diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml index 4066995945..4dee98421f 100644 --- a/.github/workflows/pr_check.yml +++ b/.github/workflows/pr_check.yml @@ -30,10 +30,10 @@ jobs: fail-fast: false matrix: os: ['ubuntu-20.04', 'windows-2022'] - python-version: ['3.8'] + python-version: ['3.10'] include: - - python-version: "3.8" - tox-env-py: "38" + - python-version: "3.10" + tox-env-py: "310" - os: "ubuntu-20.04" tox-env-os: "lin" - os: "windows-2022" diff --git a/.github/workflows/weekly_check.yml b/.github/workflows/weekly_check.yml index 51d8835c3e..be94a5d3d0 100644 --- a/.github/workflows/weekly_check.yml +++ b/.github/workflows/weekly_check.yml @@ -20,10 +20,10 @@ jobs: fail-fast: false matrix: os: ['ubuntu-20.04', 'windows-2022'] - python-version: ['3.8'] + python-version: ['3.10'] include: - - python-version: "3.8" - tox-env-py: "38" + - python-version: "3.10" + tox-env-py: "310" - os: "ubuntu-20.04" tox-env-os: "lin" - os: "windows-2022" diff --git a/CHANGELOG.md b/CHANGELOG.md index 2992162d3c..5d16bef309 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## \[Unreleased\] ### New features +- Changed supported Python version range (>=3.9, <=3.11) + (<>) - Support MMDetection COCO format () - Develop JsonSectionPageMapper in Rust API diff --git a/contributing.md b/contributing.md index 82dc1d6a09..deaec8deb1 100644 --- a/contributing.md +++ b/contributing.md @@ -12,7 +12,7 @@ For feature requests and issues, please feel free to create a GitHub Issue in th ## Development and pull requests ### Prerequisites -- Python (3.8+) +- Python (3.9+) To set up your development environment, please follow the steps below. diff --git a/docs/source/docs/get-started/quick-start-guide/installation.rst b/docs/source/docs/get-started/quick-start-guide/installation.rst index f979de7b42..0c29ec1757 100644 --- a/docs/source/docs/get-started/quick-start-guide/installation.rst +++ b/docs/source/docs/get-started/quick-start-guide/installation.rst @@ -4,7 +4,7 @@ Installation Dependencies ------------ -- Python (3.8+) +- Python (3.9+) - Optional: OpenVINO, TensorFlow, PyTorch, MxNet, Caffe, Accuracy Checker, Git Installation steps diff --git a/pyproject.toml b/pyproject.toml index afbf54f401..c40f9e4e9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ omit = [ [tool.cibuildwheel] # reference docs - https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip -build = "cp38-*_x86_64 cp39-*_x86_64 cp310-*_x86_64 cp311-*_x86_64 cp38-*_amd64 cp39-*_amd64 cp310-*_amd64 cp311-*_amd64" +build = "cp39-*_x86_64 cp310-*_x86_64 cp311-*_x86_64 cp39-*_amd64 cp310-*_amd64 cp311-*_amd64" skip = "*macos*" [tool.cibuildwheel.linux] @@ -63,7 +63,7 @@ skip_empty = true [tool.black] line-length = 100 -target-version = ['py38'] +target-version = ['py310'] [tool.ruff] # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default. @@ -118,7 +118,7 @@ line-length = 120 dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" # minimum target version -target-version = "py38" +target-version = "py39" # ignore-init-module-imports = true diff --git a/setup.py b/setup.py index ed8ba230cf..e321b6e6fa 100644 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ def parse_requirements(filename=CORE_REQUIREMENTS_FILE): "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], - python_requires=">=3.8", + python_requires=">=3.9", install_requires=CORE_REQUIREMENTS, extras_require={ "tf": ["tensorflow"], diff --git a/tox.ini b/tox.ini index 58bb360281..363b705b0d 100644 --- a/tox.ini +++ b/tox.ini @@ -67,7 +67,7 @@ commands = rm {toxworkdir}/requirements.txt -[testenv:tests-py{38,39,310,311}-{lin,win}] +[testenv:tests-py{39,310,311}-{lin,win}] commands = python -m pytest -v --csv={toxworkdir}/results-{envname}.csv {posargs:tests}