forked from ThomasKleffel/pKNyX
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
128 lines (98 loc) · 3.29 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# -*- coding: utf-8 -*-
""" Python KNX framework
License
=======
- B{PyKNyX} (U{https://github.com/M-o-a-T/pyknyx}) is Copyright:
- (C) 2016-2017 Matthias Urlichs
- © 2016-2017 Matthias Urlichs
- PyKNyX is a fork of pKNyX
- © 2013-2015 Frédéric Mantegazza
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
or see:
- U{http://www.gnu.org/licenses/gpl.html}
Module purpose
==============
Packaging
Implements
==========
Documentation
=============
Usage
=====
@author: Frédéric Mantegazza
@copyright: (C) 2013-2015 Frédéric Mantegazza
@license: GPL
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools.command.test import test as TestCommand
import sys
from pyknyx.common import config
py2_req = []
if sys.version_info.major == 2:
py2_req.append("argparse")
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(name=config.APP_NAME,
version=config.APP_VERSION,
description="Python KNX framework (MoaT version)",
long_description=open('README.rst').read(),
url="https://github.com/M-o-a-T/pyknyx",
author="Matthias Urlichs",
author_email="[email protected]",
license="GPL",
maintainer="Matthias Urlichs",
maintainer_email="[email protected]",
download_url="https://github.com/M-o-a-T/pyknyx",
packages=["pyknyx",
"pyknyx.common",
"pyknyx.core",
"pyknyx.core.dptXlator",
"pyknyx.plugins",
"pyknyx.services",
"pyknyx.stack",
"pyknyx.stack.cemi",
"pyknyx.stack.knxnetip",
"pyknyx.stack.layer2",
"pyknyx.stack.layer3",
"pyknyx.stack.layer4",
"pyknyx.stack.layer7",
"pyknyx.stack.transceiver",
"pyknyx.tools",
"pyknyx.tools.templates",
],
extras_require={
'testing': [
'pytest',
'pytest-cov',
],
},
scripts=["pyknyx/scripts/pyknyx-group.py",
"pyknyx/scripts/pyknyx-admin.py"],
install_requires=["APScheduler >= 3",
"blinker",
"six",
]+py2_req,
tests_require=['pytest','six'],
cmdclass = {'test': PyTest},
)