From d2ca4f7c88d27d794f5c98ec48d58921a27727d6 Mon Sep 17 00:00:00 2001 From: Denys Smirnov Date: Fri, 21 Jun 2024 15:12:38 +0300 Subject: [PATCH] Update to Python 3.10. --- .github/workflows/check-types.yml | 4 ++-- .github/workflows/ruff.yml | 2 +- livekit-api/livekit/api/_service.py | 2 +- livekit-api/setup.py | 2 +- livekit-rtc/setup.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-types.yml b/.github/workflows/check-types.yml index 2ebfa830..aa244ae4 100644 --- a/.github/workflows/check-types.yml +++ b/.github/workflows/check-types.yml @@ -17,10 +17,10 @@ jobs: with: submodules: recursive - - name: Set up Python 3.9 + - name: Set up Python 3.10 uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: "3.10" - name: Download ffi run: python -m pip install requests && python livekit-rtc/rust-sdks/download_ffi.py --output $(python -m site --user-site)/livekit/rtc/resources diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 06514b44..2ec78dd4 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -7,7 +7,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.10" - name: Install dependencies run: | diff --git a/livekit-api/livekit/api/_service.py b/livekit-api/livekit/api/_service.py index 4cb2105d..b1ba5d23 100644 --- a/livekit-api/livekit/api/_service.py +++ b/livekit-api/livekit/api/_service.py @@ -16,7 +16,7 @@ def __init__( self.api_secret = api_secret def _auth_header( - self, grants: VideoGrants, sip: SIPGrants = None + self, grants: VideoGrants, sip: SIPGrants | None = None ) -> Dict[str, str]: tok = AccessToken(self.api_key, self.api_secret).with_grants(grants) if sip is not None: diff --git a/livekit-api/setup.py b/livekit-api/setup.py index d5046cb1..041eaeaf 100644 --- a/livekit-api/setup.py +++ b/livekit-api/setup.py @@ -47,7 +47,7 @@ keywords=["webrtc", "realtime", "audio", "video", "livekit"], license="Apache-2.0", packages=setuptools.find_namespace_packages(include=["livekit.*"]), - python_requires=">=3.9.0", + python_requires=">=3.10.0", install_requires=[ "pyjwt>=2.0.0", "aiohttp>=3.9.0", diff --git a/livekit-rtc/setup.py b/livekit-rtc/setup.py index 8c5e8d44..15bd7108 100644 --- a/livekit-rtc/setup.py +++ b/livekit-rtc/setup.py @@ -57,7 +57,7 @@ def finalize_options(self): keywords=["webrtc", "realtime", "audio", "video", "livekit"], license="Apache-2.0", packages=setuptools.find_namespace_packages(include=["livekit.*"]), - python_requires=">=3.9.0", + python_requires=">=3.10.0", install_requires=["protobuf>=3", "types-protobuf>=3"], package_data={ "livekit.rtc": ["_proto/*.py", "py.typed", "*.pyi", "**/*.pyi"],