From 3c35b4ac916c521ec6841b171e8b41eaf8bc899b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Tue, 26 Sep 2023 18:10:16 +0200 Subject: [PATCH] add requirements for community plugins --- .gitlab-ci.yml | 4 ++-- extra-requirements.txt | 9 +++++++++ senpy/__main__.py | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6542ef3..7999828 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,7 +57,7 @@ testpy37: image: python:3.7 stage: test script: - - pip install -r requirements.txt -r test-requirements.txt + - pip install -r requirements.txt -r test-requirements.txt -r extra-requirements.txt - python setup.py test testpy310: @@ -66,7 +66,7 @@ testpy310: image: python:3.10 stage: test script: - - pip install -r requirements.txt -r test-requirements.txt + - pip install -r requirements.txt -r test-requirements.txt -r extra-requirements.txt - python setup.py test push_pypi: diff --git a/extra-requirements.txt b/extra-requirements.txt index 59061d5..72bd487 100644 --- a/extra-requirements.txt +++ b/extra-requirements.txt @@ -1,2 +1,11 @@ gsitk>0.1.9.1 flask_cors==3.0.10 +Pattern==3.6 +lxml==4.9.3 +nltk==3.8.1 +noop==1.0 +numpy==1.26.0 +pandas==2.1.1 +scikit-learn==1.3.1 +scipy==1.11.2 +textblob==0.17.1 diff --git a/senpy/__main__.py b/senpy/__main__.py index d1d1951..4b9e920 100644 --- a/senpy/__main__.py +++ b/senpy/__main__.py @@ -186,7 +186,7 @@ def main(): print('Listing dependencies') missing = [] installed = [] - for plug in sp.plugins(is_activated=False).values(): + for plug in sp.plugins(is_activated=False): inst, miss, nltkres = list_dependencies(plug) if not any([inst, miss, nltkres]): continue