Skip to content

Commit d29cd3c

Browse files
committed
Use setuptools-markdown to generate correct rst long_description
1 parent a6b1055 commit d29cd3c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1+
import sys
12
from setuptools import setup
23

4+
if sys.argv[-1] in ('sdist', 'bdist_wheel'):
5+
setup_requires = ['setuptools-markdown']
6+
else:
7+
setup_requires = []
8+
39
setup(
410
name='tldr',
5-
version="0.1.3",
11+
version="0.1.3.1",
612
author='Felix Yan',
713
author_email='felixonmars@gmail.com',
814
url='https://github.com/felixonmars/tldr-python-client',
915
description='command line client for tldr',
16+
long_description_markdown_filename='README.md',
1017
license='MIT',
1118
py_modules=['tldr'],
1219
scripts=['tldr.py'],
1320
install_requires=['six', 'termcolor', 'colorama'],
1421
tests_require=[
1522
'pytest-runner',
1623
],
24+
setup_requires=setup_requires,
1725
entry_points={
1826
'console_scripts': ['tldr = tldr:main']
1927
},

0 commit comments

Comments
 (0)