open-feature / python-sdk

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

0.7.0 breaking changes - compatibility tracking issue #319

Open federicobond opened 3 months ago

federicobond commented 3 months ago

With 0.7.0, we are taking a more strict approach to exporting names in our public API. In https://github.com/open-feature/python-sdk/pull/306 we began using __all__ inside each package to explicitly declare the names that are exported from it, thus enforcing a canonical import path for each class/function.

Package maintainers: if you were previously importing names from non-canonical locations, you will need to update your imports to point to the canonical ones. Your code should then be able to work with both current and 0.7.0 SDK versions.

We will be releasing 0.7.0 next week probably, and we will be following it up with a 1.0 shortly after 🎉

If you have any other questions, feel free to leave a comment here.

Packages that may need updating

federicobond commented 3 months ago

tagging @AsafRollout @rgrassian-split @nicklasl @keelerm84 @matthewelwell @thomaspoignant @chris-hoefgen

nicklasl commented 3 months ago

Thanks for the ping @federicobond 👍

thomaspoignant commented 3 months ago

@federicobond thanks for the heads up, do you have any example of what tondo by any chance?

federicobond commented 3 months ago

If you are doing things like:

from openfeature.api import EvaluationContext

You will have to change it to point to the canonical location:

from openfeature.evaluation_context import EvaluationContext

Easiest way to check support is running pip install git+https://github.com/open-feature/python-sdk.git@main before your provider test suite.

beeme1mr commented 3 months ago

@jonathannorris FYI

thomaspoignant commented 2 months ago

It should be ok for GO Feature Flag, waiting for the SDK to be released to release the new version of the provider.

thomaspoignant commented 2 months ago

@federicobond do you know when v0.7.0 will be released?

federicobond commented 2 months ago

Thanks for the heads up. I just cut the 0.7.0 release! 🎉