X Tutup
Skip to content

Commit eb72761

Browse files
committed
Rename slack_bolt.errors to slack_bolt.error for consistency and tweak setup.py
1 parent 9a65573 commit eb72761

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

setup.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,17 @@
3939
"slack_sdk==3.0.0a1",
4040
],
4141
extras_require={
42-
# pip install -e ".[testing]"
43-
# python -m pytest tests/scenario_tests/test_async_events.py
44-
"testing": test_dependencies,
45-
# pip install -e ".[adapters]"
46-
"adapters": [
47-
"aiohttp>=3,<4", # slackclient depends on aiohttp
42+
# pip install -e ".[async]"
43+
"async": [
44+
# async features heavily depends on aiohttp
45+
"aiohttp>=3,<4",
46+
],
47+
# pip install -e ".[adapter]"
48+
"adapter": [
49+
# any of async ones
50+
"aiohttp>=3,<4",
4851
# used only under src/slack_bolt/adapter
52+
"boto3<=2",
4953
"bottle>=0.12,<1",
5054
"chalice>=1,<2",
5155
"click>=7,<8", # for chalice
@@ -57,9 +61,9 @@
5761
"sanic>=20,<21",
5862
"starlette>=0.13,<1",
5963
"tornado>=6,<7",
60-
# used only under src/slack_sdk/*_store
61-
"boto3<=2",
62-
]
64+
],
65+
# pip install -e ".[testing]"
66+
"testing": test_dependencies,
6367
},
6468
classifiers=[
6569
"Programming Language :: Python :: 3.6",

src/slack_bolt/oauth/async_oauth_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from logging import Logger
44
from typing import Optional, List, Dict
55

6-
from slack_bolt.errors import BoltError
6+
from slack_bolt.error import BoltError
77
from slack_bolt.request import BoltRequest
88
from slack_bolt.response import BoltResponse
99
from slack_sdk.errors import SlackApiError

src/slack_bolt/oauth/oauth_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from logging import Logger
44
from typing import Optional, List, Dict
55

6-
from slack_bolt.errors import BoltError
6+
from slack_bolt.error import BoltError
77
from slack_bolt.request import BoltRequest
88
from slack_bolt.response import BoltResponse
99
from slack_sdk.errors import SlackApiError

0 commit comments

Comments
 (0)
X Tutup