Skip to content

Commit 92b4789

Browse files
authored
chore!: Bump minimum Python version to 3.10 (#469)
1 parent 840d51a commit 92b4789

File tree

4 files changed

+291
-359
lines changed

4 files changed

+291
-359
lines changed

.github/workflows/run_code_checks.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ jobs:
1616
name: Lint check
1717
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
1818
with:
19-
python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
19+
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
2020

2121
type_check:
2222
name: Type check
2323
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
2424
with:
25-
python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
25+
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
2626

2727
unit_tests:
2828
name: Unit tests
2929
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
3030
with:
31-
python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
31+
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
3232

3333
async_docstrings:
3434
name: Async dostrings check
@@ -43,5 +43,5 @@ jobs:
4343
needs: [lint_check, type_check, unit_tests]
4444
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
4545
with:
46-
python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
46+
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
4747
secrets: inherit

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ description = "Apify API client for Python"
99
authors = [{ name = "Apify Technologies s.r.o.", email = "[email protected]" }]
1010
license = { file = "LICENSE" }
1111
readme = "README.md"
12-
requires-python = ">=3.9"
12+
requires-python = ">=3.10"
1313
classifiers = [
1414
"Development Status :: 5 - Production/Stable",
1515
"Environment :: Console",
1616
"Intended Audience :: Developers",
1717
"License :: OSI Approved :: Apache Software License",
1818
"Operating System :: OS Independent",
19-
"Programming Language :: Python :: 3.9",
2019
"Programming Language :: Python :: 3.10",
2120
"Programming Language :: Python :: 3.11",
2221
"Programming Language :: Python :: 3.12",
@@ -159,7 +158,7 @@ asyncio_mode = "auto"
159158
timeout = 1200
160159

161160
[tool.mypy]
162-
python_version = "3.9"
161+
python_version = "3.10"
163162
files = ["src", "tests", "scripts", "docs", "website"]
164163
check_untyped_defs = true
165164
disallow_incomplete_defs = true
@@ -178,7 +177,7 @@ module = ["pandas"]
178177
ignore_missing_imports = true
179178

180179
[tool.basedpyright]
181-
pythonVersion = "3.9"
180+
pythonVersion = "3.10"
182181
typeCheckingMode = "standard"
183182
include = ["src", "tests", "scripts", "docs", "website"]
184183

src/apify_client/clients/resource_clients/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _log_buffer_content(self, *, include_last_part: bool = False) -> None:
258258
# The last two parts (marker and message) are possibly not complete and will be left in the buffer
259259
self._stream_buffer = all_parts[-2:]
260260

261-
for marker, content in zip(message_markers, message_contents):
261+
for marker, content in zip(message_markers, message_contents, strict=False):
262262
decoded_marker = marker.decode('utf-8')
263263
decoded_content = content.decode('utf-8')
264264
if self._relevancy_time_limit:

0 commit comments

Comments
 (0)