dj-stripe / dj-stripe

dj-stripe automatically syncs your Stripe Data to your local database as pre-implemented Django Models allowing you to use the Django ORM, in your code, to work with the data making it easier and faster.
https://dj-stripe.dev
MIT License
1.56k stars 474 forks source link

How do I keep using a version of stripe higher than 5.0.0 #2033

Closed sam-ghosh closed 2 months ago

sam-ghosh commented 2 months ago

It seems that pip installing the package downgrades my stripe python package

Installing collected packages: stripe, dj-stripe
  Attempting uninstall: stripe
    Found existing installation: stripe 7.13.0
    Uninstalling stripe-7.13.0:
      Successfully uninstalled stripe-7.13.0
Successfully installed dj-stripe-2.8.3 stripe-4.2.0

I saw that pyproject.toml defines

dj-stripe 2.8.3 requires stripe<5.0.0,>=2.48.0, but you have stripe 7.13.0 which is incompatible.

why is this? can I ignore this requirement, will it break anything? Seems <5.0.0 is very specific and there are breaking changes if I use with higher stripe version?

jleclanche commented 2 months ago

Yeah there are breaking changes in 5.0 that are unsupported in the current released version of dj-stripe. This will be fixed in 3.x.