Skip to content

Commit e671691

Browse files
authored
Add Python 3.10 to the supported versions (#497)
* Add Python 3.10 to the supported versions * Upgrade pytest to run tests in Python 3.10 * refactor
1 parent bfe6216 commit e671691

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/ci-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
timeout-minutes: 15
1414
strategy:
1515
matrix:
16-
python-version: ['3.6', '3.7', '3.8', '3.9']
16+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
1717
env:
1818
# default: multiprocessing
1919
# threading is more stable on GitHub Actions
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
python setup.py install
3030
pip install -U pip
31-
pip install "pytest>=5,<6" "pytest-cov>=2,<3" "flask_sockets>0.2,<1"
31+
pip install -e ".[testing_without_asyncio]"
3232
- name: Run tests without aiohttp
3333
run: |
3434
pytest tests/slack_bolt/

setup.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@
1313
long_description = fh.read()
1414

1515
test_dependencies = [
16-
"pytest>=5,<6",
16+
"pytest>=6.2.5,<7",
1717
"pytest-cov>=2,<3",
18-
"pytest-asyncio<1", # for async
19-
"aiohttp>=3,<4", # for async
2018
"Flask-Sockets>=0.2,<1",
2119
"Werkzeug<2", # TODO: support Flask 2.x
2220
"black==21.9b0",
2321
]
2422

23+
async_test_dependencies = test_dependencies + [
24+
"pytest-asyncio<1", # for async
25+
"aiohttp>=3,<4", # for async
26+
]
27+
2528
setuptools.setup(
2629
name="slack_bolt",
2730
version=__version__,
@@ -45,7 +48,7 @@
4548
"slack_sdk>=3.9.0,<4",
4649
],
4750
setup_requires=["pytest-runner==5.2"],
48-
tests_require=test_dependencies,
51+
tests_require=async_test_dependencies,
4952
test_suite="tests",
5053
extras_require={
5154
# pip install -e ".[async]"
@@ -84,14 +87,17 @@
8487
# Socket Mode 3rd party implementation
8588
"websocket_client>=1,<2",
8689
],
90+
# pip install -e ".[testing_without_asyncio]"
91+
"testing_without_asyncio": test_dependencies,
8792
# pip install -e ".[testing]"
88-
"testing": test_dependencies,
93+
"testing": async_test_dependencies,
8994
},
9095
classifiers=[
9196
"Programming Language :: Python :: 3.6",
9297
"Programming Language :: Python :: 3.7",
9398
"Programming Language :: Python :: 3.8",
9499
"Programming Language :: Python :: 3.9",
100+
"Programming Language :: Python :: 3.10",
95101
"Programming Language :: Python :: Implementation :: CPython",
96102
"License :: OSI Approved :: MIT License",
97103
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)