1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 15:27:14 +03:00

[2255] Replace Infi Systray with simplesystray

This commit is contained in:
David Sangrey 2024-06-09 15:28:27 -04:00
parent 192ba5f8f2
commit 13e74f2c57
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC
4 changed files with 4 additions and 6 deletions

View File

@ -101,8 +101,6 @@ logging.Logger.trace = lambda self, message, *args, **kwargs: self._log( # type
logging.Formatter.converter = gmtime
warnings.simplefilter('default', DeprecationWarning)
# TODO remove after infi.systray drops pkg_resources
warnings.filterwarnings('ignore', '.*pkg_resources', DeprecationWarning)
def _trace_if(self: logging.Logger, condition: str, message: str, *args, **kwargs) -> None:

View File

@ -396,7 +396,7 @@ if TYPE_CHECKING:
from logging import TRACE # type: ignore # noqa: F401 # Needed to update mypy
if sys.platform == 'win32':
from infi.systray import SysTrayIcon
from simplesystray import SysTrayIcon
# isort: on
@ -452,7 +452,7 @@ class AppWindow:
self.prefsdialog = None
if sys.platform == 'win32':
from infi.systray import SysTrayIcon
from simplesystray import SysTrayIcon
def open_window(systray: 'SysTrayIcon') -> None:
self.w.deiconify()

View File

@ -5,7 +5,7 @@ wheel
# We can't rely on just picking this up from either the base (not venv),
# or venv-init-time version. Specify here so that dependabot will prod us
# about new versions.
setuptools==69.2.0
setuptools==70.0.0
# Static analysis tools
flake8==7.0.0

View File

@ -1,5 +1,5 @@
requests==2.32.3
pillow==10.3.0
watchdog==4.0.0
infi.systray==0.1.12; sys_platform == 'win32'
simplesystray==0.1.0; sys_platform == 'win32'
semantic-version==2.10.0