From 0be3c27a327aa4d08cc59772bb280f94d9deff88 Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Mon, 19 Oct 2026 11:26:10 -0600 Subject: [PATCH] chore: replace requirements.txt with pyproject.toml dependencies --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- pyproject.toml | 19 +++++++++++++++++++ requirements.txt | 5 ----- 4 files changed, 22 insertions(+), 8 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f03877f..fdfa10a 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 tests/ -v diff --git a/README.md b/README.md index b298561..0de8a64 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 +pip3 install -e ".[dev]" # Start your local server python3 app.py diff --git a/pyproject.toml b/pyproject.toml index 1c0a283..331288a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,22 @@ +[project] +name = "bolt-python-jira-functions" +version = "0.0.0" +requires-python = ">=3.10" +dependencies = [ + "slack-bolt==1.30.0", + "requests==2.34.2", + "Flask==3.1.3", +] + +[project.optional-dependencies] +dev = [ + "pytest==9.1.1", + "ruff==0.16.9", +] + +[tool.setuptools.packages.find] +include = ["jira*", "listeners*", "utils*"] + [tool.ruff] line-length = 125 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 2b51838..0000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -slack-bolt==1.30.0 -requests==2.34.2 -Flask==3.1.3 -pytest==9.1.1 -ruff==0.16.9