setup.py 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # switchbot-mqtt - MQTT client controlling SwitchBot button automators,
  2. # compatible with home-assistant.io's MQTT Switch platform
  3. #
  4. # Copyright (C) 2020 Fabian Peter Hammerle <fabian@hammerle.me>
  5. #
  6. # This program is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. import pathlib
  19. import setuptools
  20. _REPO_URL = "https://github.com/fphammerle/switchbot-mqtt"
  21. setuptools.setup(
  22. name="switchbot-mqtt",
  23. use_scm_version=True,
  24. packages=setuptools.find_packages(),
  25. description="MQTT client controlling SwitchBot button automators, "
  26. # https://www.home-assistant.io/integrations/switch.mqtt/
  27. "compatible with home-assistant.io's MQTT Switch platform",
  28. long_description=pathlib.Path(__file__).parent.joinpath("README.md").read_text(),
  29. long_description_content_type="text/markdown",
  30. author="Fabian Peter Hammerle",
  31. author_email="fabian@hammerle.me",
  32. url=_REPO_URL,
  33. project_urls={"Changelog": _REPO_URL + "/blob/master/CHANGELOG.md"},
  34. license="GPLv3+",
  35. keywords=[
  36. "IoT",
  37. "automation",
  38. "bluetooth",
  39. "button",
  40. "click",
  41. "home-assistant.io",
  42. "home-automation",
  43. "mqtt",
  44. "press",
  45. "push",
  46. "switchbot",
  47. ],
  48. classifiers=[
  49. # https://pypi.org/classifiers/
  50. "Development Status :: 2 - Pre-Alpha",
  51. "Intended Audience :: End Users/Desktop",
  52. "Intended Audience :: System Administrators",
  53. "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
  54. "Operating System :: POSIX :: Linux",
  55. # .github/workflows/python.yml
  56. "Programming Language :: Python :: 3.5",
  57. "Programming Language :: Python :: 3.6",
  58. "Programming Language :: Python :: 3.7",
  59. "Programming Language :: Python :: 3.8",
  60. "Topic :: Home Automation",
  61. ],
  62. entry_points={"console_scripts": ["switchbot-mqtt = switchbot_mqtt:_main",]},
  63. install_requires=["PySwitchbot", "paho-mqtt<2"],
  64. setup_requires=["setuptools_scm"],
  65. tests_require=["pytest"],
  66. )