Skip to content

Commit f441848

Browse files
committed
Added README.md as long_description for PyPI
1 parent 00cfbe4 commit f441848

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
@@ -59,13 +59,19 @@ def build_extension(self, ext):
5959
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
6060
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
6161

62+
63+
this_directory = os.path.abspath(os.path.dirname(__file__))
64+
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
65+
long_description = f.read()
66+
6267
setup(
6368
name='eos-py',
6469
version='0.16.0',
6570
author='Patrik Huber',
6671
author_email='[email protected]',
6772
description='Python bindings for eos - A lightweight 3D Morphable Face Model fitting library in modern C++11/14',
68-
long_description='',
73+
long_description=long_description,
74+
long_description_content_type='text/markdown',
6975
url='https://github.com/patrikhuber/eos',
7076
license='Apache-2.0',
7177
ext_modules=[CMakeExtension('eos')],

0 commit comments

Comments
 (0)