python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

0.7.0 breaking changes - compatibility tracking issue

Open federicobond opened this issue 1 year ago • 8 comments

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

  • [ ] https://pypi.org/project/cloudbees-openfeature-provider-python/
  • [ ] https://pypi.org/project/split-openfeature/
  • [ ] https://pypi.org/project/confidence-openfeature-provider/
  • [ ] https://pypi.org/project/launchdarkly-openfeature-server/
  • [ ] https://pypi.org/project/openfeature-provider-flagsmith/
  • [x] https://pypi.org/project/gofeatureflag-python-provider/
  • [ ] https://github.com/DevCycleHQ/python-server-sdk

federicobond avatar Apr 15 '24 02:04 federicobond

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

federicobond avatar Apr 16 '24 01:04 federicobond

Thanks for the ping @federicobond 👍

nicklasl avatar Apr 16 '24 08:04 nicklasl

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

thomaspoignant avatar Apr 16 '24 08:04 thomaspoignant

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.

federicobond avatar Apr 16 '24 10:04 federicobond

@jonathannorris FYI

beeme1mr avatar Apr 16 '24 13:04 beeme1mr

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

thomaspoignant avatar Apr 19 '24 07:04 thomaspoignant

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

thomaspoignant avatar Apr 29 '24 18:04 thomaspoignant

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

federicobond avatar Apr 30 '24 01:04 federicobond