Skip to content
Open
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
4 changes: 2 additions & 2 deletions cozy/report/report_to_loki.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import distro
import inject
import pytz
from zoneinfo import ZoneInfo
import requests
from gi.repository import Gtk
from mutagen import version_string as MutagenVersion
Expand Down Expand Up @@ -36,7 +36,7 @@ def report(component: str, type: LogLevel, message: str, exception: Exception):
if report_level == 0:
return

curr_datetime = datetime.datetime.now(pytz.timezone('Europe/Berlin'))
curr_datetime = datetime.datetime.now(ZoneInfo('Europe/Berlin'))
curr_datetime = curr_datetime.isoformat('T')

if not component or not type or not message:
Expand Down
14 changes: 0 additions & 14 deletions flatpak/python-deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,6 @@
}
]
},
{
"name": "python3-pytz",
"buildsystem": "simple",
"build-commands": [
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pytz\" --no-build-isolation"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl",
"sha256": "5ddf76296dd8c44c26eb8f4b6f35488f3ccbf6fbbd7adee0b7262d43f0ec2f00"
}
]
},
{
"name": "python3-requests",
"buildsystem": "simple",
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ else
endif

# Python 3 required modules
python3_required_modules = ['distro', 'mutagen', 'peewee', 'pytz', 'requests', 'inject', 'gi']
python3_required_modules = ['distro', 'mutagen', 'peewee', 'requests', 'inject', 'gi']

foreach p : python3_required_modules
# Source: https://docs.python.org/3/library/importlib.html#checking-if-a-module-can-be-imported
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
distro
mutagen>=1.47
peewee>=3.9.6
pytz
requests
inject
Pillow
Pillow