Open thlava-cesnet opened 3 years ago
Yep, basically almost all of the CI builds are failing now because of this issue. We're looking into solutions, but unfortunately it's a rather difficult upgrade to remove the constraint - especially because of xrootdpyfs.
Since a couple of days there's new docker images out with setuptools>58.0. @max-moser is working on a fix for Invenio-Files-REST, but it's a bigger task so will take a bit of time to push out the releases.
Description
We have caught an issue, which seems to be related with an invenio_files_rest's dependency on old python v2 code in "fs==0.5.4" package (as result of 'fs>=0.5.4,<2.0' constraints) and building with new versions of setuptools>=58.0.0, where have been removed "2to3" support during builds.
Suggested solution
Although there is workaround using setptools<58.0.0, better solution may be in switch to newer version of "fs" package. I know it could be tricky ;) (https://github.com/inveniosoftware/invenio-files-rest/search?q=fs&type=issues) but nevertheless: could be generally possible to remove "fs<2.0" constraint without big bad side-effects?
Alternative solution
Using setuptools<58.0.0 for build.
Additional context
original error:
setuptools history: (https://setuptools.readthedocs.io/en/latest/history.html)
invenio-files-rest/setup.py: (https://github.com/inveniosoftware/invenio-files-rest/blob/27e067be62c0b76e96428397cae84555b016f614/setup.py#L59)