-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from Aksem/feature/web_aiohttp
Update deps. Get free port in web aiohttp transport if no port is pas…
- Loading branch information
Showing
7 changed files
with
440 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.11 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import socket | ||
from contextlib import closing | ||
|
||
|
||
def get_free_port(): | ||
# find free port | ||
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s: | ||
s.bind(("localhost", 0)) | ||
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | ||
free_port = s.getsockname()[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[virtualenvs] | ||
prefer-active-python = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "modapp" | ||
version = "0.3.22" | ||
version = "0.3.23" | ||
description = "" | ||
authors = ["Vladyslav Hnatiuk <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -14,8 +14,7 @@ uvloop = { version = "^0.19.0", markers = "sys_platform != 'win32'", optional = | |
winloop = { version = "^0.0.8", markers = "sys_platform == 'win32'", optional = true } | ||
grpclib = { version = "^0.4.7", optional = true } | ||
googleapis-common-protos = { version = "^1.63.2", optional = true } | ||
# fix socketify to 0.0.27, because 0.0.28 has critical issue: https://github.com/cirospaciari/socketify.py/issues/194 | ||
socketify = { version = "0.0.27", optional = true } | ||
socketify = { version = "^0.0.31", optional = true } | ||
orjson = { version = "^3.10.3", optional = true } | ||
aiohttp = { extras = ["speedups"], version = "^3.9.5", optional = true } | ||
anyio = {version = "^4.4.0", optional = true} | ||
|