Formalize chirpc a bit and install it

This moves chirpc into a package called chirp.cli and makes setup.py
install it as a binary. This will make it available to people that
install the package and also makes it possible to add tests.

Tangentially related to #10263
This commit is contained in:
Dan Smith 2023-01-13 17:26:36 -08:00 committed by Dan Smith
parent 69fde7e2f0
commit ad432cc9ed
2 changed files with 3 additions and 2 deletions

View File

@ -94,7 +94,7 @@ def parse_memory_number(radio, args):
return memnum
if __name__ == "__main__":
def main():
parser = argparse.ArgumentParser()
logger.add_version_argument(parser)
parser.add_argument("-s", "--serial", dest="serial",

View File

@ -23,6 +23,7 @@ setup(name='chirp',
'wx': ['wxPython'],
},
entry_points={
'console_scripts': ["chirp=chirp.wxui:chirpmain"],
'console_scripts': ["chirp=chirp.wxui:chirpmain",
"chirpc=chirp.cli.main:main"],
},
)