Skip to content

Add support for MakerDiary nRF52840-MDK #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7c2226b
Add support for MakerDiary nRF52840-MDK
manchoz Nov 11, 2019
ab0a1d5
mbed detect: add NUCLEO_L010RB
jeromecoutant Nov 28, 2019
99f6714
mbed detect: add NUCLEO_G474RE
jeromecoutant Nov 28, 2019
fd8ae4d
mbed detect: add DISCO_H745I
jeromecoutant Nov 28, 2019
f42942e
mbed detect: add NUCLEO_G070RB
jeromecoutant Nov 28, 2019
cfd47a8
mbed detect: add NUCLEO_G431RB
jeromecoutant Nov 28, 2019
9f75cb1
Futurize stage 1 mbed-os-tools
madchutney Dec 4, 2019
d229fe0
Futurize stage 2 mbed-os-tools
madchutney Dec 4, 2019
4d6bcf1
acabarbaye Dec 4, 2019
d79f388
Futurize stage 1 mbed-greentea
madchutney Dec 4, 2019
2898ddf
acabarbaye Dec 4, 2019
f22e237
acabarbaye Dec 4, 2019
2a00017
Merge pull request #207 from jeromecoutant/PR_W948
madchutney Dec 4, 2019
ce78dec
Merge branch 'master' into py3-fixes
acabarbaye Dec 4, 2019
cabce9d
Merge branch 'master' into setup_classifier
acabarbaye Dec 4, 2019
e65c027
acabarbaye Dec 4, 2019
91fa038
Merge remote-tracking branch 'origin/setup_classifier' into setup_cla…
acabarbaye Dec 4, 2019
dc71271
acabarbaye Dec 4, 2019
4c3d320
acabarbaye Dec 4, 2019
883bdb2
Merge pull request #208 from ARMmbed/py3-fixes
madchutney Dec 4, 2019
a5ee75c
Merge branch 'master' into setup_classifier
mark-edgeworth Dec 4, 2019
53f6f02
Merge pull request #209 from ARMmbed/setup_classifier
madchutney Dec 4, 2019
7c5045e
Update version numbers for v0.0.11 release
madchutney Dec 4, 2019
e989416
add HANI_IOT platform
pan-pawel2 Dec 12, 2019
bf3614c
[MacOs] [FIX] mbed-ls does not show any output when STLink external p…
acabarbaye Dec 17, 2019
888842b
Merge branch 'master' into hani-iot
madchutney Dec 17, 2019
979ab00
Merge pull request #210 from panmasuo/hani-iot
acabarbaye Dec 17, 2019
fc0a997
Update VERSION.txt
acabarbaye Dec 17, 2019
4d3a5d9
Add support for MakerDiary nRF52840-MDK
manchoz Nov 11, 2019
fba1cd6
Merge branch 'makerdiary_nrf52840_mdk' of github.com:manchoz/mbed-os-…
manchoz Jan 7, 2020
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
5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
global-exclude *.py[cod] __pycache__ *.so
graft test
include README.md
include LICENSE
include CONTRIBUTING.md
include requirements.txt
include test_requirements.txt
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
-
script: "python -m pip install --upgrade pip && pip install -r test_requirements.txt"
displayName: "Install mbed-os test dependencies"
-
script: "pip install lxml"
env: { STATIC_DEPS: true }
displayName: "Install lxml separately on Linux/MacOS"
-
script: 'pip install --user "urllib3<1.25"'
displayName: "Fix dependency issue for requests package"
Expand Down
8 changes: 7 additions & 1 deletion packages/mbed-greentea/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
include README.md LICENSE CONTRIBUTING.md
global-exclude *.py[cod] __pycache__ *.so
graft test
include README.md
include LICENSE
include CONTRIBUTING.md
include requirements.txt
include test_requirements.txt
include .coveragerc
2 changes: 1 addition & 1 deletion packages/mbed-greentea/mbed_greentea/mbed_greentea_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def run_test_thread(test_result_queue, test_queue, opts, mut, build, build_path,
# In some cases we want to print console to see why test failed
# even if we are not in verbose mode
gt_logger.gt_log_tab("test failed, reporting console output (specified with --report-fails option)")
print
print()
print(single_test_output)

#greentea_release_target_id(mut['target_id'], gt_instance_uuid)
Expand Down
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
47 changes: 34 additions & 13 deletions packages/mbed-greentea/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,33 @@
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
@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), mode='r') 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()

python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
setup(name='mbed-greentea',
version='1.7.3',
version='1.7.4',
description=DESCRIPTION,
long_description=read('README.md'),
long_description_content_type='text/markdown',
Expand All @@ -56,13 +66,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=python_requires,
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
5 changes: 5 additions & 0 deletions packages/mbed-host-tests/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
global-exclude *.py[cod] __pycache__ *.so
graft test
include README.md
include requirements.txt
include test_requirements.txt
include .coveragerc

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
47 changes: 35 additions & 12 deletions packages/mbed-host-tests/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,29 @@
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
@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), mode='r') 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()

python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
setup(name='mbed-host-tests',
version='1.5.9',
version='1.5.10',
description=DESCRIPTION,
long_description=read('README.md'),
long_description_content_type='text/markdown',
Expand All @@ -55,14 +66,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=python_requires,
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
6 changes: 5 additions & 1 deletion packages/mbed-ls/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
include README.md LICENSE CONTRIBUTING.md
global-exclude *.py[cod] __pycache__ *.so
graft test
include README.md
include requirements.txt
include test_requirements.txt
include .coveragerc
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
48 changes: 34 additions & 14 deletions packages/mbed-ls/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,29 @@
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
@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), mode='r') 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()

python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
setup(name='mbed-ls',
version='1.7.9',
version='1.7.10',
description=DESCRIPTION,
long_description=read('README.md'),
long_description_content_type='text/markdown',
Expand All @@ -51,19 +62,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=python_requires,
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
14 changes: 14 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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
# When using beautiful soup, the XML parser needs to be installed independently. It is only needed on macOs though.
beautifulsoup4
lxml; sys_platform == 'darwin'
49 changes: 33 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,27 @@
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') 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()

python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
setup(
name="mbed-os-tools",
version=read("src/mbed_os_tools/VERSION.txt").strip(),
Expand All @@ -44,20 +58,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=python_requires,
install_requires=requirements,
tests_require=test_requirements,
extras_require={
"pyocd": ["pyocd==0.14.0"]
},
Expand Down
2 changes: 1 addition & 1 deletion src/mbed_os_tools/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.10
0.0.12
Loading