Skip to content

Commit 114063d

Browse files
authored
Add Python 3.10 to the supported versions (#1129)
1 parent 6ce55a3 commit 114063d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
timeout-minutes: 10
1313
strategy:
1414
matrix:
15-
python-version: ['3.6', '3.7', '3.8', '3.9']
15+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
1616
env:
1717
PYTHON_SLACK_SDK_MOCK_SERVER_MODE: 'threading'
1818
#CI_UNSTABLE_TESTS_SKIP_ENABLED: '1'

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
long_description = readme.read()
1818

1919
validate_dependencies = [
20-
"pytest>=5.4,<6",
20+
"pytest>=6.2.5,<7",
2121
"pytest-asyncio<1", # for async
2222
"Flask-Sockets>=0.2,<1",
2323
"Flask>=1,<2", # TODO: Flask-Sockets is not yet compatible with Flask 2.x
@@ -277,6 +277,7 @@ def run(self):
277277
"Programming Language :: Python :: 3.7",
278278
"Programming Language :: Python :: 3.8",
279279
"Programming Language :: Python :: 3.9",
280+
"Programming Language :: Python :: 3.10",
280281
],
281282
keywords="slack slack-api web-api slack-rtm websocket chat chatbot chatops",
282283
packages=find_packages(
@@ -310,7 +311,8 @@ def run(self):
310311
# InstallationStore/OAuthStateStore
311312
"SQLAlchemy>=1,<2",
312313
# Socket Mode
313-
"websockets>=9.1,<10",
314+
# websockets 9 is not compatible with Python 3.10
315+
"websockets>=10,<11" if sys.version_info.minor > 6 else "websockets>=9.1,<10",
314316
"websocket-client>=1,<2",
315317
],
316318
},

0 commit comments

Comments
 (0)