Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove python 3.8 supporting #1269

Merged
merged 2 commits into from
Feb 19, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/code_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/health_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions .github/workflows/nightly_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/weekly_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
(<https://github.com/openvinotoolkit/datumaro/pull/1213>)
- Develop JsonSectionPageMapper in Rust API
Expand Down
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Installation
Dependencies
------------

- Python (3.8+)
- Python (3.9+)
- Optional: OpenVINO, TensorFlow, PyTorch, MxNet, Caffe, Accuracy Checker, Git

Installation steps
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/algorithms/test_RISE.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_rise_can_be_applied_to_classification_model(self):
self.assertEqual(saliency.shape[2], image_size[2])

class_indices = [244, 282] # bullmastiff and tabby of imagenet.class
rois = [[100, 20, 180, 100], [180, 160, 240, 260]] # location of bullmastiff and tabby
rois = [[90, 10, 190, 110], [170, 150, 250, 270]] # location of bullmastiff and tabby

for cls_idx in range(len(class_indices)):
norm_saliency = saliency[class_indices[cls_idx]]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
Loading