forked from loafle/openapi-generator-original
* python: improve type generation with more specific typing * Annotate function parameters * Remove unused imports * remove unused files * remove temporary hack * remove lock file * fix Annotated import * support Python 3.7 * Regenerate code with typing-extensions * Fix setup.py * More Pydantic v2 compatibility * depend on pydantic v2 * fix client_echo tests * fix JSON serialization * Fix references * Skip circular dependency tests for now * Temporarily hide the "float" property The "float" property aliases the "float" type and completely breaks the model: all the properties that were "float" now become the type of the "float" property instead. * Fix errors * Import Literal from typing_extensions * Fix GitHub Action workflows * Fix Python 3.7 failure * Fix quotes * Apply suggestions from code review * Fix tests * split model imports from other modules imports * fix workflow * Comment the array unique items convertion, remove set translation * Replace alias usage
55 lines
1.5 KiB
Python
55 lines
1.5 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
OpenAPI Petstore
|
|
|
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
|
|
The version of the OpenAPI document: 1.0.0
|
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
|
|
Do not edit the class manually.
|
|
""" # noqa: E501
|
|
|
|
|
|
from setuptools import setup, find_packages # noqa: H301
|
|
|
|
# To install the library, run the following
|
|
#
|
|
# python setup.py install
|
|
#
|
|
# prerequisite: setuptools
|
|
# http://pypi.python.org/pypi/setuptools
|
|
NAME = "petstore-api"
|
|
VERSION = "1.0.0"
|
|
PYTHON_REQUIRES = ">=3.7"
|
|
REQUIRES = [
|
|
"urllib3 >= 1.25.3, < 2.1.0",
|
|
"python-dateutil",
|
|
"aiohttp >= 3.0.0",
|
|
"pem>=19.3.0",
|
|
"pycryptodome>=3.9.0",
|
|
"pydantic >= 2",
|
|
"aenum",
|
|
"typing-extensions >= 4.7.1",
|
|
]
|
|
|
|
setup(
|
|
name=NAME,
|
|
version=VERSION,
|
|
description="OpenAPI Petstore",
|
|
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_content_type='text/markdown',
|
|
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
|
|
package_data={"petstore_api": ["py.typed"]},
|
|
)
|