@@ -30,8 +30,7 @@ def read(fname):
3030 @param fname: the name of the file to read, relative to the directory containing this file
3131 @return: The string content of the opened file
3232 """
33- with open (os .path .join (repository_dir , fname ), mode = 'r' ,
34- encoding = "utf8" ) as f :
33+ with open (os .path .join (repository_dir , fname ), mode = 'r' ) as f :
3534 return f .read ()
3635
3736
@@ -41,6 +40,7 @@ def read(fname):
4140with open (os .path .join (repository_dir , 'test_requirements.txt' )) as fh :
4241 test_requirements = fh .readlines ()
4342
43+ python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
4444setup (
4545 name = "mbed-os-tools" ,
4646 version = read ("src/mbed_os_tools/VERSION.txt" ).strip (),
@@ -71,7 +71,7 @@ def read(fname):
7171 'Topic :: Software Development :: Build Tools' ,
7272 'Topic :: Software Development :: Embedded Systems' ,
7373 ),
74- python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4' ,
74+ python_requires = python_requires ,
7575 install_requires = requirements ,
7676 tests_require = test_requirements ,
7777 extras_require = {
0 commit comments