Skip to content

Commit

Permalink
Drop Python 3.7 support in the SDK and CLI (cvat-ai#6636)
Browse files Browse the repository at this point in the history
Drop python 3.7 support due to eol
  • Loading branch information
SpecLad committed Aug 10, 2023
1 parent acfa87a commit ba94a8e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cvat-cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def parse_requirements(filename=BASE_REQUIREMENTS_FILE):
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
python_requires=">=3.8",
install_requires=BASE_REQUIREMENTS,
entry_points={
"console_scripts": [
Expand Down
3 changes: 1 addition & 2 deletions cvat-sdk/cvat_sdk/auto_annotation/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
# SPDX-License-Identifier: MIT

import abc
from typing import List, Sequence
from typing import List, Protocol, Sequence

import attrs
import PIL.Image
from typing_extensions import Protocol

import cvat_sdk.models as models

Expand Down
3 changes: 2 additions & 1 deletion cvat-sdk/cvat_sdk/core/proxies/model_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Dict,
Generic,
List,
Literal,
Optional,
Tuple,
Type,
Expand All @@ -21,7 +22,7 @@
overload,
)

from typing_extensions import Literal, Self
from typing_extensions import Self

from cvat_sdk.api_client.model_utils import IModelData, ModelNormal, to_json
from cvat_sdk.core.helpers import get_paginated_collection
Expand Down
3 changes: 1 addition & 2 deletions cvat-sdk/cvat_sdk/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
ContextManager,
Dict,
Iterator,
Literal,
Sequence,
TextIO,
Union,
overload,
)

from typing_extensions import Literal


def filter_dict(
d: Dict[str, Any], *, keep: Sequence[str] = None, drop: Sequence[str] = None
Expand Down
3 changes: 1 addition & 2 deletions cvat-sdk/cvat_sdk/pytorch/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
#
# SPDX-License-Identifier: MIT

from typing import FrozenSet
from typing import FrozenSet, TypedDict

import attrs
import attrs.validators
import torch
import torch.utils.data
from typing_extensions import TypedDict

from cvat_sdk.datasets.common import UnsupportedDatasetError
from cvat_sdk.pytorch.common import Target
Expand Down
2 changes: 1 addition & 1 deletion cvat-sdk/gen/generator-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ additionalProperties:
packageName: "cvat_sdk.api_client"
initRequiredVars: true
generateSourceCodeOnly: false
generatorLanguageVersion: '>=3.7'
generatorLanguageVersion: '>=3.8'
globalProperties:
generateAliasAsModel: true
apiTests: false
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/docs/api_sdk/cli/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To install an [official release of CVAT CLI](https://pypi.org/project/cvat-cli/)
pip install cvat-cli
```

We support Python versions 3.7 - 3.9.
We support Python versions 3.8 and higher.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion site/content/en/docs/api_sdk/sdk/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ To use the PyTorch adapter, request the `pytorch` extra:
pip install "cvat-sdk[pytorch]"
```

We support Python versions 3.7 - 3.9.
We support Python versions 3.8 and higher.

## Usage

Expand Down

0 comments on commit ba94a8e

Please sign in to comment.