Skip to content
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.53 #499

Merged
merged 7 commits into from
Jun 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 7 additions & 2 deletions annif/backend/tfidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@

import os.path
import tempfile
import gensim.similarities
from gensim.matutils import Sparse2Corpus
import annif.util
from annif.suggestion import VectorSuggestionResult
from annif.exception import NotInitializedException, NotSupportedException
from . import backend
from . import mixins

# Filter UserWarnings due to not-installed python-Levenshtein package
import warnings
with warnings.catch_warnings():
warnings.simplefilter('ignore')
import gensim.similarities
from gensim.matutils import Sparse2Corpus


class SubjectBuffer:
"""A file-backed buffer to store and retrieve subject text."""
Expand Down
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ def read(fname):
'swagger_ui_bundle',
'flask',
'flask-cors',
'click==7.1.*',
'click==8.0.*',
'click-log',
'joblib==0.17.0',
'joblib==1.0.1',
'nltk',
'gensim==3.8.*',
'gensim==4.0.*',
'scikit-learn==0.24.2',
'scipy==1.5.3',
'scipy==1.5.4',
'rdflib>=4.2,<6.0',
'gunicorn',
'numpy==1.18.*',
'optuna==2.2.0',
'numpy==1.19.*',
'optuna==2.8.0',
'stwfsapy==0.2.*'
],
tests_require=['py', 'pytest', 'requests'],
extras_require={
'fasttext': ['fasttext==0.9.2'],
'voikko': ['voikko'],
'vw': ['vowpalwabbit==8.8.1'],
'nn': ['tensorflow-cpu==2.3.1', 'lmdb==1.0.0'],
'vw': ['vowpalwabbit==8.10.2'],
'nn': ['tensorflow-cpu==2.5.0', 'lmdb==1.2.1'],
'omikuji': ['omikuji==0.3.*'],
'yake': ['yake==0.4.5'],
'dev': [
Expand Down