Skip to content

Commit b2c0145

Browse files
committed
Fixes #257 by removing the docutils dependency
The docutils is only needed for Selenium2Library development, therefore removed the dependency from setup.py. Also added meaningfull error message to development tools, if the docutils is not installed.
1 parent ec3c897 commit b2c0145

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

doc/buildhtml.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@
2626
import os.path
2727
import copy
2828
from fnmatch import fnmatch
29-
import docutils
30-
from docutils import ApplicationError
31-
from docutils import core, frontend, utils
32-
from docutils.error_reporting import ErrorOutput, ErrorString
33-
from docutils.parsers import rst
34-
from docutils.readers import standalone, pep
35-
from docutils.writers import html4css1, pep_html
29+
try:
30+
import docutils
31+
from docutils import ApplicationError
32+
from docutils import core, frontend, utils
33+
from docutils.error_reporting import ErrorOutput, ErrorString
34+
from docutils.parsers import rst
35+
from docutils.readers import standalone, pep
36+
from docutils.writers import html4css1, pep_html
37+
except ImportError:
38+
raise ImportError('Importing `docutils` failed. Install it with `pip install docutils`.')
3639

3740

3841
usage = '%prog [options] [<directory> ...]'

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
install_requires = [
3636
'decorator >= 3.3.2',
3737
'selenium >= 2.32.0',
38-
'robotframework >= 2.6.0',
39-
'docutils >= 0.8.1'
38+
'robotframework >= 2.6.0'
4039
],
4140
py_modules=['ez_setup'],
4241
package_dir = {'' : 'src'},

0 commit comments

Comments
 (0)