Skip to content

Commit a1ee4e6

Browse files
committed
Update to work with Pillow instead of PIL
1 parent 383eb8e commit a1ee4e6

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ build/
44
dist/
55
.DS_Store*
66
env/
7+
*~

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PIL
1+
Pillow
22
lxml
33
cssselect
44
jieba

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
packages=find_packages(),
1717
include_package_data=True,
1818
zip_safe=False,
19-
install_requires=['PIL', 'lxml', 'cssselect', 'jieba'],
19+
install_requires=['Pillow', 'lxml', 'cssselect', 'jieba'],
2020
test_suite="tests"
2121
)

tests/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from goose.configuration import Configuration
3131
from goose.text import StopWordsChinese
3232

33-
CURRENT_PATH = os.path.dirname(__file__)
33+
CURRENT_PATH = os.path.dirname(os.path.abspath(__file__))
3434

3535

3636
class TestParser(unittest.TestCase):

0 commit comments

Comments
 (0)