forked from secynic/ipwhois
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
89 lines (81 loc) · 2.29 KB
/
setup.py
File metadata and controls
89 lines (81 loc) · 2.29 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
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
# Filename: setup.py
from setuptools import setup
import io
NAME = 'ipwhois'
VERSION = '1.0.0'
AUTHOR = 'Philip Hane'
AUTHOR_EMAIL = 'secynic@gmail.com'
DESCRIPTION = 'Retrieve and parse whois data for IPv4 and IPv6 addresses.'
KEYWORDS = ' '.join([
'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 Internet 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 = 'BSD'
URL = 'https://github.com/secynic/ipwhois'
DOWNLOAD_URL = 'https://github.com/secynic/ipwhois/tarball/master'
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'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', 'ipaddr;python_version<"3.3"']
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']
)