diff --git a/CHANGELOG.md b/CHANGELOG.md index c59b6b1f..ce1c29aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ Changelog ========= -[1.1.6](../../releases/tag/v1.1.6) - Unreleased +[1.2.0](../../releases/tag/v1.2.0) - Unreleased ----------------------------------------------- +### Added + +- Added support for Python 3.12 + ### Internal changes - Fix lint error (E721) in unit tests (for instance checks use `isinstance()`) diff --git a/pyproject.toml b/pyproject.toml index 4bced603..972ae628 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "apify" -version = "1.1.6" +version = "1.2.0" description = "Apify SDK for Python" readme = "README.md" license = {text = "Apache Software License"} @@ -25,13 +25,13 @@ requires-python = ">=3.8" dependencies = [ "aiofiles >= 22.1.0", "aioshutil >= 1.0", - "apify-client ~= 1.4.0", - "apify-shared ~= 1.0.2", + "apify-client ~= 1.5.0", + "apify-shared ~= 1.0.4", "colorama >= 0.4.6", "cryptography >= 39.0.0", "httpx >= 0.24.1", "psutil >= 5.9.5", - "pyee >= 9.0.0", + "pyee >= 11.0.1", "sortedcollections >= 2.0.1", "typing-extensions >= 4.1.0", "websockets >= 10.1", @@ -39,35 +39,35 @@ dependencies = [ [project.optional-dependencies] dev = [ - "autopep8 ~= 2.0.2", - "build ~= 0.10.0", - "filelock ~= 3.12.0", - "flake8 ~= 6.0.0", - "flake8-bugbear ~= 23.5.9", - "flake8-commas ~= 2.1.0", - "flake8-comprehensions ~= 3.12.0", + "autopep8 ~= 2.0.4", + "build ~= 1.0.3", + "filelock ~= 3.12.4", + "flake8 ~= 6.1.0", + "flake8-bugbear ~= 23.9.16", + "flake8-commas ~= 2.1.0; python_version < '3.12'", + "flake8-comprehensions ~= 3.14.0", "flake8-datetimez ~= 20.10.0", "flake8-docstrings ~= 1.7.0", "flake8-encodings ~= 0.5.0", - "flake8-isort ~= 6.0.0", - "flake8-noqa ~= 1.3.1", + "flake8-isort ~= 6.1.0", + "flake8-noqa ~= 1.3.1; python_version < '3.12'", "flake8-pytest-style ~= 1.7.2", - "flake8-quotes ~= 3.3.2", - "flake8-simplify ~= 0.20.0", + "flake8-quotes ~= 3.3.2; python_version < '3.12'", + "flake8-simplify ~= 0.21.0", "flake8-unused-arguments ~= 0.0.13", "isort ~= 5.12.0", - "mypy ~= 1.3.0", + "mypy ~= 1.5.1", "pep8-naming ~= 0.13.3", - "pre-commit ~= 3.3.2", + "pre-commit ~= 3.4.0", "pydoc-markdown ~= 4.8.2", - "pytest ~= 7.3.1", + "pytest ~= 7.4.2", "pytest-asyncio ~= 0.21.0", "pytest-only ~= 2.0.0", - "pytest-timeout ~= 2.1.0", + "pytest-timeout ~= 2.2.0", "pytest-xdist ~= 3.3.1", "respx ~= 0.20.1", "twine ~= 4.0.2", - "types-aiofiles ~= 23.1.0.3", + "types-aiofiles ~= 23.2.0.0", "types-colorama ~= 0.4.15.11", "types-psutil ~= 5.9.5.12", ] diff --git a/tests/unit/test_event_manager.py b/tests/unit/test_event_manager.py index 77067574..cc2c09e1 100644 --- a/tests/unit/test_event_manager.py +++ b/tests/unit/test_event_manager.py @@ -322,7 +322,7 @@ async def send_platform_event(event_name: ActorEventTypes, data: Any = None) -> if data: message['data'] = data - websockets.broadcast(connected_ws_clients, json.dumps(message)) # type: ignore[attr-defined] + 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.