Skip to content

Commit abe408e

Browse files
Merge pull request #585 from chinmaychahar/master
Update long_description in setup.py.twig
2 parents 47ab22e + a795637 commit abe408e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/python/setup.py.twig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
import setuptools
22

3+
long_description: str
4+
5+
with open("README.md", "r", encoding="utf-8") as readme_file_desc:
6+
long_description = readme_file_desc.read()
7+
38
setuptools.setup(
49
name = '{{spec.title | caseSnake}}',
510
packages = ['{{spec.title | caseSnake}}', '{{spec.title | caseSnake}}/services'],
611
version = '{{sdk.version}}',
712
license='{{spec.licenseName}}',
813
description = '{{sdk.shortDescription}}',
14+
long_description = long_description,
15+
long_description_content_type = 'text/markdown',
916
author = '{{spec.contactName}}',
1017
author_email = '{{spec.contactEmail}}',
1118
maintainer = '{{spec.contactName}}',

0 commit comments

Comments
 (0)