File: setup.py

package info (click to toggle)
python-iplib 1.0-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 144 kB
  • ctags: 172
  • sloc: python: 936; makefile: 31
file content (55 lines) | stat: -rwxr-xr-x 1,632 bytes parent folder | download
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
#!/usr/bin/env python

import sys
from distutils.core import setup


long_desc = """You can use this Python module to convert amongst many
different notations and to manage couples of address/netmask
in the CIDR notation.
"""

classifiers = """\
Development Status :: 4 - Beta
Development Status :: 5 - Production/Stable
Environment :: Console
Environment :: No Input/Output (Daemon)
Intended Audience :: Developers
Intended Audience :: End Users/Desktop
License :: OSI Approved :: GNU General Public License (GPL)
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Topic :: Software Development :: Libraries :: Python Modules
Topic :: System :: Networking
Topic :: Internet
Topic :: Utilities
"""

params = {'name': 'iplib',
    'version': '1.0',
    'description': 'convert amongst many different IPv4 notations',
    'long_description': long_desc,
    'author': 'Davide Alberani',
    'author_email': 'da@erlug.linux.it',
    'maintainer': 'Davide Alberani',
    'maintainer_email': 'da@erlug.linux.it',
    'url': 'http://erlug.linux.it/~da/soft/iplib/',
    'license': 'GPL',
    'py_modules': ['iplib'],
    'scripts': ['./bin/cidrinfo.py', './bin/ipconv.py', './bin/nmconv.py']}


if sys.version_info >= (2, 1):
    params['keywords'] = ['ip', 'address', 'quad', 'dot', 'notation',
                'binary', 'octal', 'hexadecimal', 'netmask', 'cidr', 'internet']
    params['platforms'] = 'any'

if sys.version_info >= (2, 3):
    params['download_url'] = 'http://erlug.linux.it/~da/soft/iplib/'
    params['classifiers'] = filter(None, classifiers.split("\n"))


setup(**params)