-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (44 loc) · 1.28 KB
/
setup.py
File metadata and controls
47 lines (44 loc) · 1.28 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
#encoding: utf-8
import os
import re
from setuptools import setup, find_packages
# parse version from webcrawler/__init__.py
with open(os.path.join(os.path.dirname(__file__), 'webcrawler', '__init__.py')) as f:
version = re.compile(r"__version__\s+=\s+'(.*)'", re.I).match(f.read()).group(1)
with open('README.md') as f:
long_description = f.read()
setup(
name='requests-crawler',
version=version,
description='A simple web crawler, mainly targets for link validation test',
long_description=long_description,
author='Leo Lee',
author_email='mail@debugtalk.com',
url='https://github.com/debugtalk/webcrawler.git',
license='MIT',
packages=find_packages(exclude=['tests']),
package_data={
'webcrawler': ['default_config.yml'],
},
keywords='diff compare',
install_requires=[
'termcolor',
'PyYAML',
'future',
'lxml',
'requests',
'jenkins-mail-py'
],
dependency_links=[
"git+https://github.com/debugtalk/jenkins-mail-py.git#egg=jenkins-mail-py-0"
],
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'webcrawler=webcrawler:main'
]
}
)