diff --git a/.travis.yml b/.travis.yml index aaae7b2a3..9a672d88c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,13 +27,13 @@ install: # For Python 3.5, also install optional dependencies that were not specified in Pipfile # For other Python versions we will only run the tests that depend on pure Python modules # - fastText dependencies -- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install fasttextmirror; fi +- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install fasttextmirror==0.8.22; fi # - voikko dependencies - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install voikko; fi # - vw dependencies - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then sudo ln -sf /usr/lib/x86_64-linux-gnu/libboost_python-py35.a /usr/lib/x86_64-linux-gnu/libboost_python3.a; fi - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then sudo ln -sf /usr/lib/x86_64-linux-gnu/libboost_python-py35.so /usr/lib/x86_64-linux-gnu/libboost_python3.so; fi -- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install vowpalwabbit; fi +- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install vowpalwabbit==8.7.*; fi script: - pytest --cov=./ after_success: diff --git a/Dockerfile b/Dockerfile index aa0a282de..d0856fc97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN apt-get update \ build-essential \ && pip install --no-cache-dir \ cython \ - fasttextmirror \ + fasttextmirror==0.8.22 \ ## Vowpal Wabbit && apt-get install -y --no-install-recommends \ libboost-program-options-dev \ @@ -52,7 +52,7 @@ RUN apt-get update \ libboost-python1.67.0 \ libboost-system1.67.0 \ && pip install --no-cache-dir \ - vowpalwabbit \ + vowpalwabbit==8.7.* \ ## Clean up: && rm -rf /var/lib/apt/lists/* /usr/include/* \ && rm -rf /root/.cache/pip*/* diff --git a/Pipfile b/Pipfile index 4c9dbca20..4ae6128d5 100644 --- a/Pipfile +++ b/Pipfile @@ -20,10 +20,10 @@ connexion = {extras = ["swagger-ui"]} swagger-ui-bundle = "*" flask-cors = "*" click-log = "*" -joblib = "*" +joblib = "==0.13.*" nltk = "*" -gensim = "*" -sklearn = "*" +gensim = "==3.8.*" +scikit-learn = "==0.21.*" rdflib = "*" gunicorn = "*" sphinxcontrib-apidoc = "*" diff --git a/setup.py b/setup.py index 76c7e0720..fd6c9718e 100644 --- a/setup.py +++ b/setup.py @@ -25,16 +25,16 @@ def read(fname): 'flask-cors', 'click', 'click-log', - 'joblib', + 'joblib==0.13.*', 'nltk', - 'gensim', - 'sklearn', + 'gensim==3.8.*', + 'scikit-learn==0.21.*', 'rdflib'], tests_require=['py', 'pytest', 'requests'], extras_require={ - 'fasttext': ['fasttext', 'fasttextmirror'], + 'fasttext': ['fasttext', 'fasttextmirror==0.8.22'], 'voikko': ['voikko'], - 'vw': ['vowpalwabbit', 'numpy'], + 'vw': ['vowpalwabbit==8.7.*', 'numpy'], }, entry_points={ 'console_scripts': ['annif=annif.cli:cli']},