28
28
OWNER_NAMES = 'Graham Hammond, Mark Edgeworth'
29
29
30
30
31
+ repository_dir = os .path .dirname (__file__ )
31
32
32
33
def read (fname ):
33
34
"""
34
35
Utility function to cat in a file (used for the README)
35
36
@param fname: the name of the file to read, relative to the directory containing this file
36
37
@return: The string content of the opened file
37
38
"""
38
- return open (os .path .join (os .path .dirname (__file__ ), fname ), encoding = "utf8" ).read ()
39
+ with open (os .path .join (repository_dir , fname ),
40
+ encoding = "utf8" ) as f :
41
+ return f .read ()
39
42
40
43
44
+ with open (os .path .join (repository_dir , 'requirements.txt' )) as fh :
45
+ requirements = fh .readlines ()
46
+
41
47
setup (name = 'mbed-ls' ,
42
48
version = '1.7.9' ,
43
49
description = DESCRIPTION ,
@@ -51,15 +57,27 @@ def read(fname):
51
57
packages = find_packages (),
52
58
license = "Apache-2.0" ,
53
59
test_suite = 'test' ,
60
+ classifiers = (
61
+ 'Development Status :: 5 - Production/Stable' ,
62
+ 'Intended Audience :: Developers' ,
63
+ 'License :: OSI Approved :: Apache Software License' ,
64
+ 'Programming Language :: Python :: 2' ,
65
+ 'Programming Language :: Python :: 2.7' ,
66
+ 'Programming Language :: Python :: 3' ,
67
+ 'Programming Language :: Python :: 3.5' ,
68
+ 'Programming Language :: Python :: 3.6' ,
69
+ 'Programming Language :: Python :: 3.7' ,
70
+ 'Programming Language :: Python' ,
71
+ 'Topic :: Software Development :: Build Tools' ,
72
+ 'Topic :: Software Development :: Embedded Systems' ,
73
+ ),
74
+ python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4' ,
54
75
entry_points = {
55
- "console_scripts" : [
56
- "mbedls=mbed_lstools:mbedls_main" ,
57
- ],
76
+ "console_scripts" : [
77
+ "mbedls=mbed_lstools:mbedls_main" ,
78
+ ],
58
79
},
59
- install_requires = [
60
- "PrettyTable>=0.7.2" ,
61
- "mbed-os-tools>=0.0.9,<0.1.0"
62
- ],
80
+ install_requires = requirements ,
63
81
tests_require = [
64
82
"mock>=2" ,
65
83
"pytest>=3"
0 commit comments