Use truststore on Windows in Python 3.10+

This commit is contained in:
DevilXD
2024-01-15 15:05:58 +01:00
parent f125bf058e
commit 91f2dacbcc
2 changed files with 7 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ if __name__ == "__main__":
from tkinter import messagebox
from typing import IO, NoReturn
if sys.platform == "linux" and sys.version_info >= (3, 10):
if sys.version_info >= (3, 10):
import truststore
truststore.inject_into_ssl()

View File

@@ -2,8 +2,11 @@ aiohttp>=3.9,<4.0
Pillow
pystray
PyGObject; sys_platform == "linux" # required for better system tray support on Linux
# environment-dependent dependencies
pywin32; sys_platform == "win32"
truststore; python_version >= "3.10"
# unused dependencies
# selenium-wire
# undetected-chromedriver
# this is installed only on windows
pywin32; sys_platform == "win32"
truststore; sys_platform == "linux" and python_version >= "3.10"