Merge pull request #10500 from freqtrade/dependabot/pip/develop/aiohttp-3.10.1

chore(deps): bump aiohttp from 3.9.5 to 3.10.1
This commit is contained in:
Matthias
2024-08-09 06:44:19 +02:00
committed by GitHub
5 changed files with 14 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
# flake8: noqa: F401 # flake8: noqa: F401
from freqtrade.configuration.asyncio_config import asyncio_setup
from freqtrade.configuration.config_secrets import sanitize_config from freqtrade.configuration.config_secrets import sanitize_config
from freqtrade.configuration.config_setup import setup_utils_configuration from freqtrade.configuration.config_setup import setup_utils_configuration
from freqtrade.configuration.config_validation import validate_config_consistency from freqtrade.configuration.config_validation import validate_config_consistency

View File

@@ -0,0 +1,9 @@
import asyncio
import sys
def asyncio_setup() -> None: # pragma: no cover
# Set eventloop for win32 setups
if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

View File

@@ -15,6 +15,7 @@ if sys.version_info < (3, 9): # pragma: no cover
from freqtrade import __version__ from freqtrade import __version__
from freqtrade.commands import Arguments from freqtrade.commands import Arguments
from freqtrade.configuration import asyncio_setup
from freqtrade.constants import DOCS_LINK from freqtrade.constants import DOCS_LINK
from freqtrade.exceptions import ConfigurationError, FreqtradeException, OperationalException from freqtrade.exceptions import ConfigurationError, FreqtradeException, OperationalException
from freqtrade.loggers import setup_logging_pre from freqtrade.loggers import setup_logging_pre
@@ -33,6 +34,7 @@ def main(sysargv: Optional[List[str]] = None) -> None:
return_code: Any = 1 return_code: Any = 1
try: try:
setup_logging_pre() setup_logging_pre()
asyncio_setup()
arguments = Arguments(sysargv) arguments = Arguments(sysargv)
args = arguments.get_parsed_arg() args = arguments.get_parsed_arg()

View File

@@ -8,6 +8,7 @@ def asyncio_setup() -> None: # pragma: no cover
# Set eventloop for win32 setups # Set eventloop for win32 setups
# Reverts a change done in uvicorn 0.15.0 - which now sets the eventloop # Reverts a change done in uvicorn 0.15.0 - which now sets the eventloop
# via policy. # via policy.
# TODO: is this workaround actually needed?
import sys import sys
if sys.version_info >= (3, 8) and sys.platform == "win32": if sys.version_info >= (3, 8) and sys.platform == "win32":

View File

@@ -7,7 +7,7 @@ pandas-ta==0.3.14b
ccxt==4.3.76 ccxt==4.3.76
cryptography==42.0.8; platform_machine == 'armv7l' cryptography==42.0.8; platform_machine == 'armv7l'
cryptography==43.0.0; platform_machine != 'armv7l' cryptography==43.0.0; platform_machine != 'armv7l'
aiohttp==3.9.5 aiohttp==3.10.1
SQLAlchemy==2.0.32 SQLAlchemy==2.0.32
python-telegram-bot==21.4 python-telegram-bot==21.4
# can't be hard-pinned due to telegram-bot pinning httpx with ~ # can't be hard-pinned due to telegram-bot pinning httpx with ~