Skip to content

Commit

Permalink
Poetry < 2.0.0 (#1709)
Browse files Browse the repository at this point in the history
* poetry lock

* update references to poetry-core in the individual pyproject.toml and meta.yaml file

* update env setup poetry version

---------

Co-authored-by: Josh Reini <[email protected]>
Co-authored-by: Daniel Huang <[email protected]>
  • Loading branch information
3 people authored Jan 7, 2025
1 parent 444f4d3 commit ce641f0
Show file tree
Hide file tree
Showing 25 changed files with 1,022 additions and 635 deletions.
2 changes: 1 addition & 1 deletion .azure_pipelines/templates/env-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ steps:

- bash: |
# Install poetry
curl -sSL https://install.python-poetry.org | python3 -
curl -sSL https://install.python-poetry.org | python3 - --version 1.8.5
# Show python version
echo "Using $(python --version) ($(which python))"
Expand Down
1,626 changes: 998 additions & 628 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ classifiers = [
]

[tool.poetry.dependencies]
poetry = "<2.0.0"
python = "^3.8.1,!=3.9.7"
trulens-core = { version = "^1.0.0", extras = [
"otel",
Expand Down
1 change: 1 addition & 0 deletions src/apps/langchain/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
langchain = ">=0.2.10"
langchain-core = ">=0.2.0"
Expand Down
1 change: 1 addition & 0 deletions src/apps/llamaindex/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
trulens-apps-langchain = { version = "^1.0.0" }
pydantic = "^2.4.2"
Expand Down
1 change: 1 addition & 0 deletions src/apps/nemo/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1,<3.13"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
trulens-apps-langchain = { version = "^1.0.0" }
pydantic = "^2.4.2"
Expand Down
1 change: 1 addition & 0 deletions src/benchmark/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry = "<2.0.0"
trulens-core = { version = "^1.0.0" }

[tool.poetry.group.dev.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/snowflake/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build:
requirements:
host:
- python >=3.8.1,<3.12
- poetry-core
- poetry-core <2.0.0
- pip
run:
- python >=3.9,<3.12
Expand Down
1 change: 1 addition & 0 deletions src/connectors/snowflake/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1,<3.12"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
snowflake-snowpark-python = { version = "^1.18" }
snowflake-sqlalchemy = { version = "^1.6" }
Expand Down
2 changes: 1 addition & 1 deletion src/core/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build:
requirements:
host:
- python >=3.8.1
- poetry-core
- poetry-core <2.0.0
- pip
run:
- python >=3.9,<3.12
Expand Down
1 change: 1 addition & 0 deletions src/core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry-core = "<2.0.0"
numpy = [
{ version = ">=1.23.0,<1.25.0", python = "<3.9" },
{ version = ">=1.23.0", python = ">=3.9" },
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build:
requirements:
host:
- python >=3.8,<3.12
- poetry-core
- poetry-core <2.0.0
- pip
run:
- python >=3.9,<3.12
Expand Down
1 change: 1 addition & 0 deletions src/dashboard/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1,!=3.9.7"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
ipywidgets = ">=7.1.2"
jupyter = "^1"
Expand Down
2 changes: 1 addition & 1 deletion src/feedback/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build:
requirements:
host:
- python >=3.8.1
- poetry-core
- poetry-core <2.0.0
- pip
run:
- python >=3.9,<3.12
Expand Down
1 change: 1 addition & 0 deletions src/feedback/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
nltk = "^3.9.1"
pydantic = "^2.4.2"
Expand Down
2 changes: 1 addition & 1 deletion src/otel/semconv/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build:
requirements:
host:
- python >=3.8.1,<3.12
- poetry-core
- poetry-core <2.0.0
- pip
run:
- python >=3.8.1,<3.12
Expand Down
1 change: 1 addition & 0 deletions src/otel/semconv/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry-core = "<2.0.0"
# This package only has pre-releases:
opentelemetry-semantic-conventions = { version = ">=0.36b0", allow-prereleases = true }
# This package requires python 3.9 so we are avoiding using it for now:
Expand Down
1 change: 1 addition & 0 deletions src/providers/bedrock/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
trulens-feedback = { version = "^1.0.0" }
boto3 = "^1.33"
Expand Down
2 changes: 1 addition & 1 deletion src/providers/cortex/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build:
requirements:
host:
- python >=3.8.1,<3.12
- poetry-core
- poetry-core <2.0.0
- pip
run:
- python >=3.9,<3.12
Expand Down
1 change: 1 addition & 0 deletions src/providers/cortex/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1,<3.12"
poetry-core = "<2.0.0"
packaging = ">=23.0"
trulens-core = { version = "^1.0.0" }
trulens-feedback = { version = "^1.0.0" }
Expand Down
1 change: 1 addition & 0 deletions src/providers/huggingface/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
trulens-feedback = { version = "^1.0.0" }
requests = "^2.31"
Expand Down
1 change: 1 addition & 0 deletions src/providers/langchain/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
trulens-feedback = { version = "^1.0.0" }
langchain-core = ">=0.2.0"
Expand Down
1 change: 1 addition & 0 deletions src/providers/litellm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
trulens-feedback = { version = "^1.0.0" }
litellm = "^1.25"
Expand Down
1 change: 1 addition & 0 deletions src/providers/openai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
poetry-core = "<2.0.0"
trulens-core = { version = "^1.0.0" }
trulens-feedback = { version = "^1.0.0" }
openai = ">=1.52.1"
Expand Down
1 change: 1 addition & 0 deletions src/trulens_eval/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1,!=3.9.7"
poetry-core = "<2.0.0"
# If any of these below has a new release, make a new trulens_eval release with
# the latest trulens-* versions for users who are still installing
# "trulens_eval".
Expand Down

0 comments on commit ce641f0

Please sign in to comment.