Skip to content

Commit 521d4a5

Browse files
committed
Let's add the README back as the long description.
1 parent b66eeb7 commit 521d4a5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import sys
44
import os
5+
import os.path
56
import warnings
67

78
from distutils.dist import Distribution
@@ -135,10 +136,18 @@ def build_extensions(self):
135136
libraries=[lib_talib_name],
136137
runtime_library_dirs=runtime_lib_dirs)
137138
]
139+
140+
from os import path
141+
this_directory = path.abspath(path.dirname(__file__))
142+
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
143+
long_description = f.read()
144+
138145
setup(
139146
name='TA-Lib',
140147
version='0.4.20',
141148
description='Python wrapper for TA-Lib',
149+
long_description=long_description,
150+
long_description_content_type='text/markdown',
142151
author='John Benediktsson',
143152
author_email='mrjbq7@gmail.com',
144153
url='http://github.com/mrjbq7/ta-lib',

0 commit comments

Comments
 (0)