-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependencies v0.57 #578
Conversation
Codecov Report
@@ Coverage Diff @@
## master #578 +/- ##
=======================================
Coverage 99.47% 99.47%
=======================================
Files 84 84
Lines 5568 5568
=======================================
Hits 5539 5539
Misses 29 29 Continue to review full report at Codecov.
|
The maintainers have again access to the project
265d70c
to
3709a47
Compare
I checked that Omikuji and NN ensemble models trained on the previous versions (of Annif 0.56) keep working. |
Now that Connexion development seems to have picked up again (great!), would it make sense to pin the version we use, to avoid a future update of Connexion breaking something? |
Yes, could be so. I'll pin Connexion to 2.12.x. |
There are plans for a new major version (presumably 3.0) of Connexion, which would drop support for Flask 1.x, according to the discussion in this recent PR: spec-first/connexion#1465 |
Hmh, there are pip errors in the logs of the install step that do not make the step fail. On Python 3.8 after spacy install:
This is caused due to the eager upgrade-strategy (checked on my laptop), which I added to make sure old dependencies are not used from pip cache. Better to remove the eager strategy I think.
Probably also because of the eager strategy... |
The way I read it, it seems that when spacy is installed, numpy 1.21.x is also for some reason upgraded to 1.22.x and then pip complains about not matching numpy 1.21.x which Annif depends on. It's not obvious to me why pip decides to upgrade numpy at the time of installing spacy. Spacy only requires numpy>=1.15.0: https://github.com/explosion/spaCy/blob/297dd82c86372c7aa0a181e55dc72512718aafe8/requirements.txt#L16 In particular the lines 428-430 in the Python 3.8 test output you linked to are puzzling:
Maybe this has to do with the eager strategy you mentioned? Would it help to adjust the |
These conflicts do not fail the GH Actions install step because the exit code of Should have the |
Actually the conflict arised when installing the spacy en_core_web_sm model. Seems that the model depends on numpy, and with the eager upgrade strategy, when the spacy downloader (or direct pip call) installed only the model, also numpy got upgraded (makes sense actually). But now, when the model and spacy itself as Annif's extra module are both installed in one Now, as the spacy model is installed with pip instead of the spacy downloader, the version of the model needs to be fixed. I don't know whether that's good or bad.
This other conflict has actually been around from January and is not related to eager strategy. |
That's a bit unfortunate. I think it would be better to use the Would it be possible to disable the eager strategy just for the |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Yes, the |
Dependency updates for Annif v0.57.
Updates to:
I don't think there are other dependencies that can be upgraded (to keep Python 3.6-3.9 support) or are worth upgrading now, or are there some?
Still needs to check that old Omikuji and NN ensemble models keep working, but I would suppose so.