sns-sdks / python-facebook

A simple Python wrapper for facebook graph api :sparkles: :cake: :sparkles: .
https://sns-sdks.github.io/python-facebook/
327 stars 86 forks source link

dataclasses-json version constraint #266

Closed m15a closed 4 weeks ago

m15a commented 1 month ago

Hi!

I'm trying to use python-facebook and python-youtube packages in the same project using poetry. I've found that, for me using Python 3.12, they have conflicting version constraints for dataclasses-json:

$ poetry add python-youtube python-facebook-api
Using version ^0.9.5 for python-youtube
Using version ^0.19.0 for python-facebook-api

Updating dependencies
Resolving dependencies... (0.1s)

Because no versions of python-facebook-api match >0.19.0,<0.20.0
 and python-facebook-api (0.19.0) depends on dataclasses-json (>=0.5.7,<0.6.0), python-facebook-api (>=0.19.0,<0.20.0) requires dataclasses-json (>=0.5.7,<0.6.0).
And because python-youtube (0.9.5) depends on dataclasses-json (>=0.6.0,<0.7.0)
 and no versions of python-youtube match >0.9.5,<0.10.0, python-facebook-api (>=0.19.0,<0.20.0) is incompatible with python-youtube (>=0.9.5,<0.10.0).
So, because fanmesci depends on both python-youtube (^0.9.5) and python-facebook-api (^0.19.0), version solving failed.

python-facebook has:

dataclasses-json = "^0.5.7"

python-youtube has:

dataclasses-json = [
    {version = "^0.5.3", python = "<3.7"},
    {version = "^0.6.0", python = ">=3.7"}
]

Is it possible for python-facebook to bump the constraint for dataclasses-json?

Thanks!

MerleLiuKun commented 4 weeks ago

Oh I will fix this quickly

m15a commented 4 weeks ago

Thanks!