Skip to content

Commit 1334fb5

Browse files
Adding README as description
1 parent 84423ba commit 1334fb5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
)
99
import glob
1010

11+
from os import path
12+
this_directory = path.abspath(path.dirname(__file__))
13+
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
14+
long_description = f.read()
15+
1116
TORCH_MAJOR = int(torch.__version__.split(".")[0])
1217
TORCH_MINOR = int(torch.__version__.split(".")[1])
1318
extra_compile_args = []
@@ -54,4 +59,6 @@
5459
install_requires=requirements,
5560
ext_modules=ext_modules,
5661
cmdclass={"build_ext": BuildExtension},
62+
long_description=long_description,
63+
long_description_content_type='text/markdown'
5764
)

0 commit comments

Comments
 (0)