setup.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import pathlib
  2. import setuptools
  3. _REPO_URL = "https://git.hammerle.me/fphammerle/intertechno-cc1101-mqtt"
  4. setuptools.setup(
  5. name="intertechno-cc1101-mqtt",
  6. use_scm_version={
  7. # > AssertionError: cant parse version docker/0.1.0-amd64
  8. # https://github.com/pypa/setuptools_scm/blob/master/src/setuptools_scm/git.py#L15
  9. "git_describe_command": "git describe --dirty --tags --long --match v*"
  10. },
  11. packages=setuptools.find_packages(),
  12. description="MQTT client controlling Intertechno smart outlets via CC1101 transceiver, "
  13. # https://www.home-assistant.io/integrations/switch.mqtt/
  14. "compatible with home-assistant.io's MQTT Switch platform",
  15. long_description=pathlib.Path(__file__).parent.joinpath("README.md").read_text(),
  16. long_description_content_type="text/markdown",
  17. author="Fabian Peter Hammerle",
  18. author_email="fabian@hammerle.me",
  19. url=_REPO_URL,
  20. project_urls={"Changelog": _REPO_URL + "/blob/master/CHANGELOG.md"},
  21. keywords=[
  22. "automation",
  23. "home-assistant.io",
  24. "home-automation",
  25. "intertechno",
  26. "mqtt",
  27. "outlet",
  28. "power",
  29. "radio-frequency",
  30. "raspberry-pi",
  31. "remote-control",
  32. "switch",
  33. ],
  34. classifiers=[
  35. # https://pypi.org/classifiers/
  36. "Development Status :: 2 - Pre-Alpha",
  37. "Intended Audience :: End Users/Desktop",
  38. "Intended Audience :: System Administrators",
  39. "Operating System :: POSIX :: Linux",
  40. "Topic :: Home Automation",
  41. ],
  42. entry_points={
  43. "console_scripts": ["intertechno-cc1101-mqtt = intertechno_cc1101_mqtt:_main"]
  44. },
  45. install_requires=[
  46. # >=0.2.0 turn_on/off(power_setting=?, ...)
  47. "intertechno-cc1101>=0.2.0,<0.3",
  48. "paho-mqtt<2",
  49. ],
  50. setup_requires=["setuptools_scm"],
  51. tests_require=["pytest"],
  52. dependency_links=[
  53. "git+https://git.hammerle.me/fphammerle/intertechno-cc1101@v0.2.0"
  54. "#egg=intertechno-cc1101-0.2.0"
  55. ],
  56. )