Bladeren bron

Fix long description content type (#270)

J. Nick Koston 4 maanden geleden
bovenliggende
commit
1f82e51c58
1 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  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",