forked from Parquery/swagger-to
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (52 loc) · 2.18 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import os
from setuptools import setup, find_packages
# pylint: disable=redefined-builtin
here = os.path.abspath(os.path.dirname(__file__)) # pylint: disable=invalid-name
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read() # pylint: disable=invalid-name
setup(
name='swagger_to',
version='4.1.0', # Don't forget to update changelog!
description='Generate server and client code from Swagger (OpenAPI 2.0) specification',
long_description=long_description,
url='https://github.com/Parquery/swagger-to',
author='Marko Ristin',
author_email='[email protected]',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
license="License :: OSI Approved :: MIT License",
keywords='swagger code generation python elm go typescript server client angular',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
install_requires=['pyyaml>=3.12', 'jinja2>=2.10,<3', 'icontract>=2.0.1,<3', 'jsonschema>=3,<4'],
extras_require={
'dev': [
'mypy==0.782',
'pylint==2.5.3',
'yapf==0.20.2',
'pydocstyle>=3.0.0,<4',
'requests_mock>=1.8.0',
],
},
py_modules=['swagger_to'],
package_data={"swagger_to": ["py.typed"]},
entry_points={
'console_scripts': [
'swagger_to_go_server.py = swagger_to.bin.swagger_to_go_server:main',
'swagger_to_py_client.py = swagger_to.bin.swagger_to_py_client:main',
'swagger_to_ts_angular5_client.py = swagger_to.bin.swagger_to_ts_angular5_client:main',
'swagger_to_elm_client.py = swagger_to.bin.swagger_to_elm_client:main',
'swagger_style.py = swagger_to.bin.swagger_style:main',
],
})