forked from secynic/ipwhois
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
93 lines (84 loc) · 2.37 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Filename: setup.py
from distutils.core import setup
import sys
import io
NAME = 'ipwhois'
VERSION = '0.15.1'
AUTHOR = 'Philip Hane'
AUTHOR_EMAIL = 'secynic@gmail.com'
DESCRIPTION = 'Retrieve and parse whois data for IPv4 and IPv6 addresses.'
KEYWORDS = [
'Python',
'WHOIS',
'RWhois',
'Referral Whois',
'ASN',
'IP Address',
'IP',
'IPv4',
'IPv6',
'IETF',
'REST',
'Arin',
'Ripe',
'Apnic',
'Lacnic',
'Afrinic',
'NIC',
'National Information Center',
'RDAP',
'RIR',
'Regional Internet Registry'
'NIR',
'National Intgernet Registry',
'ASN origin',
'Origin'
]
README = io.open(file='README.rst', mode='r', encoding='utf-8').read()
CHANGES = io.open(file='CHANGES.rst', mode='r', encoding='utf-8').read()
LONG_DESCRIPTION = '\n\n'.join([README, CHANGES])
LICENSE = io.open(file='LICENSE.txt', mode='r', encoding='utf-8').read()
URL = 'https://github.com/secynic/ipwhois'
DOWNLOAD_URL = 'https://github.com/secynic/ipwhois/tarball/master'
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet',
'Topic :: Software Development',
]
PACKAGES = ['ipwhois']
PACKAGE_DATA = {'ipwhois': ['data/*.xml', 'data/*.csv']}
INSTALL_REQUIRES = ['dnspython']
if sys.version_info < (3, 3,):
INSTALL_REQUIRES.append('ipaddr')
setup(
name=NAME,
version=VERSION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
keywords=KEYWORDS,
long_description=LONG_DESCRIPTION,
license=LICENSE,
url=URL,
download_url=DOWNLOAD_URL,
classifiers=CLASSIFIERS,
packages=PACKAGES,
package_data=PACKAGE_DATA,
install_requires=INSTALL_REQUIRES,
scripts=['ipwhois/scripts/ipwhois_cli.py',
'ipwhois/scripts/ipwhois_utils_cli.py']
)