1
- from setuptools import setup , find_packages
2
- from setuptools .command .test import test as TestCommand
1
+ from setuptools import setup
2
+ from setuptools .command .test import test as testcommand
3
3
4
4
import io
5
- import codecs
6
5
import os
7
6
import sys
8
7
9
8
import maxcul
10
9
11
10
here = os .path .abspath (os .path .dirname (__file__ ))
12
11
12
+
13
13
def read (* filenames , ** kwargs ):
14
14
encoding = kwargs .get ('encoding' , 'utf-8' )
15
15
sep = kwargs .get ('sep' , '\n ' )
@@ -19,11 +19,13 @@ def read(*filenames, **kwargs):
19
19
buf .append (f .read ())
20
20
return sep .join (buf )
21
21
22
+
22
23
long_description = read ('README' , 'CHANGELOG' )
23
24
24
- class PyTest (TestCommand ):
25
+
26
+ class PyTest (testcommand ):
25
27
def finalize_options (self ):
26
- TestCommand .finalize_options (self )
28
+ testcommand .finalize_options (self )
27
29
self .test_args = []
28
30
self .test_suite = True
29
31
@@ -32,19 +34,21 @@ def run_tests(self):
32
34
errcode = pytest .main (self .test_args )
33
35
sys .exit (errcode )
34
36
37
+
35
38
setup (
36
39
name = 'maxcul' ,
37
40
version = maxcul .__version__ ,
38
41
url = 'https://github.com/karlTGA/MaxCul-Python' ,
39
42
license = 'BSD License' ,
40
- author = 'Karl Wolffgang' ,
43
+ author = 'Markus Ullmann, Karl Wolffgang' ,
41
44
tests_require = ['pytest' ],
42
45
install_requires = ['Flask>=0.12' ,
43
- 'Flask-SQLAlchemy>=2.1' ,
44
- 'blinker>=1.4' ,
45
- 'detach>=1.0' ,
46
- 'pyserial>=3.1.1'
47
- ],
46
+ 'Flask-SQLAlchemy>=2.1' ,
47
+ 'blinker>=1.4' ,
48
+ 'detach>=1.0' ,
49
+ 'pyserial>=3.1.1' ,
50
+ 'pytest>=3.0.5'
51
+ ],
48
52
cmdclass = {'test' : PyTest },
49
53
50
54
description = 'Access with Python MAX! Devices over a CUL Stick' ,
@@ -53,7 +57,7 @@ def run_tests(self):
53
57
include_package_data = True ,
54
58
platforms = 'any' ,
55
59
test_suite = 'maxcul.test.test_maxcul' ,
56
- classifiers = [
60
+ classifiers = [
57
61
'Programming Language :: Python' ,
58
62
'Development Status :: 4 - Beta' ,
59
63
'Natural Language :: English' ,
@@ -63,8 +67,8 @@ def run_tests(self):
63
67
'Operating System :: OS Independent' ,
64
68
'Topic :: Software Development :: Libraries :: Python Modules' ,
65
69
'Topic :: Home Automation'
66
- ],
70
+ ],
67
71
extras_require = {
68
72
'testing' : ['pytest' ],
69
73
}
70
- )
74
+ )
0 commit comments