21
21
OWNER_NAMES = "Jimmy Brisson, Brian Daniels"
22
22
23
23
24
+ repository_dir = os .path .dirname (__file__ )
25
+
24
26
25
- # Utility function to cat in a file (used for the README)
26
27
def read (fname ):
27
- with open (os .path .join (os .path .dirname (__file__ ), fname ), 'r' ) as f :
28
+ """
29
+ Utility function to cat in a file (used for the README)
30
+ @param fname: the name of the file to read, relative to the directory containing this file
31
+ @return: The string content of the opened file
32
+ """
33
+ with open (os .path .join (repository_dir , fname ), mode = 'r' ,
34
+ encoding = "utf8" ) as f :
28
35
return f .read ()
29
36
30
37
38
+ with open (os .path .join (repository_dir , 'requirements.txt' )) as fh :
39
+ requirements = fh .readlines ()
40
+
31
41
setup (
32
42
name = "mbed-os-tools" ,
33
43
version = read ("src/mbed_os_tools/VERSION.txt" ).strip (),
@@ -44,19 +54,22 @@ def read(fname):
44
54
package_data = {"" : ["VERSION.txt" ]},
45
55
license = "Apache-2.0" ,
46
56
test_suite = "test" ,
47
- install_requires = [
48
- "PySerial>=3.0,<4.0" ,
49
- "requests>=2.0,<3.0" ,
50
- "intelhex>=2.0,<3.0" ,
51
- "future" ,
52
- "PrettyTable>=0.7.2" ,
53
- "fasteners" ,
54
- "appdirs>=1.4,<2.0" ,
55
- "junit-xml>=1.0,<2.0" ,
56
- "lockfile" ,
57
- "six>=1.0,<2.0" ,
58
- "colorama>=0.3,<0.5" ,
59
- ],
57
+ classifiers = (
58
+ 'Development Status :: 5 - Production/Stable' ,
59
+ 'Intended Audience :: Developers' ,
60
+ 'License :: OSI Approved :: Apache Software License' ,
61
+ 'Programming Language :: Python :: 2' ,
62
+ 'Programming Language :: Python :: 2.7' ,
63
+ 'Programming Language :: Python :: 3' ,
64
+ 'Programming Language :: Python :: 3.5' ,
65
+ 'Programming Language :: Python :: 3.6' ,
66
+ 'Programming Language :: Python :: 3.7' ,
67
+ 'Programming Language :: Python' ,
68
+ 'Topic :: Software Development :: Build Tools' ,
69
+ 'Topic :: Software Development :: Embedded Systems' ,
70
+ ),
71
+ python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4' ,
72
+ install_requires = requirements ,
60
73
tests_require = read ("test_requirements.txt" ).splitlines (),
61
74
extras_require = {
62
75
"pyocd" : ["pyocd==0.14.0" ]
0 commit comments