update python deps

This commit is contained in:
Sam 2023-04-08 08:54:06 +02:00
parent 12950358ef
commit 2f8928d763
4 changed files with 491 additions and 522 deletions

View File

@ -69,7 +69,7 @@ class VisualCrossing(BaseWeather):
self.api_key, '*****'
)
)
r = requests.get(url, params=self.params)
r = requests.get(url, params=self.params, timeout=10)
r.raise_for_status()
res = r.json()
weather = res['currentConditions']

View File

@ -849,7 +849,7 @@ def get_map_tile(s: str, z: str, x: str, y: str) -> Tuple[Response, int]:
y=secure_filename(y),
)
headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:88.0)'}
response = requests.get(url, headers=headers)
response = requests.get(url, headers=headers, timeout=30)
return (
Response(
response.content,

997
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -40,17 +40,17 @@ psycopg2-binary = "^2.9"
pyjwt = "^2.6"
pyopenssl = "^23.0"
python-forecastio = "^1.4"
pytz = "^2022.7"
pytz = "^2023.3"
shortuuid = "^1.0.11"
staticmap = "^0.5.5"
sqlalchemy = "=1.4.45"
sqlalchemy = "=1.4.47"
ua-parser = "^0.16.1"
[tool.poetry.group.dev.dependencies]
bandit = "^1.7.4"
black = "^23.1"
bandit = "^1.7.5"
black = "^23.3"
freezegun = "^1.2"
mypy = "^1.0"
mypy = "^1.2"
pytest = "^7.2"
pytest-black = "^0.3"
pytest-cov = "^3.0"
@ -64,7 +64,7 @@ sphinx = "^5.3"
sphinx-bootstrap-theme = "^0.8.1"
sphinxcontrib-httpdomain = "^1.8"
types-freezegun = "^1.1"
types-pytz = "^2022.7"
types-pytz = "^2023.3"
types-redis = "^4.5"
types-requests = "^2.28"