-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
79 lines (68 loc) · 1.82 KB
/
setup.py
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
71
72
73
74
75
76
77
78
79
"""Packaging settings."""
from codecs import open
from os.path import dirname, join
from subprocess import call
from setuptools import Command, find_packages, setup
def read(fname):
return open(join(dirname(__file__), fname), encoding='utf-8').read()
class RunTests(Command):
"""Run all tests."""
description = 'run tests'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
"""Run all tests!"""
errno = call([
'py.test',
'--verbose',
'--cov=plugnpy',
'--cov-report=term-missing',
'--cov-config=.coveragerc',
'--junitxml=.junit.xml',
])
raise SystemExit(errno)
setup(
name='plugnpy',
version=read('VERSION'),
description='A Simple Python Library for creating Opsview Opspack plugins',
long_description=read('README.md'),
url='https://github.com/opsview/plugnpy',
author='ITRS Group Ltd',
author_email='',
license='Apache-2.0',
classifiers=[
'Intended Audience :: Developers',
'Topic :: Libraries',
'License :: Apache-2.0',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
],
keywords='plugnpy',
packages=['plugnpy'],
include_package_data=True,
install_requires=[
'geventhttpclient',
],
extras_require={
'test': [
'tox',
'coverage',
'pytest',
'pytest-benchmark',
'pytest-cov',
'pytest-mock',
'pycodestyle',
'pylint',
'pyflakes',
'wheel',
],
'examples': [
'psutil',
],
},
cmdclass={'test': RunTests},
)