Compare commits
3 Commits
5e9a5f62dc
...
38a43407b3
| Author | SHA1 | Date | |
|---|---|---|---|
| 38a43407b3 | |||
| 396587554a | |||
| d12228e662 |
@@ -5,6 +5,9 @@ WORKDIR /app
|
|||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
ARG VERSION=unknown
|
||||||
|
ENV APP_VERSION=${VERSION}
|
||||||
|
|
||||||
COPY weather_report.py .
|
COPY weather_report.py .
|
||||||
|
|
||||||
RUN mkdir -p images
|
RUN mkdir -p images
|
||||||
|
|||||||
+1
-5
@@ -2,8 +2,6 @@
|
|||||||
"""Erstellt einen kombinierten Wetterbericht für den letzten Kalendermonat."""
|
"""Erstellt einen kombinierten Wetterbericht für den letzten Kalendermonat."""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import pathlib
|
|
||||||
import re
|
|
||||||
import smtplib
|
import smtplib
|
||||||
import tempfile
|
import tempfile
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
@@ -20,9 +18,7 @@ from dotenv import load_dotenv
|
|||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
_v = re.search(r'^version\s*=\s*"([^"]+)"',
|
VERSION = os.getenv("APP_VERSION", "?")
|
||||||
pathlib.Path("pyproject.toml").read_text(), re.MULTILINE)
|
|
||||||
VERSION = _v.group(1) if _v else "?"
|
|
||||||
|
|
||||||
API_BASE_URL = os.getenv("API_BASE_URL", "https://stwwetter.fuerst-stuttgart.de/api")
|
API_BASE_URL = os.getenv("API_BASE_URL", "https://stwwetter.fuerst-stuttgart.de/api")
|
||||||
MAIL_SERVER = os.getenv("MAIL_SERVER")
|
MAIL_SERVER = os.getenv("MAIL_SERVER")
|
||||||
|
|||||||
Reference in New Issue
Block a user