Skip to content

Commit 0cdacc0

Browse files
author
EC2 Default User
committed
chore: prefer pyproject.toml over requirements.txt
1 parent 7566b6b commit 0cdacc0

4 files changed

Lines changed: 32 additions & 9 deletions

File tree

.github/workflows/ruff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
pip install -U pip
25-
pip install -r requirements.txt
25+
pip install -e ".[dev]"
2626
- name: Lint and check formatting with ruff
2727
run: |
2828
ruff check .

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ python3 -m venv .venv
9090
source .venv/bin/activate
9191

9292
# Install the dependencies
93-
pip install -r requirements.txt
93+
pip install -e ".[dev]"
9494

9595
# Start your local server
9696
python3 app.py

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "bolt-python-ai-chatbot"
7+
version = "0.1.0"
8+
requires-python = ">=3.10"
9+
dependencies = [
10+
"slack-bolt==1.28.0",
11+
"slack-cli-hooks==0.3.0",
12+
"openai==2.33.0",
13+
"anthropic==0.97.0",
14+
"google-cloud-aiplatform==1.149.0",
15+
]
16+
17+
[project.optional-dependencies]
18+
dev = [
19+
"pytest",
20+
"ruff",
21+
]
22+
23+
test = [
24+
"pytest",
25+
]
26+
27+
28+
[tool.setuptools.packages.find]
29+
include = ["ai*", "listeners*", "state_store*"]
30+
131
[tool.ruff]
232
[tool.ruff.lint]
333
[tool.ruff.format]

requirements.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)