From f3eebd4555641ecd90213fa1d60fed89ded857f1 Mon Sep 17 00:00:00 2001 From: Carmen Quan Date: Fri, 10 Dec 2021 13:30:49 -0800 Subject: [PATCH 1/2] updating python markdown property --- .../src/main/resources/python-legacy/setup.mustache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/python-legacy/setup.mustache b/modules/openapi-generator/src/main/resources/python-legacy/setup.mustache index 71f0e122b933..efb15b97e7a2 100644 --- a/modules/openapi-generator/src/main/resources/python-legacy/setup.mustache +++ b/modules/openapi-generator/src/main/resources/python-legacy/setup.mustache @@ -36,7 +36,8 @@ setup( packages=find_packages(exclude=["test", "tests"]), include_package_data=True, {{#licenseInfo}}license="{{.}}", - {{/licenseInfo}}long_description="""\ + {{/licenseInfo}}long_description_content_type='text/markdown', + long_description="""\ {{appDescription}} # noqa: E501 """ ) From 95bc865f6edb25f5a997ef089a8d4a45b633d5ec Mon Sep 17 00:00:00 2001 From: Carmen Quan Date: Wed, 5 Jan 2022 15:08:55 -0800 Subject: [PATCH 2/2] adding to samples --- samples/client/petstore/python-asyncio/setup.py | 1 + samples/client/petstore/python-legacy/setup.py | 1 + samples/client/petstore/python-tornado/setup.py | 1 + samples/openapi3/client/petstore/python-legacy/setup.py | 1 + 4 files changed, 4 insertions(+) diff --git a/samples/client/petstore/python-asyncio/setup.py b/samples/client/petstore/python-asyncio/setup.py index b9fc72e727fe..974fea3373fe 100644 --- a/samples/client/petstore/python-asyncio/setup.py +++ b/samples/client/petstore/python-asyncio/setup.py @@ -36,6 +36,7 @@ packages=find_packages(exclude=["test", "tests"]), include_package_data=True, license="Apache-2.0", + long_description_content_type='text/markdown', long_description="""\ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 """ diff --git a/samples/client/petstore/python-legacy/setup.py b/samples/client/petstore/python-legacy/setup.py index 217134e79476..58abfa11b8df 100644 --- a/samples/client/petstore/python-legacy/setup.py +++ b/samples/client/petstore/python-legacy/setup.py @@ -35,6 +35,7 @@ packages=find_packages(exclude=["test", "tests"]), include_package_data=True, license="Apache-2.0", + long_description_content_type='text/markdown', long_description="""\ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 """ diff --git a/samples/client/petstore/python-tornado/setup.py b/samples/client/petstore/python-tornado/setup.py index c6e7ddc51bf4..db9d6f380256 100644 --- a/samples/client/petstore/python-tornado/setup.py +++ b/samples/client/petstore/python-tornado/setup.py @@ -36,6 +36,7 @@ packages=find_packages(exclude=["test", "tests"]), include_package_data=True, license="Apache-2.0", + long_description_content_type='text/markdown', long_description="""\ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 """ diff --git a/samples/openapi3/client/petstore/python-legacy/setup.py b/samples/openapi3/client/petstore/python-legacy/setup.py index 217134e79476..58abfa11b8df 100755 --- a/samples/openapi3/client/petstore/python-legacy/setup.py +++ b/samples/openapi3/client/petstore/python-legacy/setup.py @@ -35,6 +35,7 @@ packages=find_packages(exclude=["test", "tests"]), include_package_data=True, license="Apache-2.0", + long_description_content_type='text/markdown', long_description="""\ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 """