diff --git a/pyproject.toml b/pyproject.toml index 7df2985a..1c929edc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,41 +46,31 @@ keywords = [ # https://github.com/apify/apify-sdk-python/pull/154. [tool.poetry.dependencies] python = "^3.9" -aiofiles = "^22.1.0" -aioshutil = "^1.0" -apify-client = "^1.7.1" -apify-shared = "^1.1.2" -colorama = "^0.4.6" -crawlee = "^0.3.0" -cryptography = "^42.0.4" -httpx = "^0.27.0" -lazy-object-proxy = "^1.10.0" -psutil = "^6.0.0" -pyee = "^11.0.0" -scrapy = { version = "^2.11.0", optional = true } -sortedcollections = "^2.0.0" -typing-extensions = "^4.1.0" -websockets = "^10.1" +apify-client = ">=1.7.1" +apify-shared = ">=1.1.2" +crawlee = ">=0.3.0" +cryptography = ">=42.0.0" +httpx = ">=0.27.0" +lazy-object-proxy = ">=1.10.0" +scrapy = { version = ">=2.11.0", optional = true } +typing-extensions = ">=4.1.0" +websockets = ">=10.0" [tool.poetry.group.dev.dependencies] -build = "^1.2.0" -filelock = "^3.15.0" -mypy = "^1.11.0" -pre-commit = "^3.8.0" -pydoc-markdown = "^4.8.0" -pytest = "^8.3.0" -pytest-asyncio = "^0.24.0" -pytest-cov = "^5.0.0" -pytest-only = "^2.1.0" -pytest-timeout = "^2.3.0" -pytest-xdist = "^3.6.0" -respx = "^0.21.0" -ruff = "^0.6.0" -setuptools = "^74.0.0" # setuptools are used by pytest but not explicitly required -twine = "^5.1.0" -types-aiofiles = "^24.1.0.20240626" -types-colorama = "^0.4.15.20240311" -types-psutil = "^6.0.0.20240621" +build = "~1.2.0" +filelock = "~3.15.0" +mypy = "~1.11.0" +pre-commit = "~3.8.0" +pydoc-markdown = "~4.8.0" +pytest = "~8.3.0" +pytest-asyncio = "~0.24.0" +pytest-cov = "~5.0.0" +pytest-only = "~2.1.0" +pytest-timeout = "~2.3.0" +pytest-xdist = "~3.6.0" +respx = "~0.21.0" +ruff = "~0.6.0" +setuptools = "~74.0.0" # setuptools are used by pytest but not explicitly required [tool.poetry.extras] scrapy = ["scrapy"] @@ -191,7 +181,7 @@ warn_unused_ignores = true exclude = [] [[tool.mypy.overrides]] -module = ['scrapy', 'scrapy.*', 'sortedcollections', 'lazy_object_proxy'] +module = ['scrapy', 'scrapy.*', 'lazy_object_proxy'] ignore_missing_imports = true [tool.coverage.report] diff --git a/tests/unit/test_event_manager.py b/tests/unit/test_event_manager.py index 48d139b9..9161709d 100644 --- a/tests/unit/test_event_manager.py +++ b/tests/unit/test_event_manager.py @@ -167,7 +167,7 @@ async def send_platform_event(event_name: Event, data: Any = None) -> None: if data: message['data'] = data - websockets.broadcast(connected_ws_clients, json.dumps(message)) # type: ignore + websockets.broadcast(connected_ws_clients, json.dumps(message)) async with websockets.server.serve(handler, host='localhost') as ws_server: # When you don't specify a port explicitly, the websocket connection is opened on a random free port.