Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ dev = [
"types-colorama<1.0.0",
"types-psutil<8.0.0",
"types-python-dateutil<3.0.0",
"uvicorn[standard]~=0.35.0", # https://github.com/apify/crawlee-python/issues/1441
"uvicorn[standard]<1.0.0",
]

[tool.hatch.build.targets.wheel]
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,9 @@ def run(self, sockets: list[socket] | None = None) -> None:
# Set the event loop policy in thread with server for Windows and Python 3.12+.
# This is necessary because there are problems with closing connections when using `ProactorEventLoop`
if sys.version_info >= (3, 12) and sys.platform == 'win32':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
return asyncio.run(self.serve(sockets=sockets), loop_factory=asyncio.SelectorEventLoop)
super().run(sockets=sockets)
return None


def serve_in_thread(server: TestServer) -> Iterator[TestServer]:
Expand Down
10 changes: 5 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading