forked from codelucas/newspaper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
81 lines (70 loc) · 1.89 KB
/
Copy pathsetup.py
File metadata and controls
81 lines (70 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/python2.7
# -*- coding: utf-8 -*-
"""
Lucas Ou-Yang 2014 -- http://codelucas.com
Setup guide: http://guide.python-distribute.org/creation.html
python setup.py sdist bdist_wininst upload
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
packages = [
'newspaper',
'newspaper.data',
'newspaper.packages',
'newspaper.packages.tldextract',
# 'newspaper.packages.tldextract.tests',
'newspaper.packages.feedparser',
# 'newspaper.packages.feedparser.tests'
#'newspaper.packages.goose',
#'newspaper.packages.goose.utils',
#'newspaper.packages.goose.videos',
#'newspaper.packages.goose.images',
'newspaper.packages.jieba',
'newspaper.packages.jieba.posseg',
'newspaper.packages.jieba.finalseg',
'newspaper.packages.jieba.analyse'
]
# The following libs are bundled in
# ---------------------------------
# 'feedparser'
# 'tldextract==1.2.2'
# 'jieba'
requires = [
'lxml', # 3.2.4 tested
'requests',
'nltk',
'Pillow', # <- PIL
'cssselect',
'BeautifulSoup'
]
readme = u''
history = u''
_license = u''
try:
with open('README.rst') as f:
readme = f.read()
with open('LICENSE') as f:
_license = f.read()
with open('HISTORY.md') as f:
history = f.read()
except:
print ''
setup(
name='newspaper',
version='0.0.7',
description='Simplified python article discovery & extraction.',
# long_description=readme+'\r\n'+history,
author='Lucas Ou-Yang',
author_email='lucasyangpersonal@gmail.com',
url='https://github.com/codelucas/newspaper/',
packages=packages,
# TODO: Uhh, what do the following two lines mean?
# package_data={'': ['LICENSE'], 'newspaper': []},
# package_dir={'newspaper': 'newspaper'},
include_package_data=True,
install_requires=requires,
license=_license,
zip_safe=False,
)