setup.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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=["intertechno-cc1101>=0.1.0,<0.2", "paho-mqtt<2"],
  46. setup_requires=["setuptools_scm"],
  47. tests_require=["pytest"],
  48. dependency_links=[
  49. "git+https://git.hammerle.me/fphammerle/intertechno-cc1101@v0.1.0"
  50. "#egg=intertechno-cc1101-0.1.0"
  51. ],
  52. )