Skip to content

Commit

Permalink
Add support for Python 3.12 (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Oct 23, 2023
1 parent 4d4f1ad commit 2678dca
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 22 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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()`)
Expand Down
40 changes: 20 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"}
Expand All @@ -25,49 +25,49 @@ 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",
]

[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",
]
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_event_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2678dca

Please sign in to comment.