github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/python/setup.mustache (about)

     1  # coding: utf-8
     2  
     3  {{>partial_header}}
     4  
     5  from setuptools import setup, find_packages  # noqa: H301
     6  
     7  NAME = "{{{projectName}}}"
     8  VERSION = "{{packageVersion}}"
     9  {{#apiInfo}}
    10  {{#apis}}
    11  {{#-last}}
    12  # To install the library, run the following
    13  #
    14  # python setup.py install
    15  #
    16  # prerequisite: setuptools
    17  # http://pypi.python.org/pypi/setuptools
    18  
    19  REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
    20  {{#asyncio}}
    21  REQUIRES.append("aiohttp >= 3.0.0")
    22  {{/asyncio}}
    23  {{#tornado}}
    24  REQUIRES.append("tornado>=4.2,<5")
    25  {{/tornado}}
    26  
    27  setup(
    28      name=NAME,
    29      version=VERSION,
    30      description="{{appName}}",
    31      author="{{#infoName}}{{infoName}}{{/infoName}}{{^infoName}}OpenAPI Generator community{{/infoName}}",
    32      author_email="{{#infoEmail}}{{infoEmail}}{{/infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}",
    33      url="{{packageUrl}}",
    34      keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
    35      install_requires=REQUIRES,
    36      packages=find_packages(exclude=["test", "tests"]),
    37      include_package_data=True,
    38      {{#licenseInfo}}license="{{licenseInfo}}",
    39      {{/licenseInfo}}long_description="""\
    40      Phrase Strings is a translation management platform for software projects. You can collaborate on language file translation with your team or order translations through our platform. The API allows you to import locale files, download locale files, tag keys or interact in other ways with the localization data stored in Phrase Strings for your account.
    41      """
    42  )
    43  {{/-last}}
    44  {{/apis}}
    45  {{/apiInfo}}