Skip to content

Commit 5fb69b9

Browse files
committed
setup.py: readd long_description, now directly with raw markdown.
1 parent 58caec2 commit 5fb69b9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
import subprocess
44
from dss_setup_common import PLATFORM_FOLDER, DSS_VERSIONS, DLL_SUFFIX, DLL_PREFIX
55

6+
# Copy README.md contents
7+
with open('README.md', encoding='utf8') as readme_md:
8+
long_description = readme_md.read()
9+
10+
# Extract version from the source files
611
with open('dss/v7/__init__.py', 'r') as f:
712
match = re.search("__version__ = '(.*?)'", f.read())
813
package_version = match.group(1)
@@ -30,10 +35,11 @@
3035
'dss': ['*{}'.format(DLL_SUFFIX)]
3136
})
3237

33-
3438
setup(
3539
name="dss_python",
3640
description="OpenDSS bindings based on the DSS C-API project",
41+
long_description=long_description,
42+
long_description_content_type='text/markdown',
3743
author="Paulo Meira",
3844
author_email="pmeira@ieee.org",
3945
version=package_version,

0 commit comments

Comments
 (0)