diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 707856b..e34537a 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.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 and check formatting with ruff run: | ruff check . diff --git a/README.md b/README.md index 4c97d4b..3d34063 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ python3 -m venv .venv source .venv/bin/activate # Install the dependencies -pip install -r requirements.txt +pip install -e ".[dev]" # Start your local server python3 app.py diff --git a/pyproject.toml b/pyproject.toml index 6dca91c..b89e235 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,33 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "bolt-python-ai-chatbot" +version = "0.1.0" +requires-python = ">=3.10" +dependencies = [ + "slack-bolt==1.28.0", + "slack-cli-hooks==0.3.0", + "openai==2.33.0", + "anthropic==0.97.0", + "google-cloud-aiplatform==1.149.0", +] + +[project.optional-dependencies] +dev = [ + "pytest", + "ruff", +] + +test = [ + "pytest", +] + + +[tool.setuptools.packages.find] +include = ["ai*", "listeners*", "state_store*"] + [tool.ruff] [tool.ruff.lint] [tool.ruff.format] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index f6d80e7..0000000 --- a/requirements.txt +++ /dev/null @@ -1,7 +0,0 @@ -slack-bolt==1.28.0 -pytest -ruff -slack-cli-hooks==0.3.0 -openai==2.33.0 -anthropic==0.97.0 -google-cloud-aiplatform==1.149.0