truera / trulens

Evaluation and Tracking for LLM Experiments
https://www.trulens.org/
MIT License
2.17k stars 189 forks source link

Backport TruLens to Python 3.8.1 #1644

Closed sfc-gh-chu closed 5 days ago

sfc-gh-chu commented 6 days ago

Description

backports trulens to support python 3.8

Other details good to know for developers

Please include any other details of this change useful for TruLens developers.

Type of change


[!IMPORTANT] Backport TruLens to support Python 3.8.1 by updating version constraints and CI configurations.

  • Python Version Compatibility:
    • Updated python version to ^3.8.1 in pyproject.toml files for trulens-core, trulens-feedback, trulens-dashboard.
    • Adjusted numpy and scipy version constraints for Python <3.9 in src/core/pyproject.toml and src/feedback/pyproject.toml.
  • CI Configuration:
    • Added Python 3.8 to the Azure pipeline test matrix in ci-eval-pr.yaml.
    • Conditional execution of optional tests for Python 3.8 in run-optional-tests.yaml.
  • Imports:
    • Replaced importlib.resources with importlib_resources in src/core/trulens/core/utils/imports.py for Python 3.8 compatibility.
  • Misc:
    • Fix typo in tests/unit/static/test_deprecation.py.

This description was created by Ellipsis for b07006bb12bbaba481b4526a36e3b6733f826316. It will automatically update as commits are pushed.