Skip to content

Commit

Permalink
[python][metadata]: Adding license and author fields (#4318)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
saigiridhar21 authored and wing328 committed Nov 3, 2019
1 parent fe3b59d commit ea60098
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
)
Expand Down
4 changes: 3 additions & 1 deletion samples/client/petstore/python-asyncio/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
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
"""
Expand Down
4 changes: 3 additions & 1 deletion samples/client/petstore/python-experimental/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@
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
"""
Expand Down
4 changes: 3 additions & 1 deletion samples/client/petstore/python-tornado/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
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
"""
Expand Down
4 changes: 3 additions & 1 deletion samples/client/petstore/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
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
"""
Expand Down
4 changes: 3 additions & 1 deletion samples/openapi3/client/petstore/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
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
"""
Expand Down

0 comments on commit ea60098

Please sign in to comment.