-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
54 lines (48 loc) · 1.53 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
from distutils.core import setup
import sys, os
version = '0.6'
def get_usage():
try:
from spydey.spider import get_optparser
except ImportError:
return '\n'
parser = get_optparser()
parser.prog = 'spydey'
usage = parser.format_help()
# Add some indentation for using as ReStructured Text code block.
usage = usage.replace('\n', '\n ')
usage = '\nUsage\n=======\n\n::\n\n ' + usage
return usage
here = os.path.dirname(__file__)
README = open(os.path.join(here, 'README.rst')).read()
README += get_usage()
README += open(os.path.join(here, 'CHANGES.txt')).read()
setup(name='spydey',
version=version,
description="A simple web spider with pluggable recursion strategies",
long_description=README,
classifiers=[
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Site Management :: Link Checking',
], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
author='Paul M. Winkler',
author_email='[email protected]',
url='http://github.com/slinkp/spydey',
license='MIT',
include_package_data=True,
zip_safe=False,
install_requires=[
# -*- Extra requirements: -*-
'httplib2',
'lxml',
],
entry_points="""
# -*- Entry points: -*-
[console_scripts]
spydey=spydey.spider:main
""",
)