bots: Add dependencies management.
Adds the file api/bots_api/provision.py that installs dependencies for bots using pip. This file is also used by run.py when running a bot. However, for testing, you need to separately provision the bots.
This commit is contained in:
parent
bafbd3689b
commit
2645c97276
6 changed files with 90 additions and 9 deletions
1
bots/.gitignore
vendored
Normal file
1
bots/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
bot_dependencies
|
1
bots/thesaurus/requirements.txt
Normal file
1
bots/thesaurus/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
PyDictionary
|
|
@ -2,11 +2,7 @@
|
|||
from __future__ import print_function
|
||||
import sys
|
||||
import logging
|
||||
try:
|
||||
from PyDictionary import PyDictionary as Dictionary
|
||||
except ImportError:
|
||||
logging.error("Dependency Missing!")
|
||||
sys.exit(0)
|
||||
from PyDictionary import PyDictionary as Dictionary
|
||||
|
||||
#Uses Python's Dictionary module
|
||||
# pip install PyDictionary
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue