From ed0c11492d1ef5dcd8e7ab22bae55a39327ec7e1 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Sat, 12 Oct 2024 17:50:41 +0800 Subject: [PATCH] Update package configuration Signed-off-by: Loren Eteval --- setup.py | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/setup.py b/setup.py index e19d73f0..1b63b50f 100644 --- a/setup.py +++ b/setup.py @@ -22,6 +22,9 @@ from setuptools import setup, find_packages with open('README.md', 'r', encoding='utf-8') as file: long_description = file.read() +with open('requirements.txt', 'r', encoding='utf-8') as file: + install_requires = file.read().split('\n') + setup( name='Furious-GUI', version=__version__, @@ -35,36 +38,7 @@ setup( packages=find_packages(), package_data={'Furious': ['Data/**']}, include_package_data=True, - install_requires=[ - 'PySide6', - 'qdarkstyle', - 'ujson', - 'pybase64', - 'pyqrcode', - 'pypng', - 'icmplib', - 'sysproxy; platform_system == "Windows"', - 'darkdetect; platform_system != "Darwin"', - 'darkdetect[macos-listener]; platform_system == "Darwin"', - ], - extras_require={ - 'go1.20': [ - 'Xray-core < 1.8.5', - 'hysteria > 1.3.5', - 'hysteria2 == 2.0.0.1', - 'tun2socks > 2.5.1, <= 2.5.2; platform_system != "Linux"', - ], - 'go1.21': [ - 'Xray-core >= 1.8.5, < 1.8.8', - 'hysteria2 >= 2.0.4', - 'tun2socks > 2.5.1, <= 2.5.2; platform_system != "Linux"', - ], - 'go1.22': [ - 'Xray-core >= 1.8.8', - 'hysteria2 >= 2.0.4', - 'tun2socks > 2.5.2; platform_system != "Linux"', - ], - }, + install_requires=install_requires, entry_points={ 'gui_scripts': [ 'Furious = Furious.__main__:main',