Skip to content

Commit 82060c4

Browse files
committed
use long_description_content_type in setup.py
1 parent 06b1aed commit 82060c4

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

setup.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@
77
from setuptools import setup, find_packages, Extension
88
from setuptools.command.build_ext import build_ext
99

10-
try:
11-
import pypandoc
12-
long_description = pypandoc.convert('README.md', 'rst')
13-
except(IOError, ImportError):
14-
if sys.version_info[0] == 3:
15-
long_description = open('README.md', encoding='utf-8').read()
16-
else:
17-
long_description = open('README.md').read()
18-
19-
2010
def list_cpp_files(package_dir='wikipedia2vec'):
2111
if sys.platform.startswith("win"):
2212
compile_args = []
@@ -61,9 +51,10 @@ def finalize_options(self):
6151

6252
setup(
6353
name='wikipedia2vec',
64-
version='1.0.0',
54+
version='1.0.1',
6555
description='A tool for learning vector representations of words and entities from Wikipedia',
66-
long_description=long_description,
56+
long_description=open('README.md').read(),
57+
long_description_content_type='text/markdown',
6758
author='Studio Ousia',
6859
author_email='ikuya@ousia.jp',
6960
url='http://wikipedia2vec.github.io/',

0 commit comments

Comments
 (0)