Skip to content

Commit

Permalink
Add pipx/entry_points support for CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
uzlonewolf committed May 26, 2024
1 parent f46d862 commit 7178963
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
url='https://github.com/jasonacox/tinytuya',
packages=setuptools.find_packages(exclude=("sandbox",)),
install_requires=INSTALL_REQUIRES,
entry_points={"console_scripts": ["tinytuya=tinytuya.__main__:dummy"]},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
Expand Down
4 changes: 4 additions & 0 deletions tinytuya/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,8 @@
# no command selected?
wizard.wizard()

# give entry_points/console_scripts something to point at
def dummy():
pass

# End

0 comments on commit 7178963

Please sign in to comment.