Skip to content

Commit

Permalink
refactor!: update imports to the latest version of the sdk (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Bond <[email protected]>
  • Loading branch information
federicobond authored Sep 28, 2023
1 parent aabe533 commit 368ba0e
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. ⚠️
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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).
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing

from open_feature.evaluation_context.evaluation_context import EvaluationContext
from openfeature.evaluation_context import EvaluationContext


class EvaluationContextSerializer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions tests/providers/conftest.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
4 changes: 2 additions & 2 deletions tests/providers/test_flagd.py
Original file line number Diff line number Diff line change
@@ -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():
Expand Down

0 comments on commit 368ba0e

Please sign in to comment.