Skip to content
This repository was archived by the owner on Jan 22, 2020. It is now read-only.

Commit 7b6099e

Browse files
committed
fix(build): don't require pillow for install
1 parent 4ec0c64 commit 7b6099e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ def read(*names, **kwargs):
6060
],
6161
install_requires=[
6262
'click',
63-
'awesome-slugify',
64-
'Pillow',
65-
'mock'
63+
'awesome-slugify'
6664
],
6765
extras_require={
6866
# eg:

src/livingdocs/maker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from .hugo_doc import HugoDoc
22

3-
from PIL import Image
43
from slugify import UniqueSlugify
54
import os
65

@@ -70,6 +69,7 @@ def end_step(self, context, step):
7069

7170
# get the screenshot
7271
try:
72+
from PIL import Image
7373
context.browser.driver.get_screenshot_as_file(
7474
'%s/%s/%s' % (self.output_dir, self.doc.path, shot_name))
7575
except:

0 commit comments

Comments
 (0)