diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e78f948..3457390 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 . @@ -44,7 +44,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 c726123..95e4430 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ source .venv/bin/activate # for Windows OS, .\.venv\Scripts\Activate instead sh #### Install dependencies ```sh -pip install -r requirements.txt +pip install -e ".[dev]" ``` diff --git a/pyproject.toml b/pyproject.toml index b800495..a334bb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,20 @@ +[project] +name = "bolt-python-starter-template" +version = "0.0.0" +requires-python = ">=3.11" +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 exclude = [".venv", "venv"] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index addccd7..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -pytest==9.1.1 -ruff==0.16.9 -slack-bolt==1.30.0