Skip to content

Commit db6cdd8

Browse files
authored
Fix #106 Run tests with Flask 3 and newer Python runtimes (#107)
1 parent 2884d7d commit db6cdd8

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.github/workflows/ci-build.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,28 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
# Avoiding -latest due to https://github.com/actions/setup-python/issues/162
12+
runs-on: ubuntu-20.04
1213
timeout-minutes: 5
1314
strategy:
1415
matrix:
15-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
16+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
1617
steps:
17-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1819
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v5
2021
with:
2122
python-version: ${{ matrix.python-version }}
2223
- name: Install dependencies
2324
run: |
24-
pip install -U pip pytest # python 2.7 requires pytest 4
25-
python setup.py install
26-
pip install flake8
25+
pip install -U pip
26+
pip install -e .
2727
pip install -r requirements-dev.txt
2828
- name: Run all tests
2929
run: |
3030
python_version=`python -V`
31-
if [ ${python_version:7:3} == "3.9" ]; then
31+
if [ ${python_version:7:3} == "3.12" ]; then
32+
pip install -U flake8
3233
flake8 slackeventsapi
3334
pytest --cov-report= --cov=slackeventsapi tests && bash <(curl -s https://codecov.io/bash)
3435
else

requirements-dev.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
coveralls<2
2-
pytest>=6,<7
3-
pytest-flask<2
4-
pytest-mock<2
5-
pytest-cov<3
6-
pytest-pythonpath<0.8
7-
testfixtures<7
8-
werkzeug<2
1+
flask
2+
werkzeug
3+
pytest
4+
pytest-mock
5+
pytest-cov
6+
pytest-flask
7+
testfixtures

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def find_version(*file_paths):
3434
long_description_content_type='text/x-rst',
3535
long_description=long_description,
3636
install_requires=[
37-
'flask>=2,<3',
37+
'flask>=2,<4',
3838
'pyee>=8',
3939
],
4040
classifiers=[
@@ -50,5 +50,7 @@ def find_version(*file_paths):
5050
'Programming Language :: Python :: 3.8',
5151
'Programming Language :: Python :: 3.9',
5252
'Programming Language :: Python :: 3.10',
53+
'Programming Language :: Python :: 3.11',
54+
'Programming Language :: Python :: 3.12',
5355
],
5456
zip_safe=False)

0 commit comments

Comments
 (0)