From bb5097bb7b9d851b1cfc6f48b6e57b12338c36ca Mon Sep 17 00:00:00 2001 From: "slack-samples[bot]" <169401055+slack-samples[bot]@users.noreply.github.com> Date: Thu, 7 May 2026 06:32:19 +0000 Subject: [PATCH] chore: prefer pyproject.toml over requirements.txt --- .github/workflows/lint.yml | 2 +- .github/workflows/pytest.yml | 2 +- README.md | 2 +- pyproject.toml | 32 ++++++++++++++++++++++++++++---- requirements.txt | 5 ----- 5 files changed, 31 insertions(+), 12 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 51bf697..058e288 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/pytest.yml b/.github/workflows/pytest.yml index e0e7f39..cbade7d 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: | pip install -U pip - pip install -r requirements.txt + pip install -e ".[dev]" - name: Test with pytest run: | pytest tests/ diff --git a/README.md b/README.md index b298561..a0e3550 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ python3 -m venv .venv source .venv/bin/activate # Install the dependencies -pip3 install -r requirements.txt +pip install -e ".[dev]" # Start your local server python3 app.py diff --git a/pyproject.toml b/pyproject.toml index 1c0a283..06b1c75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,16 +1,40 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "bolt-python-jira-functions" +version = "0.1.0" +requires-python = ">=3.10" +dependencies = [ + "slack-bolt==1.28.0", + "requests==2.33.1", + "Flask==3.1.3", +] + +[project.optional-dependencies] +dev = [ + "pytest==9.0.3", + "ruff==0.15.12", +] + +test = [ + "pytest==9.0.3", +] + + +[tool.setuptools.packages.find] +include = ["jira*", "listeners*", "utils*"] + [tool.ruff] line-length = 125 [tool.ruff.lint] ignore = [] select = [ - # pycodestyle error "E", - # pycodestyle warning "W", - # Pyflakes "F", - # isort "I", ] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 739c4ce..0000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -slack-bolt==1.28.0 -requests==2.33.1 -Flask==3.1.3 -pytest==9.0.3 -ruff==0.15.12