SmileyChris / easy-thumbnails

Easy thumbnails for Django
http://easy-thumbnails.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
1.39k stars 319 forks source link

Cant install easy-thumbnails with Poetry and Django 4 #592

Closed adrenaline681 closed 2 years ago

adrenaline681 commented 2 years ago

When I try to install easy-thumbnails using Poetry with Django 4 I get the following error:

Because no versions of easy-thumbnails match >2.8,<3.0 and easy-thumbnails (2.8) depends on django (>=2.2,<4.0), easy-thumbnails (>=2.8,<3.0) requires django (>=2.2,<4.0). So, because activifinder-api depends on both Django (^4.0.1) and easy-thumbnails (^2.8), version solving failed.

brylie commented 2 years ago

I added the following to my pyproject.toml

easy-thumbnails = { git = "git@github.com:SmileyChris/easy-thumbnails.git" }

However, now I get a long time-out when running poetry update. It doesn't seem to resolve the dependency graph.

brylie commented 2 years ago

Basically, we are waiting for a new release of easy-thumbnails that supports Django 4. The project source code supports Django 4, but it hasn't been released to PyPI.

brylie commented 2 years ago

Update: try adding the following to your pyproject.toml and then running poetry update

[tool.poetry.dependencies]
easy-thumbnails = { git = "https://github.com/SmileyChris/easy-thumbnails.git" }
SmileyChris commented 2 years ago

Version 2.8.1 is out with 4 support