Skip to content

Commit a3adffa

Browse files
chore: move dependencies to pyproject.toml (#1360)
1 parent d6c0c2f commit a3adffa

File tree

11 files changed

+13
-26
lines changed

11 files changed

+13
-26
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,3 @@ updates:
1212
directory: "/"
1313
schedule:
1414
interval: "monthly"
15-
- package-ecosystem: "npm"
16-
directory: "/docs"
17-
schedule:
18-
interval: "monthly"
19-
groups:
20-
docusaurus:
21-
patterns:
22-
- "@docusaurus/*"
23-
react:
24-
patterns:
25-
- "react"
26-
- "react-dom"

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install synchronous dependencies
3838
run: |
3939
pip install -U pip
40-
pip install -r requirements.txt
40+
pip install .
4141
pip install -r requirements/testing_without_asyncio.txt
4242
- name: Run tests without aiohttp
4343
run: |

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "slack_bolt"
7-
dynamic = ["version", "readme", "dependencies", "authors"]
7+
dynamic = ["version", "readme", "authors"]
88
description = "The Bolt Framework for Python"
99
license = { text = "MIT" }
1010
classifiers = [
@@ -20,6 +20,7 @@ classifiers = [
2020
"Operating System :: OS Independent",
2121
]
2222
requires-python = ">=3.7"
23+
dependencies = ["slack_sdk>=3.35.0,<4"]
2324

2425

2526
[project.urls]
@@ -31,7 +32,6 @@ include = ["slack_bolt*"]
3132
[tool.setuptools.dynamic]
3233
version = { attr = "slack_bolt.version.__version__" }
3334
readme = { file = ["README.md"], content-type = "text/markdown" }
34-
dependencies = { file = ["requirements.txt"] }
3535

3636
[tool.distutils.bdist_wheel]
3737
universal = true

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/build_pypi_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cd ${script_dir}/..
55
rm -rf ./slack_bolt.egg-info
66

77
pip install -U pip && \
8-
pip install twine build && \
8+
pip install -U twine build && \
99
rm -rf dist/ build/ slack_bolt.egg-info/ && \
1010
python -m build --sdist --wheel && \
1111
twine check dist/*

scripts/deploy_to_pypi_org.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cd ${script_dir}/..
55
rm -rf ./slack_bolt.egg-info
66

77
pip install -U pip && \
8-
pip install twine build && \
8+
pip install -U twine build && \
99
rm -rf dist/ build/ slack_bolt.egg-info/ && \
1010
python -m build --sdist --wheel && \
1111
twine check dist/* && \

scripts/deploy_to_test_pypi_org.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cd ${script_dir}/..
55
rm -rf ./slack_bolt.egg-info
66

77
pip install -U pip && \
8-
pip install twine build && \
8+
pip install -U twine build && \
99
rm -rf dist/ build/ slack_bolt.egg-info/ && \
1010
python -m build --sdist --wheel && \
1111
twine check dist/* && \

scripts/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ script_dir=`dirname $0`
55
cd ${script_dir}/..
66

77
pip install -U pip
8-
pip install -r requirements/tools.txt
8+
pip install -U -r requirements/tools.txt
99

1010
black slack_bolt/ tests/

scripts/install_all_and_run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pip uninstall python-lambda
1515

1616
test_target="$1"
1717

18-
pip install -e .
18+
pip install -U -e .
1919

2020
if [[ $test_target != "" ]]
2121
then

scripts/run_flake8.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
script_dir=$(dirname $0)
55
cd ${script_dir}/.. && \
6-
pip install -r requirements/tools.txt && \
6+
pip install -U -r requirements/tools.txt && \
77
flake8 slack_bolt/ && flake8 examples/

0 commit comments

Comments
 (0)