From 254398035506cc5b01df6ff42a7404c961419a7e Mon Sep 17 00:00:00 2001 From: Toshiaki Baba Date: Sat, 2 May 2015 00:43:45 +0900 Subject: [PATCH 1/2] dependency of lxml, seems to be missing. so fix it. --- README.md | 2 +- requirements.txt | 1 + setup.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f63dc0..e3e5fac 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ On Windows, run it via the command prompt (Start ‣ Accessories): Alternatively, running `odpdown` directly from the git checkout is also possible, provided you've installed the prerequisites (most -significantly mistune, lpod, pygments and pillow) manually. +significantly mistune, lpod, pygments, lxml and pillow) manually. ## Tests diff --git a/requirements.txt b/requirements.txt index 75c88ed..6c6a633 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ cram>=0.6 pygments>=1.6 pillow>=2.0 BeautifulSoup +lxml>=3.4.4 diff --git a/setup.py b/setup.py index 6722778..87d403e 100644 --- a/setup.py +++ b/setup.py @@ -46,6 +46,7 @@ class install(setuptools.command.install.install): 'lpod-python>=1.1.6', 'pygments>=1.6', 'pillow>=2.0', + 'lxml>=3.4.4', ], classifiers=[ 'Development Status :: 4 - Beta', From 5f825cbd205dd2bf82cbe0203a3629946f7cdf6c Mon Sep 17 00:00:00 2001 From: Toshiaki Baba Date: Sat, 2 May 2015 09:29:11 +0900 Subject: [PATCH 2/2] fix to run tox --- README.md | 4 ++++ tox.ini | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e3e5fac..cbe763e 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,10 @@ significantly mistune, lpod, pygments, lxml and pillow) manually. Run `tox` to run the test suite. + pip install tox + tox -v + + ## Usage usage: odpdown [-h] [--version] [-p PAGE] [-n] [-s HIGHLIGHT_STYLE] diff --git a/tox.ini b/tox.ini index 15abc2b..840ddb9 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,6 @@ envlist = py27,flake8 [testenv] whitelist_externals = cram deps = -rrequirements.txt - lxml nose commands = nosetests cram cramtest @@ -13,4 +12,4 @@ commands = nosetests basepython=python deps=flake8 commands= - flake8 odpdown odpdown.py \ No newline at end of file + flake8 odpdown odpdown.py