mirror of
https://github.com/secynic/ipwhois.git
synced 2025-12-10 17:31:17 -06:00
90 lines
2.2 KiB
Python
90 lines
2.2 KiB
Python
# Filename: setup.py
|
|
|
|
from distutils.core import setup
|
|
import sys
|
|
import io
|
|
|
|
NAME = 'ipwhois'
|
|
VERSION = '0.11.1'
|
|
AUTHOR = "Philip Hane"
|
|
AUTHOR_EMAIL = "secynic AT gmail DOT com"
|
|
DESCRIPTION = "Retrieve and parse whois data for IPv4 and IPv6 addresses."
|
|
KEYWORDS = [
|
|
"Python",
|
|
"WHOIS",
|
|
"RWhois",
|
|
"ASN",
|
|
"IP Address",
|
|
"IP",
|
|
"IPv4",
|
|
"IPv6",
|
|
"IETF",
|
|
"REST",
|
|
"Arin",
|
|
"Ripe",
|
|
"Apnic",
|
|
"Lacnic",
|
|
"Afrinic",
|
|
"NIC",
|
|
"RDAP",
|
|
"RIR"
|
|
]
|
|
|
|
LONG_DESCRIPTION = '\n\n'.join([io.open('README.rst', 'r',
|
|
encoding='utf-8').read(),
|
|
io.open('CHANGES.rst', 'r',
|
|
encoding='utf-8').read()])
|
|
|
|
LICENSE = io.open('LICENSE.txt', '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",
|
|
"Topic :: Internet",
|
|
"Topic :: Software Development",
|
|
]
|
|
|
|
PACKAGES = ['ipwhois']
|
|
|
|
PACKAGE_DATA = {'ipwhois': ['data/*.xml', 'data/*.csv']}
|
|
|
|
INSTALL_REQUIRES = []
|
|
if sys.version_info >= (3,):
|
|
INSTALL_REQUIRES.append("dnspython3")
|
|
else:
|
|
INSTALL_REQUIRES.append("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
|
|
)
|