forked from princehaku/pyrailgun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (55 loc) · 1.8 KB
/
setup.py
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
NAME = 'pyrailgun'
VERSION = '0.31'
DESCRIPTION = "Fast Crawler For Python"
LONG_DESCRIPTION = """\
This is a simple python crawler framework for human
you can crawler website more easily
only need a json file to descrip your crawler
optional module: webkit
if you have PyQt4 And QtWebkit installed, you can specific to use webkit to crawler html after javascript rendered
see https://github.com/princehaku/pyrailgun/tree/master/demo for some demos
see https://github.com/princehaku/pyrailgun for more infomation
"""
AUTHOR = "zhongwei bai"
AUTHOR_EMAIL = '[email protected]'
LICENSE = "MIT"
PLATFORMS = "Any"
URL = "https://github.com/princehaku/pyrailgun"
DOWNLOAD_URL = "https://pypi.python.org/packages/source/P/pyrailgun/%s-%s.tar.gz" % (NAME, VERSION)
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"Topic :: Software Development :: Libraries :: Python Modules",
]
REQUIRS = [
'beautifulsoup4 >=4.2.0',
'requests >=1.2.3'
]
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if __name__ == '__main__':
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
platforms=PLATFORMS,
url=URL,
download_url=DOWNLOAD_URL,
classifiers=CLASSIFIERS,
packages=['pyrailgun'],
include_package_data=True,
package_data={
'pyrailgun': ['*.conf', 'modules/*.conf']
},
install_requires=REQUIRS
)