| 1 | #!/usr/bin/env python | 
|---|
| 2 | # | 
|---|
| 3 | # Copyright (C) 2003-2007, 2009, 2010 Nominum, Inc. | 
|---|
| 4 | # | 
|---|
| 5 | # Permission to use, copy, modify, and distribute this software and its | 
|---|
| 6 | # documentation for any purpose with or without fee is hereby granted, | 
|---|
| 7 | # provided that the above copyright notice and this permission notice | 
|---|
| 8 | # appear in all copies. | 
|---|
| 9 | # | 
|---|
| 10 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES | 
|---|
| 11 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | 
|---|
| 12 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR | 
|---|
| 13 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | 
|---|
| 14 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | 
|---|
| 15 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT | 
|---|
| 16 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 
|---|
| 17 |  | 
|---|
| 18 | import sys | 
|---|
| 19 | from distutils.core import setup | 
|---|
| 20 |  | 
|---|
| 21 | version = '1.9.3' | 
|---|
| 22 |  | 
|---|
| 23 | kwargs = { | 
|---|
| 24 | 'name' : 'dnspython', | 
|---|
| 25 | 'version' : version, | 
|---|
| 26 | 'description' : 'DNS toolkit', | 
|---|
| 27 | 'long_description' : \ | 
|---|
| 28 | """dnspython is a DNS toolkit for Python. It supports almost all | 
|---|
| 29 | record types. It can be used for queries, zone transfers, and dynamic | 
|---|
| 30 | updates.  It supports TSIG authenticated messages and EDNS0. | 
|---|
| 31 |  | 
|---|
| 32 | dnspython provides both high and low level access to DNS. The high | 
|---|
| 33 | level classes perform queries for data of a given name, type, and | 
|---|
| 34 | class, and return an answer set.  The low level classes allow | 
|---|
| 35 | direct manipulation of DNS zones, messages, names, and records.""", | 
|---|
| 36 | 'author' : 'Bob Halley', | 
|---|
| 37 | 'author_email' : 'halley@dnspython.org', | 
|---|
| 38 | 'license' : 'BSD-like', | 
|---|
| 39 | 'url' : 'http://www.dnspython.org', | 
|---|
| 40 | 'packages' : ['dns', 'dns.rdtypes', 'dns.rdtypes.IN', 'dns.rdtypes.ANY'], | 
|---|
| 41 | } | 
|---|
| 42 |  | 
|---|
| 43 | if sys.hexversion >= 0x02020300: | 
|---|
| 44 | kwargs['download_url'] = \ | 
|---|
| 45 | 'http://www.dnspython.org/kits/%s/dnspython-%s.tar.gz' % (version, | 
|---|
| 46 | version) | 
|---|
| 47 | kwargs['classifiers'] = [ | 
|---|
| 48 | "Development Status :: 5 - Production/Stable", | 
|---|
| 49 | "Intended Audience :: Developers", | 
|---|
| 50 | "Intended Audience :: System Administrators", | 
|---|
| 51 | "License :: Freeware", | 
|---|
| 52 | "Operating System :: Microsoft :: Windows :: Windows 95/98/2000", | 
|---|
| 53 | "Operating System :: POSIX", | 
|---|
| 54 | "Programming Language :: Python", | 
|---|
| 55 | "Topic :: Internet :: Name Service (DNS)", | 
|---|
| 56 | "Topic :: Software Development :: Libraries :: Python Modules", | 
|---|
| 57 | ] | 
|---|
| 58 |  | 
|---|
| 59 | if sys.hexversion >= 0x02050000: | 
|---|
| 60 | kwargs['requires'] = [] | 
|---|
| 61 | kwargs['provides'] = ['dns'] | 
|---|
| 62 |  | 
|---|
| 63 | setup(**kwargs) | 
|---|