瀏覽代碼

Fix long description content type (#270)

J. Nick Koston 7 月之前
父節點
當前提交
1f82e51c58
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      setup.py

+ 7 - 0
setup.py

@@ -1,5 +1,10 @@
+from pathlib import Path
+
 from setuptools import setup
 
+this_directory = Path(__file__).parent
+long_description = (this_directory / "README.md").read_text()
+
 setup(
     name="PySwitchbot",
     packages=["switchbot", "switchbot.devices", "switchbot.adv_parsers"],
@@ -12,6 +17,8 @@ setup(
     ],
     version="0.53.1",
     description="A library to communicate with Switchbot",
+    long_description=long_description,
+    long_description_content_type="text/markdown",
     author="Daniel Hjelseth Hoyer",
     url="https://github.com/sblibs/pySwitchbot/",
     license="MIT",