forked from exhuma/puresnmp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (62 loc) · 1.87 KB
/
setup.py
File metadata and controls
70 lines (62 loc) · 1.87 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from sys import version_info
from setuptools import find_packages, setup
def get_version():
# type: () -> str
'''
Retrieves the version information for this package.
'''
filename = 'puresnmp/version.py'
with open(filename) as fptr:
# pylint: disable=invalid-name, exec-used
obj = compile(fptr.read(), filename, 'single')
data = {} # type: ignore
exec(obj, data)
return data['VERSION']
VERSION = get_version()
DEPENDENCIES = [
'verlib'
]
if version_info < (3, 5):
DEPENDENCIES.append('typing')
if version_info < (3, 3):
DEPENDENCIES.append('ipaddress')
DEPENDENCIES.append('mock')
TEST_DEPENDENCIES = [
'pytest-xdist',
'pytest',
'pytest-coverage'
]
if version_info >= (3, 6):
TEST_DEPENDENCIES.append('pytest-asyncio')
setup(
name="puresnmp",
version=VERSION,
description="Pure Python SNMP implementation",
long_description=open("README.rst").read(),
author="Michel Albert",
author_email="michel@albert.lu",
provides=['puresnmp'],
license="MIT",
include_package_data=True,
install_requires=DEPENDENCIES,
extras_require={
'dev': [],
'test': TEST_DEPENDENCIES
},
packages=find_packages(exclude=["tests.*", "tests", "docs"]),
url="https://github.com/exhuma/puresnmp",
keywords="networking snmp",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Topic :: System :: Networking',
'Topic :: System :: Networking :: Monitoring',
'Topic :: System :: Systems Administration',
]
)