Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/mbed-greentea/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mbed-os-tools>=0.0.9,<0.1.0
mbed-host-tests>=1.5.0,<2
40 changes: 30 additions & 10 deletions packages/mbed-greentea/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,29 @@
from distutils.core import setup
from setuptools import find_packages


DESCRIPTION = "mbed 3.0 onwards test suite, codename Greentea. The test suite is a collection of tools that enable automated testing on mbed-enabled platforms"
OWNER_NAMES = 'Anna Bridge, Qinghao Shi'
OWNER_EMAILS = '[email protected], [email protected]'

repository_dir = os.path.dirname(__file__)


def read(fname):
"""
Utility function to cat in a file (used for the README)
@param fname: the name of the file to read, relative to the directory containing this file
@return: The string content of the opened file
"""
return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf-8").read()
with open(os.path.join(repository_dir, fname),
encoding="utf8") as f:
return f.read()


with open(os.path.join(repository_dir, 'requirements.txt')) as fh:
requirements = fh.readlines()

with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
test_requirements = fh.readlines()

setup(name='mbed-greentea',
version='1.7.3',
Expand All @@ -56,13 +65,24 @@ def read(fname):
license="Apache-2.0",
test_suite='test',
entry_points={
"console_scripts": ["mbedgt=mbed_greentea.mbed_greentea_cli:main",],
"console_scripts": ["mbedgt=mbed_greentea.mbed_greentea_cli:main", ],
},
install_requires=[
"mbed-os-tools>=0.0.9,<0.1.0",
"mbed-host-tests>=1.5.0,<2"
],
tests_require=[
"mock>=2"
]
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Embedded Systems',
'Topic :: Software Development :: Testing',
),
python_requires='>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
install_requires=requirements,
tests_require=test_requirements
)
1 change: 1 addition & 0 deletions packages/mbed-greentea/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mock>=2
coverage
coveralls
1 change: 1 addition & 0 deletions packages/mbed-host-tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mbed-os-tools>=0.0.9,<0.1.0
42 changes: 32 additions & 10 deletions packages/mbed-host-tests/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,25 @@
OWNER_NAMES = 'Qinghao Shi'
OWNER_EMAILS = '[email protected]'

repository_dir = os.path.dirname(__file__)


def read(fname):
"""
Utility function to cat in a file (used for the README)
@param fname: the name of the file to read, relative to the directory containing this file
@return: The string content of the opened file
"""
return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf8").read()
with open(os.path.join(repository_dir, fname),
encoding="utf8") as f:
return f.read()


with open(os.path.join(repository_dir, 'requirements.txt')) as fh:
requirements = fh.readlines()

with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
test_requirements = fh.readlines()

setup(name='mbed-host-tests',
version='1.5.9',
Expand All @@ -55,14 +65,26 @@ def read(fname):
license="Apache-2.0",
test_suite='test',
entry_points={
"console_scripts":
["mbedhtrun=mbed_host_tests.mbedhtrun:main",
"mbedflsh=mbed_host_tests.mbedflsh:main"],
"console_scripts":
["mbedhtrun=mbed_host_tests.mbedhtrun:main",
"mbedflsh=mbed_host_tests.mbedflsh:main"],
},
install_requires=[
"mbed-os-tools>=0.0.9,<0.1.0"
],
tests_require=[
"mock>=2"
]
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Embedded Systems',
'Topic :: Software Development :: Testing',
),
python_requires='>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
install_requires=requirements,
tests_require=test_requirements
)
1 change: 1 addition & 0 deletions packages/mbed-host-tests/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mock>=2
coverage
coveralls
2 changes: 2 additions & 0 deletions packages/mbed-ls/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PrettyTable>=0.7.2
mbed-os-tools>=0.0.9,<0.1.0
43 changes: 31 additions & 12 deletions packages/mbed-ls/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,25 @@
OWNER_NAMES = 'Graham Hammond, Mark Edgeworth'
OWNER_EMAILS = '[email protected], [email protected]'

repository_dir = os.path.dirname(__file__)


def read(fname):
"""
Utility function to cat in a file (used for the README)
@param fname: the name of the file to read, relative to the directory containing this file
@return: The string content of the opened file
"""
return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf8").read()
with open(os.path.join(repository_dir, fname),
encoding="utf8") as f:
return f.read()


with open(os.path.join(repository_dir, 'requirements.txt')) as fh:
requirements = fh.readlines()

with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
test_requirements = fh.readlines()

setup(name='mbed-ls',
version='1.7.9',
Expand All @@ -51,19 +61,28 @@ def read(fname):
packages=find_packages(),
license="Apache-2.0",
test_suite='test',
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Embedded Systems',
),
python_requires='>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
entry_points={
"console_scripts": [
"mbedls=mbed_lstools:mbedls_main",
],
"console_scripts": [
"mbedls=mbed_lstools:mbedls_main",
],
},
install_requires=[
"PrettyTable>=0.7.2",
"mbed-os-tools>=0.0.9,<0.1.0"
],
tests_require=[
"mock>=2",
"pytest>=3"
],
install_requires=requirements,
tests_require=test_requirements,
extras_require={
"colorized_logs": ["colorlog"]
}
Expand Down
2 changes: 2 additions & 0 deletions packages/mbed-ls/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
mock>=2
pytest>=3
coverage
coveralls
11 changes: 11 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PySerial>=3.0,<4.0
requests>=2.0,<3.0
intelhex>=2.0,<3.0
future
PrettyTable>=0.7.2
fasteners
appdirs>=1.4,<2.0
junit-xml>=1.0,<2.0
lockfile
six>=1.0,<2.0
colorama>=0.3,<0.5
48 changes: 32 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,26 @@
OWNER_NAMES = "Jimmy Brisson, Brian Daniels"
OWNER_EMAILS = "[email protected], [email protected]"

repository_dir = os.path.dirname(__file__)


# Utility function to cat in a file (used for the README)
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname), 'r') as f:
"""
Utility function to cat in a file (used for the README)
@param fname: the name of the file to read, relative to the directory containing this file
@return: The string content of the opened file
"""
with open(os.path.join(repository_dir, fname), mode='r',
encoding="utf8") as f:
return f.read()


with open(os.path.join(repository_dir, 'requirements.txt')) as fh:
requirements = fh.readlines()

with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
test_requirements = fh.readlines()

setup(
name="mbed-os-tools",
version=read("src/mbed_os_tools/VERSION.txt").strip(),
Expand All @@ -44,20 +57,23 @@ def read(fname):
package_data={"": ["VERSION.txt"]},
license="Apache-2.0",
test_suite="test",
install_requires=[
"PySerial>=3.0,<4.0",
"requests>=2.0,<3.0",
"intelhex>=2.0,<3.0",
"future",
"PrettyTable>=0.7.2",
"fasteners",
"appdirs>=1.4,<2.0",
"junit-xml>=1.0,<2.0",
"lockfile",
"six>=1.0,<2.0",
"colorama>=0.3,<0.5",
],
tests_require=read("test_requirements.txt").splitlines(),
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Embedded Systems',
),
python_requires='>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
install_requires=requirements,
tests_require=test_requirements,
extras_require={
"pyocd": ["pyocd==0.14.0"]
},
Expand Down