Skip to content

Commit c55517b

Browse files
authored
chore: Remove support for Python 3.8 (#310)
* chore: Remove support for Python 3.8 * Update formatting per 3.9 rules
1 parent c4c9dc5 commit c55517b

19 files changed

Lines changed: 74 additions & 343 deletions

‎.github/workflows/publish_testpypi.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ubuntu-latest, windows-latest, macos-latest]
15-
python_v: ['3.8', '3.9', '3.10', '3.12', '3.13', '3.14', '3.14t']
15+
python_v: ['3.9', '3.10', '3.12', '3.13', '3.14', '3.14t']
1616
# chrome_v: ['-1']
1717
name: Build and Test
1818
runs-on: ${{ matrix.os }}

‎.python_version‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8
1+
3.9

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ where X.Y.Z is the semver of the most recent choreographer release.
1919
- Add `proxy_server` browser configuration with a `CHOREO_PROXY_SERVER` environment fallback [[#304](https://github.com/plotly/choreographer/pull/304)], with thanks to @ColumbusLabs for the contribution!
2020
- Send `Runtime.callFunctionOn` commands in chunks when they are too big for Chrome's 100MiB devtools buffer [[#306](https://github.com/plotly/choreographer/pull/306)]
2121

22+
### Removed
23+
- Drop support for Python 3.8 [[#294](https://github.com/plotly/choreographer/pull/294)]
24+
2225
### Fixed
2326
- Improve platform architecture detection for arm on Linux and Windows [[#290](https://github.com/plotly/choreographer/pull/290)], with thanks to @juliabeliaeva for the contribution!
2427
- Fix license file and add a valid SPDX identifier to project settings [[#294](https://github.com/plotly/choreographer/pull/294)], with thanks to @ecederstrand for the contribution!

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ choreographer = ['resources/last_known_good_chrome.json']
1818
name = "choreographer"
1919
description = "Devtools Protocol implementation for chrome."
2020
readme = "README.md"
21-
requires-python = ">=3.8"
21+
requires-python = ">=3.9"
2222
license = "MIT"
2323
license-files = [ "LICENSE.md" ]
2424
dynamic = ["version"]

‎src/choreographer/_brokers/_async.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
# afrom choreographer.channels import ChannelClosedError
1414

1515
if TYPE_CHECKING:
16-
from typing import Any, MutableMapping
16+
from collections.abc import MutableMapping
17+
from typing import Any
1718

1819
from choreographer.browser_async import Browser
1920
from choreographer.channels._interface_type import ChannelInterface

‎src/choreographer/browser_async.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
from .utils._kill import kill
2424

2525
if TYPE_CHECKING:
26+
from collections.abc import Generator, MutableMapping
2627
from pathlib import Path
2728
from types import TracebackType
28-
from typing import Any, Generator, MutableMapping
29+
from typing import Any
2930

3031
from typing_extensions import Self # 3.9 needs this, could be from typing in 3.10
3132

‎src/choreographer/browser_sync.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
from .utils._kill import kill
1717

1818
if TYPE_CHECKING:
19+
from collections.abc import MutableMapping
1920
from pathlib import Path
2021
from types import TracebackType
21-
from typing import Any, MutableMapping
22+
from typing import Any
2223

2324
from typing_extensions import Self # 3.9 needs this, could be from typing in 3.10
2425

‎src/choreographer/browsers/_interface_type.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
if TYPE_CHECKING:
88
import logging
9+
from collections.abc import Mapping, MutableMapping, Sequence
910
from pathlib import Path
10-
from typing import Any, Mapping, MutableMapping, Sequence
11+
from typing import Any
1112

1213
from choreographer.channels._interface_type import ChannelInterface
1314

‎src/choreographer/browsers/chromium.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626

2727
if TYPE_CHECKING:
2828
import logging
29-
from typing import Any, Mapping, MutableMapping, Sequence
29+
from collections.abc import Mapping, MutableMapping, Sequence
30+
from typing import Any
3031

3132
from choreographer.channels._interface_type import ChannelInterface
3233

‎src/choreographer/channels/_interface_type.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
from typing import TYPE_CHECKING, Protocol
66

77
if TYPE_CHECKING:
8-
from typing import Any, Mapping, Sequence
8+
from collections.abc import Mapping, Sequence
9+
from typing import Any
910

1011
from choreographer.protocol import BrowserResponse
1112

0 commit comments

Comments
 (0)