Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

aos-cube

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aos-cube - npm Package Compare versions

Comparing version
0.3.8
to
0.3.9
+1
-1
aos_cube.egg-info/PKG-INFO
Metadata-Version: 1.2
Name: aos-cube
Version: 0.3.8
Version: 0.3.9
Summary: aos commmand line tool for AliOS-Things development.

@@ -5,0 +5,0 @@ Home-page: UNKNOWN

@@ -8,1 +8,2 @@ pyserial

progressbar2
configparser
import sys
__version__ = "0.3.8"
__version__ = "0.3.9"
__title__ = "aos-cube"

@@ -5,0 +5,0 @@ __description__ = (

@@ -38,3 +38,3 @@ import os, sys

if ret != 'success':
log("[INFO]: Not in AliOS-Things source code directory")
log("[INFO]: Not in AliOS-Things source code directory\n")
log("[INFO]: Current directory is: '%s'\n" % original_dir)

@@ -45,3 +45,3 @@ if os.path.isdir(original_dir):

if aos_path == None:
error("[ERRO]: Not in aos_sdk_path, aos_sdk unavailable as well!")
error("Not in aos_sdk_path, aos_sdk unavailable as well!")
else:

@@ -48,0 +48,0 @@ log("[INFO]: Config Loading OK, use '%s' as sdk path\n" % aos_path)

import os, sys
import json
import click
from aos.util import *
from aos.repo import *
from aos.managers.comp import CompManager
import configparser

@@ -81,13 +77,13 @@ @click.group(short_help="OTA firmware management tool")

@cli.command("upload", short_help="Upload firmware to board over OTA, e.g. aos ota helloworld@starterkit")
@click.argument("targets", required=False, nargs=-1, metavar="[TARGETS...]")
@click.option("-d", "--device-name", prompt=True, metavar="[DEVICENAME]")
@click.option("-p", "--product-key", prompt=True, metavar="[PRODUCTKEY]")
@click.option("-f", "--upload-file", default="none", metavar="[FILE]")
def ota_upload(targets, device_name, product_key, upload_file):
try:
from aos.ota_upload import upload
except:
pass
upload(targets, device_name, product_key, upload_file)
#@cli.command("upload", short_help="Upload firmware to board over OTA, e.g. aos ota helloworld@starterkit")
#@click.argument("targets", required=False, nargs=-1, metavar="[TARGETS...]")
#@click.option("-d", "--device-name", prompt=True, metavar="[DEVICENAME]")
#@click.option("-p", "--product-key", prompt=True, metavar="[PRODUCTKEY]")
#@click.option("-f", "--upload-file", default="none", metavar="[FILE]")
#def ota_upload(targets, device_name, product_key, upload_file):
# try:
# from aos.ota_upload import upload
# except:
# pass
#
# upload(targets, device_name, product_key, upload_file)

@@ -37,3 +37,3 @@ import os, sys

if ret != 'success':
log("[INFO]: Not in AliOS-Things source code directory")
log("[INFO]: Not in AliOS-Things source code directory\n")
log("[INFO]: Current directory is: '%s'\n" % original_dir)

@@ -44,3 +44,3 @@ if os.path.isdir(original_dir):

if aos_path == None:
error("[ERRO]: Not in aos_sdk_path, aos_sdk unavailable as well!")
error("Not in aos_sdk_path, aos_sdk unavailable as well!")
else:

@@ -99,2 +99,2 @@ log("[INFO]: Config Loading OK, use '%s' as sdk path\n" % aos_path)

click.secho("[INFO]: Target: %s" % upload_target, fg="green")
aos_upload(upload_target, work_path, binaries_dir)
aos_upload(upload_target, work_path, binaries_dir)

@@ -100,8 +100,7 @@ import os, sys

os.chdir('../')
try:
shutil.rmtree(tmpdir)
except:
print("Can not remove temp folder %s, please remove it manually" % tmpdir)
try:
shutil.rmtree(tmpdir)
except:
print("Can not remove temp folder %s, please remove it manually" % tmpdir)
def install_externals(source_root, app_root=None):

@@ -108,0 +107,0 @@ """ Download externals according to build/external_config.py """

@@ -313,3 +313,3 @@ import contextlib

board_dir = None
subdirs = ["board", "kernel/board"]
subdirs = ["board", "kernel/board", "platform/board"]
for subdir in subdirs:

@@ -316,0 +316,0 @@ tmp = os.path.join(source_root, subdir, board)

Metadata-Version: 1.2
Name: aos-cube
Version: 0.3.8
Version: 0.3.9
Summary: aos commmand line tool for AliOS-Things development.

@@ -5,0 +5,0 @@ Home-page: UNKNOWN

@@ -16,3 +16,4 @@ import os, sys

'paho-mqtt',
'progressbar2'
'progressbar2',
'configparser',
]

@@ -19,0 +20,0 @@