Reading html files through BeautifulSoup

This commit is contained in:
2018-08-12 13:11:19 +01:00
parent be2cc55936
commit 509d54e5d6
4 changed files with 168 additions and 22 deletions

View File

@@ -1,18 +1,20 @@
TEST_FILES = $(wildcard samples/*.zip)
PYTHONPATH = $(CURDIR)/modules/ebooklib
.PHONY: test
test:
python gragir/__main__.py -v samples/algorithms_third_edition_in_c.zip algorithms_third_edition_in_c.epub
test: test_samples/algorithms_third_edition_in_c.zip
.PHONY: test_all
test_all: $(addprefix test_,$(TEST_FILES))
.ONESHELL:
.PHONY: $(addprefix test_,$(TEST_FILES))
$(addprefix test_,$(TEST_FILES)): test_%:
@echo Testing $*
@python gragir/__main__.py -v $* test_out/$(*F).epub
@set PYTHONPATH=$(PYTHONPATH) && python gragir/__main__.py -v $* test_out/$(*F).epub
#python gragir/__main__.py samples/algorithms_third_edition_in_c.zip algorithms_third_edition_in_c.epub