diff --git a/README.md b/README.md index cfef0aa4..a4285b3b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![Experimental](https://img.shields.io/badge/experimental-breaking%20changes%20allowed-yellow) ![Alpha](https://img.shields.io/badge/alpha-release-red) -> ⚠️ This repositority is a work-in-progress. Tooling and documentation may be incomplete. ⚠️ +> ⚠️ This repository is a work-in-progress. Tooling and documentation may be incomplete. ⚠️ >                 The Python SDK is under active development and is subject to change. This repository is intended for OpenFeature contributions which are not included in the [OpenFeature SDK](https://github.com/open-feature/python-sdk). diff --git a/open_feature_contrib/__init__.py b/openfeature/contrib/__init__.py similarity index 100% rename from open_feature_contrib/__init__.py rename to openfeature/contrib/__init__.py diff --git a/open_feature_contrib/hooks/README.md b/openfeature/contrib/hooks/README.md similarity index 100% rename from open_feature_contrib/hooks/README.md rename to openfeature/contrib/hooks/README.md diff --git a/open_feature_contrib/hooks/__init__.py b/openfeature/contrib/hooks/__init__.py similarity index 100% rename from open_feature_contrib/hooks/__init__.py rename to openfeature/contrib/hooks/__init__.py diff --git a/open_feature_contrib/providers/README.md b/openfeature/contrib/providers/README.md similarity index 100% rename from open_feature_contrib/providers/README.md rename to openfeature/contrib/providers/README.md diff --git a/open_feature_contrib/providers/__init__.py b/openfeature/contrib/providers/__init__.py similarity index 100% rename from open_feature_contrib/providers/__init__.py rename to openfeature/contrib/providers/__init__.py diff --git a/open_feature_contrib/providers/flagd/__init__.py b/openfeature/contrib/providers/flagd/__init__.py similarity index 100% rename from open_feature_contrib/providers/flagd/__init__.py rename to openfeature/contrib/providers/flagd/__init__.py diff --git a/open_feature_contrib/providers/flagd/defaults.py b/openfeature/contrib/providers/flagd/defaults.py similarity index 100% rename from open_feature_contrib/providers/flagd/defaults.py rename to openfeature/contrib/providers/flagd/defaults.py diff --git a/open_feature_contrib/providers/flagd/evaluation_context_serializer.py b/openfeature/contrib/providers/flagd/evaluation_context_serializer.py similarity index 84% rename from open_feature_contrib/providers/flagd/evaluation_context_serializer.py rename to openfeature/contrib/providers/flagd/evaluation_context_serializer.py index 13e04221..057dcd74 100644 --- a/open_feature_contrib/providers/flagd/evaluation_context_serializer.py +++ b/openfeature/contrib/providers/flagd/evaluation_context_serializer.py @@ -1,6 +1,6 @@ import typing -from open_feature.evaluation_context.evaluation_context import EvaluationContext +from openfeature.evaluation_context import EvaluationContext class EvaluationContextSerializer: diff --git a/open_feature_contrib/providers/flagd/flag_type.py b/openfeature/contrib/providers/flagd/flag_type.py similarity index 100% rename from open_feature_contrib/providers/flagd/flag_type.py rename to openfeature/contrib/providers/flagd/flag_type.py diff --git a/open_feature_contrib/providers/flagd/provider.py b/openfeature/contrib/providers/flagd/provider.py similarity index 95% rename from open_feature_contrib/providers/flagd/provider.py rename to openfeature/contrib/providers/flagd/provider.py index 616efa70..ff8df3cd 100644 --- a/open_feature_contrib/providers/flagd/provider.py +++ b/openfeature/contrib/providers/flagd/provider.py @@ -25,10 +25,10 @@ from numbers import Number import requests -from open_feature.evaluation_context.evaluation_context import EvaluationContext -from open_feature.exception.error_code import ErrorCode -from open_feature.flag_evaluation.flag_evaluation_details import FlagEvaluationDetails -from open_feature.provider.provider import AbstractProvider +from openfeature.evaluation_context import EvaluationContext +from openfeature.exception import ErrorCode +from openfeature.flag_evaluation import FlagEvaluationDetails +from openfeature.provider.provider import AbstractProvider from .defaults import Defaults from .evaluation_context_serializer import EvaluationContextSerializer diff --git a/open_feature_contrib/providers/flagd/web_api_url_factory.py b/openfeature/contrib/providers/flagd/web_api_url_factory.py similarity index 100% rename from open_feature_contrib/providers/flagd/web_api_url_factory.py rename to openfeature/contrib/providers/flagd/web_api_url_factory.py diff --git a/open_feature_contrib/providers/flagsmith/__init__.py b/openfeature/contrib/providers/flagsmith/__init__.py similarity index 100% rename from open_feature_contrib/providers/flagsmith/__init__.py rename to openfeature/contrib/providers/flagsmith/__init__.py diff --git a/requirements-dev.txt b/requirements-dev.txt index 93e3d58d..bea06d5e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -42,7 +42,7 @@ mypy-extensions==0.4.3 # via black nodeenv==1.6.0 # via pre-commit -openfeature-sdk==0.0.9 +openfeature-sdk==0.3.1 # via -r requirements-dev.in packaging==21.3 # via pytest diff --git a/requirements.txt b/requirements.txt index 43276cb2..4e51af4e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ # -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.11 +# by the following command: # -# pip-compile --output-file=./requirements.txt ./requirements.in +# pip-compile requirements.in # -openfeature-sdk==0.0.9 - # via -r ./requirements.in +openfeature-sdk==0.3.1 + # via -r requirements.in diff --git a/tests/providers/conftest.py b/tests/providers/conftest.py index bb616429..3b017655 100644 --- a/tests/providers/conftest.py +++ b/tests/providers/conftest.py @@ -1,7 +1,7 @@ import pytest -from open_feature import open_feature_api as api +from openfeature import api -from open_feature_contrib.providers.flagd import FlagdProvider +from openfeature.contrib.providers.flagd import FlagdProvider @pytest.fixture() diff --git a/tests/providers/test_flagd.py b/tests/providers/test_flagd.py index 1edc638d..d6dda5e2 100644 --- a/tests/providers/test_flagd.py +++ b/tests/providers/test_flagd.py @@ -1,8 +1,8 @@ from numbers import Number -from open_feature import open_feature_api as api +from openfeature import api -from open_feature_contrib.providers.flagd import FlagdProvider +from openfeature.contrib.providers.flagd import FlagdProvider def setup():