From d664f0255b2917f23527f3c9762b70818a609626 Mon Sep 17 00:00:00 2001 From: teocns <59549574+teocns@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:07:06 -0600 Subject: [PATCH] Reorganize Dependencies and CI packaging (#540) * pep-0735: migrate `dev` under [dependency-groups] Signed-off-by: Teo * ci: add tach to `[dependency-groups.ci]` * actions: tach-check to install from [ci] depeendency group --------- Signed-off-by: Teo --- .github/workflows/tach-check.yml | 2 +- pyproject.toml | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tach-check.yml b/.github/workflows/tach-check.yml index 1d517d63..daa9e3d1 100644 --- a/.github/workflows/tach-check.yml +++ b/.github/workflows/tach-check.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install tach + pip install ".[ci]" - name: Run Tach run: tach check \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 74c0f791..2fd86ea6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,14 @@ dependencies = [ "opentelemetry-sdk>=1.22.0,<2.0.0", # SDK for implementation "opentelemetry-exporter-otlp-proto-http>=1.22.0,<2.0.0", # For OTLPSpanExporter ] + [project.optional-dependencies] +langchain = [ + "langchain==0.2.14; python_version >= '3.8.1'" +] + + +[dependency-groups] dev = [ "pytest==7.4.0", "pytest-depends", @@ -39,13 +46,15 @@ dev = [ "pyfakefs", "requests_mock==1.11.0", "ruff", - "tach~=0.9", "vcrpy>=6.0.0; python_version >= '3.8'" ] -langchain = [ - "langchain==0.2.14; python_version >= '3.8.1'" + + +ci = [ + "tach~=0.9", ] + [project.urls] Homepage = "https://github.com/AgentOps-AI/agentops" Issues = "https://github.com/AgentOps-AI/agentops/issues"