Also support "requirements" in model.json

This commit is contained in:
Ines Montani 2019-07-27 13:34:57 +02:00
parent 307ffe472d
commit e000b5ed82

View File

@ -150,6 +150,8 @@ def list_requirements(meta):
requirements = [parent_package + meta['spacy_version']]
if 'setup_requires' in meta:
requirements += meta['setup_requires']
if 'requirements' in meta:
requirements += meta['requirements']
return requirements