Move GUI dependencies to extra

This allows installing Syncplay to use the syncplay-server entry point
without pulling in PySide2 where not needed.
This commit is contained in:
FallenWarrior2k 2021-05-06 04:15:44 +02:00
parent c19d4745b3
commit a3f06d931a
No known key found for this signature in database
GPG Key ID: 9C301DF4E151C69E

View File

@ -9,8 +9,8 @@ def read(fname):
with open(fname, 'r') as f:
return f.read()
installRequirements = read('requirements.txt').splitlines() +\
read('requirements_gui.txt').splitlines()
installRequirements = read('requirements.txt').splitlines()
guiRequirements = read('requirements_gui.txt').splitlines()
setuptools.setup(
name="syncplay",
@ -27,13 +27,16 @@ setuptools.setup(
download_url=projectURL + 'download/',
packages=setuptools.find_packages(),
install_requires=installRequirements,
extras_require={
'gui': guiRequirements,
},
python_requires=">=3.4",
entry_points={
'console_scripts': [
'syncplay-server = syncplay.ep_server:main',
],
'gui_scripts': [
'syncplay = syncplay.ep_client:main',
'syncplay = syncplay.ep_client:main [gui]',
]
},
include_package_data=True,