forked from slackapi/bolt-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·98 lines (92 loc) · 2.91 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
#!/usr/bin/env python
import os
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>=5,<6",
"pytest-cov>=2,<3",
"pytest-asyncio<1", # for async
"aiohttp>=3,<4", # for async
"Flask-Sockets>=0.2,<1",
"Werkzeug<2", # TODO: support Flask 2.x
"black==21.5b1",
]
setuptools.setup(
name="slack_bolt",
version=__version__,
license="MIT",
author="Slack Technologies, Inc.",
author_email="opensource@slack.com",
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.5.0,<4",
],
setup_requires=["pytest-runner==5.2"],
tests_require=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,<9",
],
# 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",
# TODO: Upgrade to v2
"moto<2", # For AWS tests
"bottle>=0.12,<1",
"boddle>=0.2,<0.3", # For Bottle app tests
"chalice>=1.22.4,<2",
"click>=7,<8", # for chalice
"CherryPy>=18,<19",
"Django>=3,<4",
"falcon>=2,<3",
"fastapi<1",
"Flask>=1,<2",
"Werkzeug<2", # TODO: support Flask 2.x
"pyramid>=1,<2",
"sanic>=20,<21",
"starlette>=0.13,<1",
"requests>=2,<3", # For starlette's TestClient
"tornado>=6,<7",
# server
"uvicorn<1",
"gunicorn>=20,<21",
# Socket Mode 3rd party implementation
"websocket_client>=1,<2",
],
# pip install -e ".[testing]"
"testing": 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 :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
)