forked from loafle/openapi-generator-original
Enable the creation of the entrypoint so that the server can be started using a named command instead of needing to always use `python -m` to run the server.
36 lines
1020 B
Python
36 lines
1020 B
Python
# coding: utf-8
|
|
|
|
import sys
|
|
from setuptools import setup, find_packages
|
|
|
|
NAME = "swagger_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"]
|
|
|
|
setup(
|
|
name=NAME,
|
|
version=VERSION,
|
|
description="Swagger Petstore",
|
|
author_email="apiteam@swagger.io",
|
|
url="",
|
|
keywords=["Swagger", "Swagger Petstore"],
|
|
install_requires=REQUIRES,
|
|
packages=find_packages(),
|
|
package_data={'': ['swagger/swagger.yaml']},
|
|
include_package_data=True,
|
|
entry_points={
|
|
'console_scripts': ['swagger_server=swagger_server.__main__:main']},
|
|
long_description="""\
|
|
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
"""
|
|
)
|
|
|