forked from loafle/openapi-generator-original
* Adds oneOf + anyOf schemas, models and tests to python-experimental * Adds setUpClass and tearDownClass * Removes newline in method_init_shared.mustache * Regenerated v3 spec sample for python-experimental * Fxes test for discard_unknown_keys * Moves new models into existing spec, regen python-exp and go-exp * Also fix python-exp windows file
50 lines
1.3 KiB
Python
50 lines
1.3 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: \" \\ # noqa: E501
|
|
|
|
The version of the OpenAPI document: 1.0.0
|
|
Generated by: https://openapi-generator.tech
|
|
"""
|
|
|
|
|
|
from setuptools import setup, find_packages # noqa: H301
|
|
|
|
NAME = "petstore-api"
|
|
VERSION = "1.0.0"
|
|
# To install the library, run the following
|
|
#
|
|
# python setup.py install
|
|
#
|
|
# prerequisite: setuptools
|
|
# http://pypi.python.org/pypi/setuptools
|
|
|
|
REQUIRES = [
|
|
"urllib3 >= 1.15",
|
|
"six >= 1.10",
|
|
"certifi",
|
|
"python-dateutil",
|
|
"nulltype",
|
|
]
|
|
EXTRAS = {':python_version <= "2.7"': ['future']}
|
|
|
|
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,
|
|
extras_require=EXTRAS,
|
|
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
|
|
"""
|
|
)
|