forked from slackapi/bolt-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·115 lines (107 loc) · 3.79 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
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
#!/usr/bin/env python
import os
import sys
import setuptools
here = os.path.abspath(os.path.dirname(__file__))
__version__ = None
exec(open(f"{here}/slack_bolt/version.py").read())
with open(f"{here}/README.md", "r") as fh:
long_description = fh.read()
test_dependencies = [
"pytest>=6.2.5,<7",
"pytest-cov>=3,<4",
"Flask-Sockets>=0.2,<1", # TODO: This module is not yet Flask 2.x compatible
"Werkzeug>=1,<2", # TODO: Flask-Sockets is not yet compatible with Flask 2.x
"itsdangerous==2.0.1", # TODO: Flask-Sockets is not yet compatible with Flask 2.x
"black==22.1.0",
]
adapter_test_dependencies = [
"moto>=3,<4", # For AWS tests
"docker>=5,<6", # Used by moto
"boddle>=0.2,<0.3", # For Bottle app tests
"Flask>=1,<2", # TODO: Flask-Sockets is not yet compatible with Flask 2.x
"Werkzeug>=1,<2", # TODO: Flask-Sockets is not yet compatible with Flask 2.x
"sanic-testing>=0.7" if sys.version_info.minor > 6 else "",
"requests>=2,<3", # For Starlette's TestClient
]
async_test_dependencies = test_dependencies + [
"pytest-asyncio<1", # for async
"aiohttp>=3,<4", # for async
]
setuptools.setup(
name="slack_bolt",
version=__version__,
license="MIT",
author="Slack Technologies, LLC",
author_email="[email protected]",
description="The Bolt Framework for Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/slackapi/bolt-python",
packages=setuptools.find_packages(
exclude=[
"examples",
"integration_tests",
"tests",
"tests.*",
]
),
include_package_data=True, # MANIFEST.in
install_requires=[
"slack_sdk>=3.9.0,<4",
],
setup_requires=["pytest-runner==5.2"],
tests_require=async_test_dependencies,
test_suite="tests",
extras_require={
# pip install -e ".[async]"
"async": [
# async features heavily depends on aiohttp
"aiohttp>=3,<4",
# Socket Mode 3rd party implementation
"websockets>=8,<10",
],
# pip install -e ".[adapter]"
# NOTE: any of async ones requires pip install -e ".[async]" too
"adapter": [
# used only under src/slack_bolt/adapter
"boto3<=2",
"bottle>=0.12,<1",
"chalice>=1.26.5,<2",
"click>=7,<8", # for chalice
"CherryPy>=18,<19",
"Django>=3,<5",
"falcon>=2,<4",
"fastapi>=0.70.0,<1",
"Flask>=1,<3",
"Werkzeug>=2,<3",
"pyramid>=1,<3",
"sanic>=21,<22" if sys.version_info.minor > 6 else "sanic>=20,<21",
"starlette>=0.14,<1",
"tornado>=6,<7",
# server
"uvicorn<1",
"gunicorn>=20,<21",
# Socket Mode 3rd party implementation
# Note: 1.2.2 has a regression (https://github.com/websocket-client/websocket-client/issues/769)
"websocket_client>=1.2.3,<2",
],
# pip install -e ".[testing_without_asyncio]"
"testing_without_asyncio": test_dependencies,
# pip install -e ".[testing]"
"testing": async_test_dependencies,
# pip install -e ".[adapter_testing]"
"adapter_testing": adapter_test_dependencies,
},
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
)