Skip to content

Commit 3d45b2c

Browse files
committed
Renamed workspace_tools folder to tools
1 parent 9714a0e commit 3d45b2c

File tree

321 files changed

+153
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

321 files changed

+153
-153
lines changed
File renamed without changes.
File renamed without changes.

workspace_tools/build.py renamed to tools/build.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
sys.path.insert(0, ROOT)
2828

2929

30-
from workspace_tools.toolchains import TOOLCHAINS
31-
from workspace_tools.targets import TARGET_NAMES, TARGET_MAP
32-
from workspace_tools.options import get_default_options_parser
33-
from workspace_tools.build_api import build_mbed_libs, build_lib
34-
from workspace_tools.build_api import mcu_toolchain_matrix
35-
from workspace_tools.build_api import static_analysis_scan, static_analysis_scan_lib, static_analysis_scan_library
36-
from workspace_tools.build_api import print_build_results
37-
from workspace_tools.settings import CPPCHECK_CMD, CPPCHECK_MSG_FORMAT
30+
from tools.toolchains import TOOLCHAINS
31+
from tools.targets import TARGET_NAMES, TARGET_MAP
32+
from tools.options import get_default_options_parser
33+
from tools.build_api import build_mbed_libs, build_lib
34+
from tools.build_api import mcu_toolchain_matrix
35+
from tools.build_api import static_analysis_scan, static_analysis_scan_lib, static_analysis_scan_library
36+
from tools.build_api import print_build_results
37+
from tools.settings import CPPCHECK_CMD, CPPCHECK_MSG_FORMAT
3838

3939
if __name__ == '__main__':
4040
start = time()

workspace_tools/build_api.py renamed to tools/build_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
from os.path import join, exists, basename
2626
from time import time
2727

28-
from workspace_tools.utils import mkdir, run_cmd, run_cmd_ext, NotSupportedException
29-
from workspace_tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_API, MBED_HAL, MBED_COMMON
30-
from workspace_tools.targets import TARGET_NAMES, TARGET_MAP
31-
from workspace_tools.libraries import Library
32-
from workspace_tools.toolchains import TOOLCHAIN_CLASSES
28+
from tools.utils import mkdir, run_cmd, run_cmd_ext, NotSupportedException
29+
from tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_API, MBED_HAL, MBED_COMMON
30+
from tools.targets import TARGET_NAMES, TARGET_MAP
31+
from tools.libraries import Library
32+
from tools.toolchains import TOOLCHAIN_CLASSES
3333
from jinja2 import FileSystemLoader
3434
from jinja2.environment import Environment
3535

workspace_tools/build_release.py renamed to tools/build_release.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
ROOT = abspath(join(dirname(__file__), ".."))
2626
sys.path.insert(0, ROOT)
2727

28-
from workspace_tools.build_api import build_mbed_libs
29-
from workspace_tools.build_api import write_build_report
30-
from workspace_tools.targets import TARGET_MAP, TARGET_NAMES
31-
from workspace_tools.test_exporters import ReportExporter, ResultExporterType
32-
from workspace_tools.test_api import SingleTestRunner
33-
from workspace_tools.test_api import singletest_in_cli_mode
34-
from workspace_tools.paths import TEST_DIR
35-
from workspace_tools.tests import TEST_MAP
28+
from tools.build_api import build_mbed_libs
29+
from tools.build_api import write_build_report
30+
from tools.targets import TARGET_MAP, TARGET_NAMES
31+
from tools.test_exporters import ReportExporter, ResultExporterType
32+
from tools.test_api import SingleTestRunner
33+
from tools.test_api import singletest_in_cli_mode
34+
from tools.paths import TEST_DIR
35+
from tools.tests import TEST_MAP
3636

3737
OFFICIAL_MBED_LIBRARY_BUILD = (
3838
('LPC11U24', ('ARM', 'uARM', 'GCC_ARM', 'IAR')),
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

workspace_tools/data/support.py renamed to tools/data/support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from workspace_tools.targets import TARGETS
17+
from tools.targets import TARGETS
1818

1919
DEFAULT_SUPPORT = {}
2020
CORTEX_ARM_SUPPORT = {}
File renamed without changes.
File renamed without changes.
File renamed without changes.

workspace_tools/dev/rpc_classes.py renamed to tools/dev/rpc_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from os.path import join
1818
from jinja2 import Template
1919

20-
from workspace_tools.paths import TOOLS_DATA, MBED_RPC
20+
from tools.paths import TOOLS_DATA, MBED_RPC
2121

2222
RPC_TEMPLATES_PATH = join(TOOLS_DATA, "rpc")
2323

File renamed without changes.
File renamed without changes.

workspace_tools/export/__init__.py renamed to tools/export/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
from shutil import copytree, rmtree, copy
2020
import yaml
2121

22-
from workspace_tools.utils import mkdir
23-
from workspace_tools.export import uvision4, uvision5, codered, gccarm, ds5_5, iar, emblocks, coide, kds, zip, simplicityv3, atmelstudio, sw4stm32, e2studio
24-
from workspace_tools.export.exporters import zip_working_directory_and_clean_up, OldLibrariesException
25-
from workspace_tools.targets import TARGET_NAMES, EXPORT_MAP, TARGET_MAP
22+
from tools.utils import mkdir
23+
from tools.export import uvision4, uvision5, codered, gccarm, ds5_5, iar, emblocks, coide, kds, zip, simplicityv3, atmelstudio, sw4stm32, e2studio
24+
from tools.export.exporters import zip_working_directory_and_clean_up, OldLibrariesException
25+
from tools.targets import TARGET_NAMES, EXPORT_MAP, TARGET_MAP
2626

2727
from project_generator_definitions.definitions import ProGenDef
2828

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

workspace_tools/export/emblocks.py renamed to tools/export/emblocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"""
1717
from exporters import Exporter
1818
from os.path import splitext, basename
19-
from workspace_tools.targets import TARGETS
19+
from tools.targets import TARGETS
2020

2121
# filter all the GCC_ARM targets out of the target list
2222
gccTargets = []

workspace_tools/export/exporters.py renamed to tools/export/exporters.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
from contextlib import closing
99
from zipfile import ZipFile, ZIP_DEFLATED
1010

11-
from workspace_tools.utils import mkdir
12-
from workspace_tools.toolchains import TOOLCHAIN_CLASSES
13-
from workspace_tools.targets import TARGET_MAP
11+
from tools.utils import mkdir
12+
from tools.toolchains import TOOLCHAIN_CLASSES
13+
from tools.targets import TARGET_MAP
1414

1515
from project_generator.generate import Generator
1616
from project_generator.project import Project
File renamed without changes.

workspace_tools/export/iar.py renamed to tools/export/iar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
import os
1919
from project_generator_definitions.definitions import ProGenDef
2020

21-
from workspace_tools.export.exporters import Exporter
22-
from workspace_tools.targets import TARGET_MAP, TARGET_NAMES
21+
from tools.export.exporters import Exporter
22+
from tools.targets import TARGET_MAP, TARGET_NAMES
2323

2424
# If you wish to add a new target, add it to project_generator_definitions, and then
2525
# define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``)
File renamed without changes.
File renamed without changes.
File renamed without changes.

workspace_tools/export/sw4stm32.py renamed to tools/export/sw4stm32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from exporters import Exporter
1818
from os.path import splitext, basename, join
1919
from random import randint
20-
from workspace_tools.utils import mkdir
20+
from tools.utils import mkdir
2121

2222

2323
class Sw4STM32(Exporter):

workspace_tools/export/uvision4.py renamed to tools/export/uvision4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
from os.path import basename, join, dirname
1818
from project_generator_definitions.definitions import ProGenDef
1919

20-
from workspace_tools.export.exporters import Exporter
21-
from workspace_tools.targets import TARGET_MAP, TARGET_NAMES
20+
from tools.export.exporters import Exporter
21+
from tools.targets import TARGET_MAP, TARGET_NAMES
2222

2323
# If you wish to add a new target, add it to project_generator_definitions, and then
2424
# define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``)

workspace_tools/export/uvision5.py renamed to tools/export/uvision5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
from os.path import basename, join, dirname
1818
from project_generator_definitions.definitions import ProGenDef
1919

20-
from workspace_tools.export.exporters import Exporter
21-
from workspace_tools.targets import TARGET_MAP, TARGET_NAMES
20+
from tools.export.exporters import Exporter
21+
from tools.targets import TARGET_MAP, TARGET_NAMES
2222

2323
# If you wish to add a new target, add it to project_generator_definitions, and then
2424
# define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``)
File renamed without changes.

workspace_tools/export_test.py renamed to tools/export_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
from shutil import move
2424

25-
from workspace_tools.paths import *
26-
from workspace_tools.utils import mkdir, cmd
27-
from workspace_tools.export import export, setup_user_prj
25+
from tools.paths import *
26+
from tools.utils import mkdir, cmd
27+
from tools.export import export, setup_user_prj
2828

2929

3030
USR_PRJ_NAME = "usr_prj"
File renamed without changes.
File renamed without changes.
File renamed without changes.

workspace_tools/host_tests/host_test.py renamed to tools/host_tests/host_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
# we can find packages we want from the same level as other files do
3636
import sys
3737
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')))
38-
from workspace_tools.test_api import get_autodetected_MUTS_list
39-
from workspace_tools.test_api import get_module_avail
38+
from tools.test_api import get_autodetected_MUTS_list
39+
from tools.test_api import get_module_avail
4040

4141

4242
class Mbed:
@@ -313,7 +313,7 @@ def __init__(self):
313313
self.RESULT_MBED_ASSERT = "mbed_assert"
314314

315315

316-
import workspace_tools.host_tests as host_tests
316+
import tools.host_tests as host_tests
317317

318318

319319
class Test(HostTestResults):

workspace_tools/host_tests/host_tests_plugins/module_copy_smart.py renamed to tools/host_tests/host_tests_plugins/module_copy_smart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from host_test_plugins import HostTestPluginBase
2323

2424
sys.path.append(abspath(join(dirname(__file__), "../../../")))
25-
from workspace_tools.test_api import get_autodetected_MUTS_list
25+
from tools.test_api import get_autodetected_MUTS_list
2626

2727
class HostTestPluginCopyMethod_Smart(HostTestPluginBase):
2828

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

workspace_tools/host_tests/tcpecho_server_loop.py renamed to tools/host_tests/tcpecho_server_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
ROOT = abspath(join(dirname(__file__), "..", ".."))
2121
sys.path.insert(0, ROOT)
2222

23-
from workspace_tools.private_settings import LOCALHOST
23+
from tools.private_settings import LOCALHOST
2424
from SocketServer import BaseRequestHandler, TCPServer
2525

2626

File renamed without changes.

workspace_tools/libraries.py renamed to tools/libraries.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from workspace_tools.paths import *
18-
from workspace_tools.data.support import *
19-
from workspace_tools.tests import TEST_MBED_LIB
17+
from tools.paths import *
18+
from tools.data.support import *
19+
from tools.tests import TEST_MBED_LIB
2020

2121

2222
LIBRARIES = [

workspace_tools/make.py renamed to tools/make.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@
2727
ROOT = abspath(join(dirname(__file__), ".."))
2828
sys.path.insert(0, ROOT)
2929

30-
from workspace_tools.utils import args_error
31-
from workspace_tools.paths import BUILD_DIR
32-
from workspace_tools.paths import RTOS_LIBRARIES
33-
from workspace_tools.paths import RPC_LIBRARY
34-
from workspace_tools.paths import ETH_LIBRARY
35-
from workspace_tools.paths import USB_HOST_LIBRARIES, USB_LIBRARIES
36-
from workspace_tools.paths import DSP_LIBRARIES
37-
from workspace_tools.paths import FS_LIBRARY
38-
from workspace_tools.paths import UBLOX_LIBRARY
39-
from workspace_tools.tests import TESTS, Test, TEST_MAP
40-
from workspace_tools.tests import TEST_MBED_LIB
41-
from workspace_tools.targets import TARGET_MAP
42-
from workspace_tools.options import get_default_options_parser
43-
from workspace_tools.build_api import build_project
30+
from tools.utils import args_error
31+
from tools.paths import BUILD_DIR
32+
from tools.paths import RTOS_LIBRARIES
33+
from tools.paths import RPC_LIBRARY
34+
from tools.paths import ETH_LIBRARY
35+
from tools.paths import USB_HOST_LIBRARIES, USB_LIBRARIES
36+
from tools.paths import DSP_LIBRARIES
37+
from tools.paths import FS_LIBRARY
38+
from tools.paths import UBLOX_LIBRARY
39+
from tools.tests import TESTS, Test, TEST_MAP
40+
from tools.tests import TEST_MBED_LIB
41+
from tools.targets import TARGET_MAP
42+
from tools.options import get_default_options_parser
43+
from tools.build_api import build_project
4444
try:
45-
import workspace_tools.private_settings as ps
45+
import tools.private_settings as ps
4646
except:
4747
ps = object()
4848

workspace_tools/options.py renamed to tools/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
limitations under the License.
1616
"""
1717
from optparse import OptionParser
18-
from workspace_tools.toolchains import TOOLCHAINS
19-
from workspace_tools.targets import TARGET_NAMES
18+
from tools.toolchains import TOOLCHAINS
19+
from tools.targets import TARGET_NAMES
2020

2121

2222
def get_default_options_parser():

0 commit comments

Comments
 (0)