File: setup.py

package info (click to toggle)
snimpy 0.8.3-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 492 kB
  • sloc: python: 3,361; makefile: 6
file content (53 lines) | stat: -rw-r--r-- 1,745 bytes parent folder | download | duplicates (2)
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
from setuptools import setup
import snimpy

try:
    import multiprocessing
    import pysnmp
except ImportError:
    pass

if __name__ == "__main__":
    # MIB module
    try:
        import snimpy.mib
        ext_modules = [ snimpy.mib.ffi.verifier.get_extension() ]
    except ImportError:
        ext_modules = []

    readme = open('README.rst').read()
    history = open('HISTORY.rst').read().replace('.. :changelog:', '')

    setup(name="snimpy",
          version=snimpy.__version__,
          classifiers = [
            'Development Status :: 4 - Beta',
            'Environment :: Console',
            'Intended Audience :: System Administrators',
            'License :: OSI Approved :: ISC License (ISCL)',
            'Operating System :: POSIX',
            'Programming Language :: Python :: 2',
            'Programming Language :: Python :: 3',
            'Topic :: System :: Networking',
            'Topic :: Utilities',
            'Topic :: System :: Monitoring'
            ],
          url='https://github.com/vincentbernat/snimpy',
          description=snimpy.__doc__,
          long_description=readme + '\n\n' + history,
          author=snimpy.__author__,
          author_email=snimpy.__email__,
          packages=["snimpy"],
          entry_points = {
              'console_scripts': [
                  'snimpy = snimpy.main:interact',
              ],
          },
          data_files = [('share/man/man1', ['man/snimpy.1'])],
          ext_modules = ext_modules,
          zip_safe = False,
          install_requires = [ "cffi", "pysnmp >= 4" ],
          setup_requires = [ "cffi" ],
          tests_require = [ "cffi", "pysnmp >= 4", "nose", "mock" ],
          test_suite="nose.collector"
          )