Skip to content

Commit 2678dca

Browse files
authored
Add support for Python 3.12 (#121)
1 parent 4d4f1ad commit 2678dca

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

Diff for: CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
Changelog
22
=========
33

4-
[1.1.6](../../releases/tag/v1.1.6) - Unreleased
4+
[1.2.0](../../releases/tag/v1.2.0) - Unreleased
55
-----------------------------------------------
66

7+
### Added
8+
9+
- Added support for Python 3.12
10+
711
### Internal changes
812

913
- Fix lint error (E721) in unit tests (for instance checks use `isinstance()`)

Diff for: pyproject.toml

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "apify"
3-
version = "1.1.6"
3+
version = "1.2.0"
44
description = "Apify SDK for Python"
55
readme = "README.md"
66
license = {text = "Apache Software License"}
@@ -25,49 +25,49 @@ requires-python = ">=3.8"
2525
dependencies = [
2626
"aiofiles >= 22.1.0",
2727
"aioshutil >= 1.0",
28-
"apify-client ~= 1.4.0",
29-
"apify-shared ~= 1.0.2",
28+
"apify-client ~= 1.5.0",
29+
"apify-shared ~= 1.0.4",
3030
"colorama >= 0.4.6",
3131
"cryptography >= 39.0.0",
3232
"httpx >= 0.24.1",
3333
"psutil >= 5.9.5",
34-
"pyee >= 9.0.0",
34+
"pyee >= 11.0.1",
3535
"sortedcollections >= 2.0.1",
3636
"typing-extensions >= 4.1.0",
3737
"websockets >= 10.1",
3838
]
3939

4040
[project.optional-dependencies]
4141
dev = [
42-
"autopep8 ~= 2.0.2",
43-
"build ~= 0.10.0",
44-
"filelock ~= 3.12.0",
45-
"flake8 ~= 6.0.0",
46-
"flake8-bugbear ~= 23.5.9",
47-
"flake8-commas ~= 2.1.0",
48-
"flake8-comprehensions ~= 3.12.0",
42+
"autopep8 ~= 2.0.4",
43+
"build ~= 1.0.3",
44+
"filelock ~= 3.12.4",
45+
"flake8 ~= 6.1.0",
46+
"flake8-bugbear ~= 23.9.16",
47+
"flake8-commas ~= 2.1.0; python_version < '3.12'",
48+
"flake8-comprehensions ~= 3.14.0",
4949
"flake8-datetimez ~= 20.10.0",
5050
"flake8-docstrings ~= 1.7.0",
5151
"flake8-encodings ~= 0.5.0",
52-
"flake8-isort ~= 6.0.0",
53-
"flake8-noqa ~= 1.3.1",
52+
"flake8-isort ~= 6.1.0",
53+
"flake8-noqa ~= 1.3.1; python_version < '3.12'",
5454
"flake8-pytest-style ~= 1.7.2",
55-
"flake8-quotes ~= 3.3.2",
56-
"flake8-simplify ~= 0.20.0",
55+
"flake8-quotes ~= 3.3.2; python_version < '3.12'",
56+
"flake8-simplify ~= 0.21.0",
5757
"flake8-unused-arguments ~= 0.0.13",
5858
"isort ~= 5.12.0",
59-
"mypy ~= 1.3.0",
59+
"mypy ~= 1.5.1",
6060
"pep8-naming ~= 0.13.3",
61-
"pre-commit ~= 3.3.2",
61+
"pre-commit ~= 3.4.0",
6262
"pydoc-markdown ~= 4.8.2",
63-
"pytest ~= 7.3.1",
63+
"pytest ~= 7.4.2",
6464
"pytest-asyncio ~= 0.21.0",
6565
"pytest-only ~= 2.0.0",
66-
"pytest-timeout ~= 2.1.0",
66+
"pytest-timeout ~= 2.2.0",
6767
"pytest-xdist ~= 3.3.1",
6868
"respx ~= 0.20.1",
6969
"twine ~= 4.0.2",
70-
"types-aiofiles ~= 23.1.0.3",
70+
"types-aiofiles ~= 23.2.0.0",
7171
"types-colorama ~= 0.4.15.11",
7272
"types-psutil ~= 5.9.5.12",
7373
]

Diff for: tests/unit/test_event_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ async def send_platform_event(event_name: ActorEventTypes, data: Any = None) ->
322322
if data:
323323
message['data'] = data
324324

325-
websockets.broadcast(connected_ws_clients, json.dumps(message)) # type: ignore[attr-defined]
325+
websockets.broadcast(connected_ws_clients, json.dumps(message))
326326

327327
async with websockets.server.serve(handler, host='localhost') as ws_server:
328328
# When you don't specify a port explicitly, the websocket connection is opened on a random free port.

0 commit comments

Comments
 (0)