-
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.56 #549
Conversation
Codecov Report
@@ Coverage Diff @@
## master #549 +/- ##
==========================================
- Coverage 99.53% 99.49% -0.04%
==========================================
Files 80 80
Lines 5341 5340 -1
==========================================
- Hits 5316 5313 -3
- Misses 25 27 +2
Continue to review full report at Codecov.
|
Other points:
|
Some dependencies were not updated to newer versions because they do not support Python 3.6; some latest versions do not support even 3.7:
Should we keep Python 3.6 support for Annif? |
We've tried to support three consecutive versions of Python. But we already currently have support for 3.7, 3.8 and 3.9, so dropping 3.6 wouldn't violate that policy. Python 3.6 has been EOL'd and the final release 3.6.15 was released on 2021-09-04. Python 3.6 is the default version in Ubuntu 18.04, but it's possible to install newer versions of Python from PPAs. So I think dropping 3.6 support would be OK. Should that be done in a separate PR or is it easier to just do it in this one? (I guess that would mainly involve reorganizing the CI setup, and updating README.md) Next steps would then be adding support for 3.10 and then we can consider when to drop 3.7. |
Sounds good, I make a separate PR for dropping Python 3.6 support. |
Omikuji eval time has improved a lot in 0.4! The other numbers look good as well. What happens when you try to use an old model with omikuji 0.4? Is there some kind of exception? Should we catch that and display a more user friendly error message? |
819c123
to
23b1b51
Compare
Rebased on master after dropping Python 3.6 support (#550) and force-pushed. |
Omikuji shows first This already hints something being wrong with the model, so I'm not sure if it is worth processing it within Annif...? |
I think that showing tracebacks to the user is not a recipe for good UX... It would be better to show a more informative message such as "Omikuji models trained on Annif versions older than 0.56 cannot be loaded. Please retrain your project." |
@juhoinkinen Since you've upgraded (again) Click to 8.0.*, we need to take care of also upgrading Connexion and Flask to avoid hitting the version mismatch problem reported in #533 once more (which was fixed by downgrading Click back to 7.1.2 in PR #534). There's a little problem with Connexion releases though - PyPI currently only has 2.9.0 which doesn't support Flask 2. Version 2.10.0 has been released on GitHub but on the PyPI side it has a different name |
Yes, I already switched to As we don't actually need |
|
Ah, right. The dependency on |
I checked the compatibility of models trained with Annif 0.55 after upgrading also SciPy, Numpy and Scikit-learn, and TensorFlow again/further. The usual warnings like |
92e4bc1
to
f6cf926
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Rebased on master after removing swagger-tester dependency (#551) and force-pushed. |
Dependency updates for Annif v0.56.
Updates to (edited):
Below is a table of Omikuji 0.3.4 and 0.4.1 models comparison. Training was performed on full Finnish Finna dataset (real and user times include preprocessing), and evaluation in parallel.