diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8df3c0b..6390514 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Install dependencies run: | pip install -U pip - pip install -r requirements.txt + pip install -e ".[dev]" - name: Lint and check formatting run: | ruff check . @@ -45,7 +45,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 . -v 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 1c0a283..aaa0287 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,20 @@ +[project] +name = "bolt-python-custom-step-template" +version = "0.0.0" +requires-python = ">=3.10" +dependencies = [ + "slack-bolt==1.30.0", +] + +[project.optional-dependencies] +dev = [ + "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