Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ setup(
name=NAME,
version=VERSION,
description="{{appName}}",
author="{{infoName}}",
Copy link
Member

@wing328 wing328 Oct 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saigiridhar21 Can we make it default to "OpenAPI Generator community" similar to what you've done in the R client templates?

Same for author_email and license

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wing328 sure.

author_email="{{infoEmail}}",
url="{{packageUrl}}",
keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
install_requires=REQUIRES,
extras_require=EXTRAS,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="{{licenseInfo}}",
long_description="""\
{{appDescription}} # noqa: E501
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ setup(
name=NAME,
version=VERSION,
description="{{appName}}",
author="{{infoName}}",
author_email="{{infoEmail}}",
url="{{packageUrl}}",
keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="{{licenseInfo}}",
long_description="""\
{{appDescription}} # noqa: E501
"""
Expand Down
2 changes: 2 additions & 0 deletions 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="",
author_email="",
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
2 changes: 2 additions & 0 deletions 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="",
author_email="",
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
2 changes: 2 additions & 0 deletions 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="",
author_email="",
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
2 changes: 2 additions & 0 deletions 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="",
author_email="",
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