2016-07-09 11:32:16 +00:00
|
|
|
from setuptools import setup
|
|
|
|
|
2019-12-18 08:11:18 +00:00
|
|
|
with open("kasa/version.py") as f:
|
2019-11-11 21:14:34 +00:00
|
|
|
exec(f.read())
|
|
|
|
|
|
|
|
setup(
|
2019-12-18 08:11:18 +00:00
|
|
|
name="python-kasa",
|
2019-11-11 21:14:34 +00:00
|
|
|
version=__version__, # type: ignore # noqa: F821
|
2019-12-18 08:11:18 +00:00
|
|
|
description="Python API for TP-Link Kasa Smarthome products",
|
|
|
|
url="https://github.com/python-kasa/python-kasa",
|
|
|
|
author="",
|
|
|
|
author_email="",
|
2019-11-11 21:14:34 +00:00
|
|
|
license="GPLv3",
|
2019-12-18 08:11:18 +00:00
|
|
|
packages=["kasa"],
|
async++, small powerstrip improvements (#46)
* async++, small powerstrip improvements
* use asyncclick instead of click, allows defining the commands with async def to avoid manual eventloop/asyncio.run handling
* improve powerstrip support:
* new powerstrip api: turn_{on,off}_by_{name,index} methods
* cli: fix on/off for powerstrip using the new apis
* add missing update()s for cli's hsv, led, temperature (fixes #43)
* prettyprint the received payloads when debug mode in use
* cli: debug mode can be activated now with '-d'
* update requirements_test.txt
* remove outdated click-datetime, replace click with asyncclick
* debug is a flag
* make smartstripplug to inherit the sysinfo from its parent, allows for simple access of general plug properties
* proper bound checking for index accesses, allow controlling the plug at index 0
* remove the mess of turn_{on,off}_by_{name,index}, get_plug_by_{name,index} are enough.
* adapt cli to use that
* allow changing the alias per index
* use f-strings consistently everywhere in the cli
* add tests for get_plug_by_{index,name}
2020-04-21 18:46:13 +00:00
|
|
|
install_requires=["asyncclick"],
|
2020-01-12 19:27:53 +00:00
|
|
|
python_requires=">=3.7",
|
2019-12-18 08:11:18 +00:00
|
|
|
entry_points={"console_scripts": ["kasa=kasa.cli:cli"]},
|
2019-11-11 21:14:34 +00:00
|
|
|
zip_safe=False,
|
|
|
|
)
|