Skip to content

Commit

Permalink
Adapt for python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamBergamin committed Nov 28, 2023
1 parent 9ffaa8a commit bfd020d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install .
pip install -U pip
pip install .
pip install -r requirements/async.txt
pip install -r requirements/adapter.txt
pip install -r requirements/testing.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install .
pip install -U pip
pip install -r requirements.txt
pip install -r requirements/testing_without_asyncio.txt
- name: Run tests without aiohttp
run: |
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ build-backend = "setuptools.build_meta"

[project]
name = "slack_bolt"
dynamic = ["version", "readme"]
dynamic = ["version", "readme", "dependencies"]
description = "The Bolt Framework for Python"
license = { text = "MIT" }
authors = [{ name = "Slack Technologies, LLC", email = "[email protected]" }]
dependencies = ["slack_sdk>=3.25.0,<4"]
classifiers = [
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
Expand All @@ -33,6 +32,7 @@ include = ["slack_bolt*"]
[tool.setuptools.dynamic]
version = { attr = "slack_bolt.version.__version__" }
readme = { file = ["README.md"], content-type = "text/markdown" }
dependencies = { file = ["requirements.txt"] }

[tool.distutils.bdist_wheel]
universal = true
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
slack_sdk>=3.25.0,<4
3 changes: 2 additions & 1 deletion requirements/testing.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pip install -r requirements/testing.txt
-r testing_without_asyncio.txt

pytest-asyncio>=0.18.2,<1
pytest-asyncio>=0.16.0; python_version=="3.6"
pytest-asyncio>=0.18.2,<1; python_version>"3.6"
aiohttp>=3,<4
8 changes: 7 additions & 1 deletion scripts/install_all_and_run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ rm -rf ./slack_bolt.egg-info
pip uninstall python-lambda

test_target="$1"
python_version=`python --version | awk '{print $2}'`

pip install -e .
if [ ${python_version:0:3} == "3.6" ]
then
pip install -r requirements.txt
else
pip install -e .
fi

if [[ $test_target != "" ]]
then
Expand Down

0 comments on commit bfd020d

Please sign in to comment.