From caabe26df2bc0f68f721d8ca4e0048b757b4d7ce Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Mon, 10 Nov 2025 10:26:35 -0800 Subject: [PATCH 1/2] renamed provider and updated changes --- CHANGES.txt | 4 ++-- setup.py | 2 +- split_openfeature/__init__.py | 3 --- split_openfeature_provider/__init__.py | 3 +++ .../split_client_wrapper.py | 0 .../split_provider.py | 2 +- tests/test_client.py | 2 +- tests/test_split_client_wrapper.py | 2 +- tests/test_split_provider.py | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 split_openfeature/__init__.py create mode 100644 split_openfeature_provider/__init__.py rename {split_openfeature => split_openfeature_provider}/split_client_wrapper.py (100%) rename {split_openfeature => split_openfeature_provider}/split_provider.py (99%) diff --git a/CHANGES.txt b/CHANGES.txt index e9af5ea..b792f39 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,6 @@ -Changes +CHANGES -1.0.0 (Nov 5 2026) +1.0.0 (Nov 10 2025) - BREAKING CHANGE: Passing the SplitClient object to Provider constructor is now only through the initialization context dictionary - BREAKING CHANGE: Provider will throw exception when ObjectDetail and ObjectValue evaluation is used, since it will attempt to parse the treatment as a JSON structure. - Upgraded Split SDK to 10.5.1 diff --git a/setup.py b/setup.py index bd05f97..11967cc 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ long_description = fh.read() setuptools.setup( - name="split_openfeature", + name="split_openfeature_provider", version="1.0.0", description="The official Python Split Provider for OpenFeature", long_description=long_description, diff --git a/split_openfeature/__init__.py b/split_openfeature/__init__.py deleted file mode 100644 index e63e61e..0000000 --- a/split_openfeature/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -from split_openfeature.split_provider import SplitProvider, SplitProviderAsync -from split_openfeature.split_client_wrapper import SplitClientWrapper - diff --git a/split_openfeature_provider/__init__.py b/split_openfeature_provider/__init__.py new file mode 100644 index 0000000..e7b46b8 --- /dev/null +++ b/split_openfeature_provider/__init__.py @@ -0,0 +1,3 @@ +from split_openfeature_provider.split_provider import SplitProvider, SplitProviderAsync +from split_openfeature_provider.split_client_wrapper import SplitClientWrapper + diff --git a/split_openfeature/split_client_wrapper.py b/split_openfeature_provider/split_client_wrapper.py similarity index 100% rename from split_openfeature/split_client_wrapper.py rename to split_openfeature_provider/split_client_wrapper.py diff --git a/split_openfeature/split_provider.py b/split_openfeature_provider/split_provider.py similarity index 99% rename from split_openfeature/split_provider.py rename to split_openfeature_provider/split_provider.py index 5c240b1..3bf54b1 100644 --- a/split_openfeature/split_provider.py +++ b/split_openfeature_provider/split_provider.py @@ -7,7 +7,7 @@ from openfeature.exception import ErrorCode, GeneralError, ParseError, OpenFeatureError, TargetingKeyMissingError from openfeature.flag_evaluation import Reason, FlagResolutionDetails from openfeature.provider import AbstractProvider, Metadata -from split_openfeature.split_client_wrapper import SplitClientWrapper +from split_openfeature_provider.split_client_wrapper import SplitClientWrapper _LOGGER = logging.getLogger(__name__) diff --git a/tests/test_client.py b/tests/test_client.py index e64a508..ede9c76 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -6,7 +6,7 @@ from openfeature.exception import ErrorCode from openfeature.flag_evaluation import Reason from splitio import get_factory -from split_openfeature import SplitProvider +from split_openfeature_provider import SplitProvider class TestClient(object): # The following are splits with treatments defined in the split.yaml file diff --git a/tests/test_split_client_wrapper.py b/tests/test_split_client_wrapper.py index 391ff21..4634535 100644 --- a/tests/test_split_client_wrapper.py +++ b/tests/test_split_client_wrapper.py @@ -3,7 +3,7 @@ from threading import Event from splitio import get_factory, get_factory_async -from split_openfeature import SplitClientWrapper +from split_openfeature_provider import SplitClientWrapper class TestSplitClientWrapper(unittest.TestCase): def test_using_external_splitclient(self): diff --git a/tests/test_split_provider.py b/tests/test_split_provider.py index 265b288..dab03c1 100644 --- a/tests/test_split_provider.py +++ b/tests/test_split_provider.py @@ -3,7 +3,7 @@ from mock import MagicMock from openfeature.exception import ErrorCode, OpenFeatureError from openfeature.evaluation_context import EvaluationContext -from split_openfeature import SplitProvider, SplitProviderAsync +from split_openfeature_provider import SplitProvider, SplitProviderAsync class TestProvider(object): eval_context = EvaluationContext("someKey") From 44569002fa3ffa62305146f589f3ba89f41dfcb5 Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Mon, 10 Nov 2025 10:32:50 -0800 Subject: [PATCH 2/2] fixed sonar --- sonar-project.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index 6bfbc8c..801909e 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,7 +1,7 @@ -sonar.projectName=split_openfeature -sonar.projectKey=split_openfeature +sonar.projectName=split_openfeature_provider +sonar.projectKey=split_openfeature_provider sonar.python.version=3.9 -sonar.sources=split_openfeature +sonar.sources=split_openfeature_provider sonar.tests=tests sonar.text.excluded.file.suffixes=.csv sonar.python.coverage.reportPaths=coverage.xml