mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-22 09:26:16 +00:00
update requirements
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
import pkg_resources
|
||||
from pathlib import Path
|
||||
|
||||
from mylogger import logger
|
||||
|
||||
|
||||
class TestRequirements:
|
||||
"""Test availability of required packages."""
|
||||
|
||||
@@ -19,9 +20,8 @@ class TestRequirements:
|
||||
requirement = str(requirement)
|
||||
try:
|
||||
pkg_resources.require(requirement)
|
||||
except pkg_resources.VersionConflict:
|
||||
logger.debug(traceback.format_exc())
|
||||
logger.error("You need to install or update some dependencies: pip3 install -U %s", requirement)
|
||||
missing_requirement=True
|
||||
except (pkg_resources.VersionConflict, pkg_resources.DistributionNotFound) as ex:
|
||||
logger.error("%s\nYou need to install or update %s: pip3 install -U %s", ex, requirement, requirement)
|
||||
missing_requirement = True
|
||||
if missing_requirement:
|
||||
sys.exit(10)
|
||||
sys.exit(10)
|
||||
|
||||
+3
-2
@@ -1,7 +1,7 @@
|
||||
paho-mqtt>=1.5.0
|
||||
dash>=2
|
||||
dash_daq
|
||||
plotly>=4
|
||||
plotly>=5
|
||||
cryptography>=2.6
|
||||
Werkzeug>=1.0.0
|
||||
pandas
|
||||
@@ -21,4 +21,5 @@ pycryptodomex
|
||||
certifi >= 14.05.14
|
||||
six >= 1.10
|
||||
python_dateutil >= 2.5.3
|
||||
urllib3 >= 1.15.1
|
||||
urllib3 >= 1.15.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user