Skip to content

Commit 1859052

Browse files
committed
Drop support for python 3.9, switch min version to 3.10
1 parent 6197567 commit 1859052

4 files changed

Lines changed: 3 additions & 24 deletions

File tree

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.9.18
1+
3.10.20

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ dependencies = [
1818
"uuid-utils>=0.11.0",
1919
]
2020

21-
requires-python = ">= 3.9"
21+
requires-python = ">= 3.10"
2222
classifiers = [
2323
"Typing :: Typed",
2424
"Intended Audience :: Developers",
25-
"Programming Language :: Python :: 3.9",
2625
"Programming Language :: Python :: 3.10",
2726
"Programming Language :: Python :: 3.11",
2827
"Programming Language :: Python :: 3.12",

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export DEFER_PYDANTIC_BUILD=false
5656

5757
# Note that we need to specify the patch version here so that uv
5858
# won't use unstable (alpha, beta, rc) releases for the tests
59-
PY_VERSION_MIN=">=3.9.0"
59+
PY_VERSION_MIN=">=3.10.0"
6060
PY_VERSION_MAX=">=3.14.0"
6161

6262
function run_tests() {

src/runloop_api_client/_utils/_utils.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -344,26 +344,6 @@ def maybe_coerce_boolean(val: str | None) -> bool | None:
344344
return coerce_boolean(val)
345345

346346

347-
def removeprefix(string: str, prefix: str) -> str:
348-
"""Remove a prefix from a string.
349-
350-
Backport of `str.removeprefix` for Python < 3.9
351-
"""
352-
if string.startswith(prefix):
353-
return string[len(prefix) :]
354-
return string
355-
356-
357-
def removesuffix(string: str, suffix: str) -> str:
358-
"""Remove a suffix from a string.
359-
360-
Backport of `str.removesuffix` for Python < 3.9
361-
"""
362-
if string.endswith(suffix):
363-
return string[: -len(suffix)]
364-
return string
365-
366-
367347
def file_from_path(path: str) -> FileTypes:
368348
contents = Path(path).read_bytes()
369349
file_name = os.path.basename(path)

0 commit comments

Comments
 (0)