Convert PyPi description to RST format
This commit is contained in:
@@ -13,6 +13,10 @@ with open(os.path.join("hddfancontrol", "__init__.py"), "rt") as f:
|
|||||||
with open("requirements.txt", "rt") as f:
|
with open("requirements.txt", "rt") as f:
|
||||||
requirements = f.read().splitlines()
|
requirements = f.read().splitlines()
|
||||||
|
|
||||||
|
try:
|
||||||
|
import pypandoc
|
||||||
|
readme = pypandoc.convert("README.md", "rst")
|
||||||
|
except ImportError:
|
||||||
with open("README.md", "rt") as f:
|
with open("README.md", "rt") as f:
|
||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user