forked from ITRS-Group/plugnpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
75 lines (64 loc) · 1.81 KB
/
setup.py
File metadata and controls
75 lines (64 loc) · 1.81 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
71
72
73
74
75
"""Packaging settings."""
from codecs import open
from os.path import dirname, join
from subprocess import call
from setuptools import Command, find_packages, setup
from plugnpy import __version__ as VERSION
from plugnpy import __release__ as RELEASE
def read(fname):
return open(join(dirname(__file__), fname)).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=VERSION + '.' + RELEASE,
description='A Simple Python Library for creating Opsview Opspack plugins',
long_description=read('README.md'),
url='https://github.com/opsview/plugnpy',
author='Opsview Ltd',
author_email='support@opsview.com',
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.6',
],
keywords='plugnpy',
packages=['plugnpy'],
data_files=[
('info', ['VERSION', 'RELEASE', 'LICENSE', 'README.md'])
],
install_requires=[],
extras_require={
'test': [
'coverage',
'pytest',
'pytest-benchmark',
'pytest-cov',
'pycodestyle',
'pylint',
'pyflakes',
],
},
cmdclass={'test': RunTests},
)