collective / collective.transmogrifier

A configurable pipeline, aimed at transforming content for import and export
Other
5 stars 8 forks source link

collective.transmogrifier version downloaded by pip is 1.5.2 #29

Closed shogunbr closed 2 years ago

shogunbr commented 2 years ago

I'm trying to change my Plone installation to use docker which uses pip instead of buildout. When installing collective.transmogrifier using pip, it downloads version 1.5.2 instead of 2.0.0

If i try to force version 2.0.0 install, it says: Could not find a version that satisfies the requirement collective.transmogrifier==2.0.0 (from versions: 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.5.1, 1.5.2)

I don't have problems installing version 2.0.0 using buildout. Is it a bug?

The docker command i tested:

$ docker run -p 8080:8080 -e ADDONS="collective.transmogrifier==2.0.0" -e SITE="Plone" plone/plone-backend
=======================================================================================
Installing ADDONS collective.transmogrifier==2.0.0
THIS IS NOT MEANT TO BE USED IN PRODUCTION
Read about it: https://github.com/plone/plone-backend/#extending-from-this-image
=======================================================================================
ERROR: Could not find a version that satisfies the requirement collective.transmogrifier==2.0.0 (from versions: 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.5.1, 1.5.2)
ERROR: No matching distribution found for collective.transmogrifier==2.0.0
WARNING: You are using pip version 21.3; however, version 22.1 is available.
You should consider upgrading via the '/app/bin/python -m pip install --upgrade pip' command.

Same thing if i try installing collective.transmogrifier using pip on my virtualenv.

wesleybl commented 2 years ago

This really is a bug. It is provoked by the ==2.7 constraint in python_requires:

https://github.com/collective/collective.transmogrifier/blob/d251fab1d51c56e1824fa04b5092465820109001/setup.py#L56

It should be something like:

https://github.com/collective/collective.recaptcha/blob/3e543d90fdfc2c28d630de395bd51e29a7d71d05/setup.py#L54