[python][metadata]: Adding license and author fields (#4318)

* fix(license): Fixing the license and author information

* fix(license): Fixing the license and author information

* fix(metadata): Adding default values for contact details and license fields

* fix(metadata): Adding default values for contact details and license fields
This commit is contained in:
Sai Giridhar P 2019-11-03 12:28:39 +05:30 committed by William Cheng
parent fe3b59d3c5
commit ea600989f7
7 changed files with 23 additions and 9 deletions

View File

@ -29,14 +29,16 @@ setup(
name=NAME,
version=VERSION,
description="{{appName}}",
author_email="{{infoEmail}}",
author="{{#infoName}}{{infoName}}{{/infoName}}{{^infoName}}OpenAPI Generator community{{/infoName}}",
author_email="{{#infoEmail}}{{infoEmail}}{{/infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}",
url="{{packageUrl}}",
keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
install_requires=REQUIRES,
extras_require=EXTRAS,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
long_description="""\
{{#licenseInfo}}license="{{licenseInfo}}",
{{/licenseInfo}}long_description="""\
{{appDescription}} # noqa: E501
"""
)

View File

@ -28,13 +28,15 @@ setup(
name=NAME,
version=VERSION,
description="{{appName}}",
author_email="{{infoEmail}}",
author="{{#infoName}}{{infoName}}{{/infoName}}{{^infoName}}OpenAPI Generator community{{/infoName}}",
author_email="{{#infoEmail}}{{infoEmail}}{{/infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}",
url="{{packageUrl}}",
keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
long_description="""\
{{#licenseInfo}}license="{{licenseInfo}}",
{{/licenseInfo}}long_description="""\
{{appDescription}} # noqa: E501
"""
)

View File

@ -28,12 +28,14 @@ setup(
name=NAME,
version=VERSION,
description="OpenAPI Petstore",
author_email="",
author="OpenAPI Generator community",
author_email="team@openapitools.org",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="Apache-2.0",
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
"""

View File

@ -28,13 +28,15 @@ setup(
name=NAME,
version=VERSION,
description="OpenAPI Petstore",
author_email="",
author="OpenAPI Generator community",
author_email="team@openapitools.org",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"],
install_requires=REQUIRES,
extras_require=EXTRAS,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="Apache-2.0",
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
"""

View File

@ -28,12 +28,14 @@ setup(
name=NAME,
version=VERSION,
description="OpenAPI Petstore",
author_email="",
author="OpenAPI Generator community",
author_email="team@openapitools.org",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="Apache-2.0",
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
"""

View File

@ -27,12 +27,14 @@ setup(
name=NAME,
version=VERSION,
description="OpenAPI Petstore",
author_email="",
author="OpenAPI Generator community",
author_email="team@openapitools.org",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="Apache-2.0",
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
"""

View File

@ -27,12 +27,14 @@ setup(
name=NAME,
version=VERSION,
description="OpenAPI Petstore",
author_email="",
author="OpenAPI Generator community",
author_email="team@openapitools.org",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="Apache-2.0",
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
"""