forked from constverum/ProxyBroker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (55 loc) · 2.09 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
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()
with codecs.open('requirements.txt', mode='r', encoding='utf-8') as f:
REQUIRES = f.read().split()
SETUP_REQUIRES = ['pytest-runner']
TEST_REQUIRES = ['pytest>=3.2.1', 'pytest-asyncio>=0.8', 'pytest-mock>=1.6.3',
'pytest-pep8>=1.0.6', 'pytest-flakes>=2.0.0']
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,
setup_requires=SETUP_REQUIRES,
tests_require=TEST_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',
'Programming Language :: Python :: 3.6',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'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',
)