From ce74d8774aba6d460ccd998da1363773caea8beb Mon Sep 17 00:00:00 2001 From: Ale Mercado Date: Thu, 14 May 2026 16:17:39 -0400 Subject: [PATCH 1/2] chore: consolidate dependencies into pyproject.toml --- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 2 +- README.md | 12 +++++++++++- pyproject.toml | 14 ++++++++++++++ requirements.txt | 3 --- 5 files changed, 27 insertions(+), 6 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6838316..ae479a6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: | pip install -U pip - pip install -r requirements.txt + pip install ".[dev]" - name: Lint with ruff run: | ruff check diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a1b51b0..a02e413 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: | pip install -U pip - pip install -r requirements.txt + pip install ".[dev]" - name: Run all tests run: | pytest . diff --git a/README.md b/README.md index 551d8d4..d19c0ae 100644 --- a/README.md +++ b/README.md @@ -83,9 +83,19 @@ export SLACK_APP_TOKEN= #### Initializing the project +**Using Slack CLI:** + +```sh +slack create my-bolt-python-custom-step --template slack-samples/bolt-python-custom-step-template +cd my-bolt-python-custom-step +``` + +**Using git:** + ```sh git clone https://github.com/slack-samples/bolt-python-custom-step-template.git my-bolt-python-custom-step cd my-bolt-python-custom-step +slack init ``` #### Setup your python virtual environment @@ -98,7 +108,7 @@ source .venv/bin/activate # for Windows OS, .\.venv\Scripts\Activate instead sh #### Install dependencies ```sh -pip3 install -r requirements.txt +pip3 install ".[dev]" ``` diff --git a/pyproject.toml b/pyproject.toml index 1c0a283..a5951a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,17 @@ +[project] +name = "bolt-python-custom-step-template" +version = "0.1.0" +dependencies = [ + "slack-bolt==1.28.0", + "slack-cli-hooks<1.0.0", +] + +[project.optional-dependencies] +dev = [ + "pytest==9.0.3", + "ruff==0.15.12", +] + [tool.ruff] line-length = 125 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 2556880..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -slack-bolt==1.28.0 -pytest==9.0.3 -ruff==0.15.12 From 12a65b8a4eba3b144dfb796b556f1a90ce33833b Mon Sep 17 00:00:00 2001 From: Ale Mercado Date: Thu, 14 May 2026 22:25:58 -0400 Subject: [PATCH 2/2] chore: move slack-cli-hooks to dev dependencies --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a5951a2..cb12e7f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,13 +3,13 @@ name = "bolt-python-custom-step-template" version = "0.1.0" dependencies = [ "slack-bolt==1.28.0", - "slack-cli-hooks<1.0.0", ] [project.optional-dependencies] dev = [ "pytest==9.0.3", "ruff==0.15.12", + "slack-cli-hooks<1.0.0", ] [tool.ruff]