diff --git a/.circleci/config.yml b/.circleci/config.yml index 1d86e802..955b6c6b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,7 +33,7 @@ jobs: - checkout - run: name: install dependencies - command: pip3 install --user . + command: pip3 install --user '.[dev]' - run: name: run tests command: python -m pytest diff --git a/pyoaev/backends/protocol.py b/pyoaev/backends/protocol.py index 72cee226..f8a1e0fa 100644 --- a/pyoaev/backends/protocol.py +++ b/pyoaev/backends/protocol.py @@ -1,15 +1,9 @@ import abc -import sys -from typing import Any, Dict, Optional, Union +from typing import Any, Dict, Optional, Protocol, Union import requests from requests_toolbelt.multipart.encoder import MultipartEncoder # type: ignore -if sys.version_info >= (3, 8): - from typing import Protocol -else: - from typing_extensions import Protocol - class BackendResponse(Protocol): @abc.abstractmethod diff --git a/pyproject.toml b/pyproject.toml index 9c376a80..9fe7adb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,41 +25,27 @@ classifiers = [ "Topic :: Software Development :: Libraries :: Python Modules" ] dependencies = [ - "datefinder (>=0.7.3,<0.8)", "pika (>=1.3.0,<1.4.0)", - "python-magic (>=0.4.27,<0.5); sys_platform == 'linux' or sys_platform == 'darwin'", - "python-magic-bin (>=0.4.14,<0.5); sys_platform == 'win32'", "python_json_logger (>=3.3.0,<3.4.0)", "PyYAML (>=6.0,<6.1)", "pydantic (>=2.13.3,<2.14.0)", "pydantic-settings (>=2.14.0,<2.15.0)", "requests (>=2.33.0,<2.34.0)", - "setuptools (>=82.0.1,<82.1.0)", - "cachetools (>=5.5.0,<5.6.0)", - "prometheus-client (>=0.22.1,<0.23.0)", - "opentelemetry-api (>=1.35.0,<1.36.0)", - "opentelemetry-sdk (>=1.35.0,<1.36.0)", - # OpenAEV, "requests-toolbelt (>=1.0.0,<1.1.0)", - "dataclasses-json (>=0.6.4,<0.7.0)", "thefuzz (>=0.22,<0.23)", - # Ugly fix, we need to fix the CI to use: [dev] - "pytest (>=9.0.0,<9.1.0)", - "pytest-bdd (>=8.1.0, <8.2.0)", ] [project.optional-dependencies] dev = [ "black (>=26.3.1,<26.4.0)", "build (>=1.4.4,<1.5.0)", + "coverage>=7.13.5", "isort (>=8.0.1,<8.1.0)", - "types-pytz (>=2025.2.0.20250326,<2025.3.0.0)", "pre-commit (>=4.6.0,<4.7.0)", - "types-python-dateutil (>=2.9.0,<2.10.0)", - "wheel (>=0.47.0,<0.48.0)", - "coverage>=7.13.5", "pytest (>=9.0.0,<9.1.0)", "pytest-bdd (>=8.1.0, <8.2.0)", + "setuptools (>=82.0.1,<82.1.0)", + "wheel (>=0.47.0,<0.48.0)", ] doc = [ "autoapi (>=2.0.1,<2.1.0)",