forked from python-microservices/pyms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
130 lines (116 loc) · 3.33 KB
/
Copy pathsetup.py
File metadata and controls
130 lines (116 loc) · 3.33 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Copyright (c) 2018 by Alberto Vara <albertovara@paradigmadigital.com>
import codecs
import os
from setuptools import find_packages, setup
author = __import__("pyms").__author__
author_email = __import__("pyms").__email__
version = __import__("pyms").__version__
if os.path.exists("README.md"):
long_description = codecs.open("README.md", "r", "utf-8").read()
else:
long_description = ""
install_min_requires = [
"flask>=2.0.0",
"python-json-logger>=2.0.0",
"pyyaml>=5.3.1",
"anyconfig>=0.10.1",
"cryptography>=3.4.5",
]
install_crypt_requires = [
"cryptography>=3.4.7",
]
install_aws_requires = [
"boto3>=1.17.71",
]
install_request_requires = [
"requests>=2.25.0",
]
install_swagger_requires = [
"connexion[swagger-ui]>=2.7.0",
"swagger-ui-bundle>=0.0.6",
"semver>=2.10.1",
"prance>=0.20.2",
]
install_traces_requires = [
"jaeger-client>=4.3.0",
"flask-opentracing>=1.1.0",
"opentracing>=2.4.0",
"opentracing-instrumentation>=3.2.1",
"tornado>=4.3,<6.0",
]
install_metrics_requires = [
"prometheus_client>=0.10.1",
]
install_service_discovery_requires = [
"py-ms-consulate>=1.0.0",
]
install_tests_requires = [
"requests-mock>=1.9.2",
"coverage>=5.4",
"pytest>=6.1.0",
"pytest-cov>=2.10.1",
"pylint>=2.6.0",
"flake8>=3.8.2",
"tox>=3.23.1",
"bandit>=1.7.0",
"mkdocs>=1.1.2",
"lightstep>=4.4.8",
"safety>=1.10.3",
"mypy>=0.800",
"pre-commit>=2.10.1",
"black>=20.8b1",
"isort>=5.6.4",
]
install_all_requires = (
install_request_requires
+ install_swagger_requires
+ install_traces_requires
+ install_metrics_requires
+ install_crypt_requires
+ install_aws_requires
+ install_service_discovery_requires
)
setup(
name="py-ms",
version=version,
author=author,
author_email=author_email,
description="Library of utils to create REST Python Microservices",
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Flask",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
license="License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
platforms=["any"],
keywords="",
url="https://github.com/python-microservices/pyms/",
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests", "*.examples", "*.examples.*", "examples.*", "examples"]
),
setup_requires=[
"pytest-runner>=5.3.0",
],
install_requires=install_min_requires,
extras_require={
"all": install_all_requires,
"request": install_request_requires,
"swagger": install_swagger_requires,
"traces": install_traces_requires,
"metrics": install_metrics_requires,
"crypt": install_crypt_requires,
"aws": install_aws_requires,
"consul": install_service_discovery_requires,
"tests": install_tests_requires,
},
tests_require=install_all_requires + install_tests_requires,
include_package_data=True,
entry_points={"console_scripts": ["pyms = pyms.cmd.main:Command"]},
zip_safe=True,
)