Use truststore on Windows in Python 3.10+

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

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ if __name__ == "__main__":
from tkinter import messagebox from tkinter import messagebox
from typing import IO, NoReturn from typing import IO, NoReturn
if sys.platform == "linux" and sys.version_info >= (3, 10): if sys.version_info >= (3, 10):
import truststore import truststore
truststore.inject_into_ssl() truststore.inject_into_ssl()
+6 -3
View File
@@ -2,8 +2,11 @@ aiohttp>=3.9,<4.0
Pillow Pillow
pystray pystray
PyGObject; sys_platform == "linux" # required for better system tray support on Linux 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 # selenium-wire
# undetected-chromedriver # undetected-chromedriver
# this is installed only on windows
pywin32; sys_platform == "win32"
truststore; sys_platform == "linux" and python_version >= "3.10"