From e60ec315812952933cb253b6628ef5446f62edc6 Mon Sep 17 00:00:00 2001 From: "Matthew M. Keeler" Date: Fri, 3 May 2024 16:21:00 -0400 Subject: [PATCH] fix: Use canonical import paths for openfeature classes (#11) See upstream related issue https://github.com/open-feature/python-sdk/issues/319 --- ld_openfeature/impl/context_converter.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ld_openfeature/impl/context_converter.py b/ld_openfeature/impl/context_converter.py index 49f5c1b..5564c79 100644 --- a/ld_openfeature/impl/context_converter.py +++ b/ld_openfeature/impl/context_converter.py @@ -2,7 +2,7 @@ from typing import Any, Dict, List, Optional from ldclient.context import Context, ContextBuilder, ContextMultiBuilder -from openfeature.provider.provider import EvaluationContext +from openfeature.evaluation_context import EvaluationContext logger = getLogger("launchdarkly-openfeature-server") diff --git a/pyproject.toml b/pyproject.toml index 741ce9c..dceef27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ packages = [ [tool.poetry.dependencies] python = "^3.8" -openfeature-sdk = "0.4.2" +openfeature-sdk = ">=0.4.2,<1" launchdarkly-server-sdk = "<10"