Skip to content

Commit 4d6bcf1

Browse files
committed
Modified mbed ls setup.py
1 parent c57087e commit 4d6bcf1

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

packages/mbed-ls/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PrettyTable>=0.7.2
2+
mbed-os-tools>=0.0.9,<0.1.0

packages/mbed-ls/setup.py

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,22 @@
2828
OWNER_NAMES = 'Graham Hammond, Mark Edgeworth'
2929
3030

31+
repository_dir = os.path.dirname(__file__)
3132

3233
def read(fname):
3334
"""
3435
Utility function to cat in a file (used for the README)
3536
@param fname: the name of the file to read, relative to the directory containing this file
3637
@return: The string content of the opened file
3738
"""
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()
3942

4043

44+
with open(os.path.join(repository_dir, 'requirements.txt')) as fh:
45+
requirements = fh.readlines()
46+
4147
setup(name='mbed-ls',
4248
version='1.7.9',
4349
description=DESCRIPTION,
@@ -51,15 +57,27 @@ def read(fname):
5157
packages=find_packages(),
5258
license="Apache-2.0",
5359
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',
5475
entry_points={
55-
"console_scripts": [
56-
"mbedls=mbed_lstools:mbedls_main",
57-
],
76+
"console_scripts": [
77+
"mbedls=mbed_lstools:mbedls_main",
78+
],
5879
},
59-
install_requires=[
60-
"PrettyTable>=0.7.2",
61-
"mbed-os-tools>=0.0.9,<0.1.0"
62-
],
80+
install_requires=requirements,
6381
tests_require=[
6482
"mock>=2",
6583
"pytest>=3"

0 commit comments

Comments
 (0)