setup.py
author Tero Marttila <terom@paivola.fi>
Sat, 26 Jul 2014 13:52:51 +0300
changeset 422 56ba4bef5016
parent 291 f7b979c8dc5a
child 436 18805b3bf382
permissions -rw-r--r--
version: 0.7.0

* pvl.hosts: location = ... field
* pvl.hosts: support extension:foo = ... fields
* pvl.hosts: down = ...
* pvl.hosts-snmp: gather host links from snmp using lldp/fdb/vlan info
* pvl.hosts-graph: graph host links
#!/usr/bin/env python
# encoding: utf-8

from pvl.verkko import __version__

from distutils.core import setup
from glob import glob

def _globs (*pats) :
    for pat in pats :
        for file in glob(pat) :
            yield file

def globs (*pats) :
    return list(_globs(*pats))

setup(
    name            = 'pvl-verkko',
    version         = __version__,
    description     = "verkko.paivola.fi WSGI",
    url             = 'http://verkko.paivola.fi/hg/pvl-verkko',

    author          = "Tero Marttila",
    author_email    = "terom@paivola.fi",
    
    # deps
    install_requires    = [
        # pvl.args
        # pvl.invoke
        'pvl-common',

        # pvl.hosts-import
        'pvl-ldap',
    ],
    
    # lib
    namespace_packages = [ 'pvl' ],
    py_modules = [
        'pvl.hosts',
    ],
    packages    = [
        'pvl',
        'pvl.web',
        'pvl.dhcp',
        'pvl.dns',
        'pvl.rrd',
        'pvl.verkko',
    ],
    
    # bin
    scripts     = globs('bin/pvl.*-*'),
    
    # etc, static
    data_files  = [
        ( 'etc/pvl/verkko', [  ] ),
        ( 'share/pvl/verkko/static/dhcp',   globs('static/dhcp/*.css', 'static/dhcp/*.js')),
        ( 'share/pvl/verkko/static/rrd',    globs('static/rrd/*.css', 'static/rrd/*.js')),
        ( 'share/pvl/verkko/static',        globs('static/*.css')),
    ],
)