forked from SpiderClub/haipproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (40 loc) · 1.39 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
from os import path as os_path
from setuptools import setup
import haipproxy
this_directory = os_path.abspath(os_path.dirname(__file__))
def read_file(filename):
with open(os_path.join(this_directory, filename), encoding='utf-8') as f:
long_description = f.read()
return long_description
def read_requirements(filename):
return [line.strip() for line in read_file(filename).splitlines()
if not line.startswith('#')]
setup(
name='haipproxy',
python_requires='>=3.4.0',
version=haipproxy.__version__,
description="High aviariable proxy pool client for crawlers.",
long_description=read_file('README.md'),
long_description_content_type="text/markdown",
author="Resolvewang",
author_email='[email protected]',
url='https://github.com/SpiderClub/haipproxy',
packages=[
'haipproxy',
'haipproxy.client',
'haipproxy.config',
'haipproxy.utils'
],
install_requires=read_requirements('requirements-cli.txt'),
include_package_data=True,
license="MIT",
keywords=['proxy', 'client', 'haipproxy'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)