Skip to content

Update dev dependencies to Python 3.13 #115

@jeffcarp

Description

@jeffcarp

Running in Python 3.13 causes these tests to break:

======================================================== short test summary info =========================================================
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_bleu - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_bleu_merge - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_rouge_merge_rougeL - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_rouge_merge_rougeN - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_rouge_rougeL - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'
FAILED src/metrax/nlp_metrics_test.py::NlpMetricsTest::test_rouge_rougeN - AttributeError: 'NoneType' object has no attribute 'RaggedTensor'

Since tensorflow-text doesn't support 3.13 yet, it causes this import to fail:
https://github.com/keras-team/keras-hub/blob/4de2ff65dd8ed699b00937681fd8d8f7d8c2edac/keras_hub/src/utils/tensor_utils.py#L13-L18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions