Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Oct 17, 2021
1 parent 744a6cb commit ab71d2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: |
python setup.py install
pip install -U pip
pip install "pytest>=5,<6" "pytest-cov>=2,<3" "flask_sockets>0.2,<1"
pip install -e ".[testing_without_asyncio]"
- name: Run tests without aiohttp
run: |
pytest tests/slack_bolt/
Expand Down
13 changes: 9 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
test_dependencies = [
"pytest>=6.2.5,<7",
"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.9b0",
]

async_test_dependencies = test_dependencies + [
"pytest-asyncio<1", # for async
"aiohttp>=3,<4", # for async
]

setuptools.setup(
name="slack_bolt",
version=__version__,
Expand All @@ -45,7 +48,7 @@
"slack_sdk>=3.9.0,<4",
],
setup_requires=["pytest-runner==5.2"],
tests_require=test_dependencies,
tests_require=async_test_dependencies,
test_suite="tests",
extras_require={
# pip install -e ".[async]"
Expand Down Expand Up @@ -84,8 +87,10 @@
# Socket Mode 3rd party implementation
"websocket_client>=1,<2",
],
# pip install -e ".[testing_without_asyncio]"
"testing_without_asyncio": test_dependencies,
# pip install -e ".[testing]"
"testing": test_dependencies,
"testing": async_test_dependencies,
},
classifiers=[
"Programming Language :: Python :: 3.6",
Expand Down

0 comments on commit ab71d2d

Please sign in to comment.