mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
* adopt python3.5+ syntax removing some residual python2 code, since it is not supported anymore, like: - no need for `six` anymore - no need for encoding utf8 in top file - remove `object` inheritance in base model - remove absolute import `__future__` * generate samples applying the new templates * update python ignore pattern ignore all the `.venv` folders
38 lines
920 B
Python
38 lines
920 B
Python
import sys
|
|
from setuptools import setup, find_packages
|
|
|
|
NAME = "openapi_server"
|
|
VERSION = "1.0.0"
|
|
|
|
# To install the library, run the following
|
|
#
|
|
# python setup.py install
|
|
#
|
|
# prerequisite: setuptools
|
|
# http://pypi.python.org/pypi/setuptools
|
|
|
|
REQUIRES = [
|
|
"connexion>=2.0.2",
|
|
"swagger-ui-bundle>=0.0.2",
|
|
"python_dateutil>=2.6.0"
|
|
]
|
|
|
|
setup(
|
|
name=NAME,
|
|
version=VERSION,
|
|
description="OpenAPI Petstore",
|
|
author_email="",
|
|
url="",
|
|
keywords=["OpenAPI", "OpenAPI Petstore"],
|
|
install_requires=REQUIRES,
|
|
packages=find_packages(),
|
|
package_data={'': ['openapi/openapi.yaml']},
|
|
include_package_data=True,
|
|
entry_points={
|
|
'console_scripts': ['openapi_server=openapi_server.__main__:main']},
|
|
long_description="""\
|
|
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
"""
|
|
)
|
|
|