From fc8cdd22230506fe6080f80d511df5f6be857e90 Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Fri, 20 Feb 2026 16:09:10 -0800 Subject: [PATCH 1/2] chore: add [project] section and dependencies to pyproject.toml --- pyproject.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 1c0a283..e3f65b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,17 @@ +[project] +name = "bolt-python-custom-step-template" +version = "0.1.0" +requires-python = ">=3.11" +dependencies = [ + "slack-bolt==1.27.0", +] + +[project.optional-dependencies] +dev = [ + "pytest==9.0.2", + "ruff==0.14.14", +] + [tool.ruff] line-length = 125 From 0642b445273868e956b7c0af3e564dbdb22b3ae9 Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Mon, 19 Oct 2026 09:01:15 -0600 Subject: [PATCH 2/2] chore: replace requirements.txt with pyproject.toml dependencies Remove requirements.txt so pyproject.toml is the single source of dependencies, per review. Sync the pinned versions with the ones requirements.txt had, install with `pip install -e ".[dev]"` in CI and the README, and limit setuptools package discovery to `listeners` so the editable install works with the flat layout. Set requires-python to the oldest version CI tests and the version to 0.0.0, matching bolt-python-starter-template#71. --- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 2 +- README.md | 2 +- pyproject.toml | 13 ++++++++----- requirements.txt | 3 --- 5 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a83e291..280dab2 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 -e ".[dev]" - name: Lint with ruff run: | ruff check diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 365203f..ae38401 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 -e ".[dev]" - name: Run all tests run: | pytest . diff --git a/README.md b/README.md index 551d8d4..adfbc33 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ source .venv/bin/activate # for Windows OS, .\.venv\Scripts\Activate instead sh #### Install dependencies ```sh -pip3 install -r requirements.txt +pip3 install -e ".[dev]" ``` diff --git a/pyproject.toml b/pyproject.toml index e3f65b0..aaa0287 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,17 +1,20 @@ [project] name = "bolt-python-custom-step-template" -version = "0.1.0" -requires-python = ">=3.11" +version = "0.0.0" +requires-python = ">=3.10" dependencies = [ - "slack-bolt==1.27.0", + "slack-bolt==1.30.0", ] [project.optional-dependencies] dev = [ - "pytest==9.0.2", - "ruff==0.14.14", + "pytest==9.1.1", + "ruff==0.16.9", ] +[tool.setuptools.packages.find] +include = ["listeners*"] + [tool.ruff] line-length = 125 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index cb0db96..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -slack-bolt==1.30.0 -pytest==9.1.1 -ruff==0.16.9