Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3.10 to the supported versions #497

Merged
merged 3 commits into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
env:
# default: multiprocessing
# threading is more stable on GitHub Actions
Expand All @@ -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
16 changes: 11 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@
long_description = fh.read()

test_dependencies = [
"pytest>=5,<6",
"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,14 +87,17 @@
# 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",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down