Make wxPython optional for Python packaging purposes

wxPython is unnecessary for the automated test suite. Additionally, the GTK interface still works under PyGObject in GTK 3, so re-expose that.
This commit is contained in:
Charlie Li 2022-12-07 10:02:10 -05:00 committed by Dan Smith
parent 6740f801c7
commit a4d897d8a6
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ include chirp/share/*.png
include chirp/share/*.ico
include chirp/share/*.1
include chirp/stock_configs/*
include chirpw
include COPYING
include *requirements.txt
graft tests

View File

@ -12,13 +12,17 @@ setup(name='chirp',
url='https://chirp.danplanet.com',
python_requires=">=3.7,<4",
install_requires=[
'wxPython',
'pyserial',
'six',
'future',
'importlib-resources;python_version<"3.10"'
],
extras_require={
'wx': ['wxPython'],
'gtk': ['PyGObject']
},
entry_points={
'console_scripts': ["chirp=chirp.wxui:chirpmain"],
},
scripts=['chirpw'],
)