github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/python/python-experimental/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 = [ 20 "urllib3 >= 1.15", 21 "six >= 1.10", 22 "certifi", 23 "python-dateutil", 24 "nulltype", 25 {{#asyncio}} 26 "aiohttp >= 3.0.0", 27 {{/asyncio}} 28 {{#tornado}} 29 "tornado>=4.2,<5", 30 {{/tornado}} 31 {{#hasHttpSignatureMethods}} 32 "pem>=19.3.0", 33 "pycryptodome>=3.9.0", 34 {{/hasHttpSignatureMethods}} 35 ] 36 EXTRAS = {':python_version <= "2.7"': ['future']} 37 38 setup( 39 name=NAME, 40 version=VERSION, 41 description="{{appName}}", 42 author="{{#infoName}}{{infoName}}{{/infoName}}{{^infoName}}OpenAPI Generator community{{/infoName}}", 43 author_email="{{#infoEmail}}{{infoEmail}}{{/infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}", 44 url="{{packageUrl}}", 45 keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"], 46 install_requires=REQUIRES, 47 extras_require=EXTRAS, 48 packages=find_packages(exclude=["test", "tests"]), 49 include_package_data=True, 50 {{#licenseInfo}}license="{{licenseInfo}}", 51 {{/licenseInfo}}long_description="""\ 52 {{appDescription}} # noqa: E501 53 """ 54 ) 55 {{/-last}} 56 {{/apis}} 57 {{/apiInfo}}