Skip to content

Commit f56cc67

Browse files
committed
Move uvicorn to testing deps
1 parent cc3dfbd commit f56cc67

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ urls.Source = "https://github.com/reactive-python/reactpy"
4343
all = ["reactpy[asgi,jinja,testing]"]
4444
asgi = ["asgiref", "asgi-tools", "servestatic", "orjson", "pip"]
4545
jinja = ["jinja2-simple-tags", "jinja2 >=3"]
46-
testing = ["playwright"]
46+
testing = ["playwright, uvicorn[standard]"]
4747

4848
[tool.hatch.version]
4949
path = "src/reactpy/__init__.py"
@@ -86,7 +86,6 @@ artifacts = []
8686
[tool.hatch.envs.hatch-test]
8787
extra-dependencies = [
8888
"reactpy[all]",
89-
"uvicorn",
9089
"pytest-sugar",
9190
"pytest-asyncio",
9291
"responses",

src/reactpy/executors/asgi/pyscript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464
are not applicable to CSR and will have no effect.
6565
"""
6666
ReactPyMiddleware.__init__(
67-
self, app=ReactpyPyscriptApp(self), root_components=[], **settings
67+
self, app=ReactPyPyscriptApp(self), root_components=[], **settings
6868
)
6969
if not file_paths:
7070
raise ValueError("At least one component file path must be provided.")
@@ -85,7 +85,7 @@ def match_dispatch_path(self, scope: AsgiWebsocketScope) -> bool: # nocov
8585

8686

8787
@dataclass
88-
class ReactpyPyscriptApp(ReactPyApp):
88+
class ReactPyPyscriptApp(ReactPyApp):
8989
"""ReactPy's standalone ASGI application for Client-Side Rendering (CSR) via PyScript."""
9090

9191
parent: ReactPyCsr

0 commit comments

Comments
 (0)