Skip to content

Commit e65c027

Browse files
committed
fixing linting
1 parent f22e237 commit e65c027

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

packages/mbed-greentea/setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ def read(fname):
4040
@param fname: the name of the file to read, relative to the directory containing this file
4141
@return: The string content of the opened file
4242
"""
43-
with open(os.path.join(repository_dir, fname),
44-
encoding="utf8") as f:
43+
with open(os.path.join(repository_dir, fname), mode='r') as f:
4544
return f.read()
4645

4746

@@ -51,6 +50,7 @@ def read(fname):
5150
with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
5251
test_requirements = fh.readlines()
5352

53+
python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
5454
setup(name='mbed-greentea',
5555
version='1.7.3',
5656
description=DESCRIPTION,
@@ -82,7 +82,7 @@ def read(fname):
8282
'Topic :: Software Development :: Embedded Systems',
8383
'Topic :: Software Development :: Testing',
8484
),
85-
python_requires='>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
85+
python_requires=python_requires,
8686
install_requires=requirements,
8787
tests_require=test_requirements
88-
)
88+
)

packages/mbed-host-tests/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ def read(fname):
4040
@param fname: the name of the file to read, relative to the directory containing this file
4141
@return: The string content of the opened file
4242
"""
43-
with open(os.path.join(repository_dir, fname),
44-
encoding="utf8") as f:
43+
with open(os.path.join(repository_dir, fname), mode='r') as f:
4544
return f.read()
4645

4746

@@ -51,6 +50,7 @@ def read(fname):
5150
with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
5251
test_requirements = fh.readlines()
5352

53+
python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
5454
setup(name='mbed-host-tests',
5555
version='1.5.9',
5656
description=DESCRIPTION,
@@ -84,7 +84,7 @@ def read(fname):
8484
'Topic :: Software Development :: Embedded Systems',
8585
'Topic :: Software Development :: Testing',
8686
),
87-
python_requires='>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
87+
python_requires=python_requires,
8888
install_requires=requirements,
8989
tests_require=test_requirements
9090
)

packages/mbed-ls/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ def read(fname):
3737
@param fname: the name of the file to read, relative to the directory containing this file
3838
@return: The string content of the opened file
3939
"""
40-
with open(os.path.join(repository_dir, fname),
41-
encoding="utf8") as f:
40+
with open(os.path.join(repository_dir, fname), mode='r') as f:
4241
return f.read()
4342

4443

@@ -48,6 +47,7 @@ def read(fname):
4847
with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
4948
test_requirements = fh.readlines()
5049

50+
python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
5151
setup(name='mbed-ls',
5252
version='1.7.9',
5353
description=DESCRIPTION,
@@ -75,7 +75,7 @@ def read(fname):
7575
'Topic :: Software Development :: Build Tools',
7676
'Topic :: Software Development :: Embedded Systems',
7777
),
78-
python_requires='>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
78+
python_requires=python_requires,
7979
entry_points={
8080
"console_scripts": [
8181
"mbedls=mbed_lstools:mbedls_main",

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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):
4140
with 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'
4444
setup(
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

Comments
 (0)