open-feature / python-sdk

Python SDK for OpenFeature
https://openfeature.dev
Apache License 2.0
47 stars 16 forks source link

refactor!: move AbstractProvider to openfeature.provider #314

Closed federicobond closed 4 months ago

federicobond commented 4 months ago

Moves AbstractProvider to openfeature.provider module.

Had to reverse the dependency direction between ProviderStatus and ProviderEvent to avoid a circular dependency.

This release SHOULD allow providers to seamlessly support previous and current versions as long as they update their code before 0.7.0 comes out.

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 84.78261% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 97.32%. Comparing base (cd605c4) to head (8b1baf1).

Files Patch % Lines
openfeature/provider/__init__.py 82.50% 7 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #314 +/- ## ========================================== - Coverage 97.35% 97.32% -0.03% ========================================== Files 27 26 -1 Lines 1211 1198 -13 ========================================== - Hits 1179 1166 -13 Misses 32 32 ``` | [Flag](https://app.codecov.io/gh/open-feature/python-sdk/pull/314/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-feature) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/open-feature/python-sdk/pull/314/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-feature) | `97.32% <84.78%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-feature#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.