From d42740372cb6fd10a265115d3977bafc4b3abfa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Valtonen=20=C3=96rnhag?= Date: Thu, 10 Apr 2025 16:12:22 +0200 Subject: [PATCH] Update old links in pyproject.toml (#270) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update old links * Add email + lint --------- Co-authored-by: Marcus Valtonen Örnhag Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com> --- backend/fastrtc/webrtc_connection_mixin.py | 3 +-- pyproject.toml | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/fastrtc/webrtc_connection_mixin.py b/backend/fastrtc/webrtc_connection_mixin.py index 774b507..c2fe240 100644 --- a/backend/fastrtc/webrtc_connection_mixin.py +++ b/backend/fastrtc/webrtc_connection_mixin.py @@ -28,7 +28,6 @@ from fastrtc.tracks import ( HandlerType, ServerToClientAudio, ServerToClientVideo, - StreamHandlerBase, StreamHandlerImpl, VideoCallback, VideoEventHandler, @@ -257,7 +256,7 @@ class WebRTCConnectionMixin: pc = RTCPeerConnection() self.pcs[body["webrtc_id"]] = pc - if isinstance(self.event_handler, StreamHandlerBase): + if isinstance(self.event_handler, StreamHandlerImpl): handler = self.event_handler.copy() handler.emit = webrtc_error_handler(handler.emit) # type: ignore handler.receive = webrtc_error_handler(handler.receive) # type: ignore diff --git a/pyproject.toml b/pyproject.toml index 314a5b3..e135351 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ readme = "README.md" license = "MIT" license-files = ["LICENSE"] requires-python = ">=3.10" -authors = [{ name = "Freddy Boulton", email = "YOUREMAIL@domain.com" }] +authors = [{ name = "Freddy Boulton", email = "arugula.ligand.92@icloud.com" }] keywords = [ "streaming", "webrtc", @@ -65,9 +65,9 @@ classifiers = [ # encounter your project in the wild. [project.urls] -repository = "https://github.com/freddyaboulton/gradio-webrtc" -issues = "https://github.com/freddyaboulton/gradio-webrtc/issues" -Documentation = "https://freddyaboulton.github.io/gradio-webrtc/cookbook/" +repository = "https://github.com/freddyaboulton/fastrtc" +issues = "https://github.com/freddyaboulton/fastrtc/issues" +Documentation = "https://fastrtc.org/" [project.optional-dependencies] dev = ["build", "twine", "httpx", "pytest"]