forked from Lookyan/ProxyBroker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (44 loc) · 1.63 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
import re
import codecs
from setuptools import setup
# https://packaging.python.org/en/latest/distributing/
with codecs.open('proxybroker/__init__.py', mode='r', encoding='utf-8') as f:
INFO = dict(re.findall(r"__(\w+)__ = '([^']+)'", f.read(), re.MULTILINE))
with codecs.open('README.rst', mode='r', encoding='utf-8') as f:
INFO['long_description'] = f.read()
REQUIRES = ['aiodns', 'aiohttp', 'maxminddb']
PACKAGES = ['proxybroker', 'proxybroker.data']
PACKAGE_DATA = {'': ['LICENSE'], INFO['package']: ['data/*.mmdb']}
setup(
name=INFO['package'],
version=INFO['version'],
description=INFO['short_description'],
long_description=INFO['long_description'],
author=INFO['author'],
author_email=INFO['author_email'],
license=INFO['license'],
url=INFO['url'],
install_requires=REQUIRES,
packages=PACKAGES,
package_data=PACKAGE_DATA,
platforms='any',
entry_points={
'console_scripts': [
'proxybroker = proxybroker.cli:cli',
],
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Topic :: Internet :: Proxy Servers',
'License :: OSI Approved :: Apache Software License',
],
keywords='proxy finder grabber scraper parser graber scrapper checker broker async asynchronous http https connect socks socks4 socks5',
zip_safe=False,
test_suite='tests',
)