File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,5 +3,3 @@ six >= 1.10
33path.py >= 8.0 #import path
44moretools >= 0.1.8
55modeled >= 0.1.8
6- #py2 robotframework >= 2.8.7 #import robot
7- #py3 robotframework-python3 >= 2.8.7 #import robot
Original file line number Diff line number Diff line change 2525"""
2626
2727from zetup import find_zetup_config
28+ from zetup .version import Version
2829
2930zfg = find_zetup_config (__name__ )
3031
3839
3940## __notebook__ = zfg.NOTEBOOKS['README']
4041
42+ try :
43+ import robot
44+ except ImportError as exc :
45+ raise ImportError (
46+ "%s depends on robotframework but import failed with: %s"
47+ % (repr (__distribution__ ), exc ))
48+ if Version (robot .__version__ ) < '2.8.7' :
49+ raise __import__ ('pkg_resources' ).VersionConflict (
50+ "%s needs robotframework>=2.8.7 but found %s in %s"
51+ % (repr (__distribution__ ), robot .__version__ , repr (robot )))
52+
4153from robottools .library import *
4254from robottools .library .keywords import *
4355from robottools .library .session import SessionHandler
You can’t perform that action at this time.
0 commit comments