ignore list for modules not to warn about
This commit is contained in:
parent
9a7bb8be00
commit
b76d947913
1 changed files with 11 additions and 4 deletions
|
|
@ -32,6 +32,12 @@ from circup.logging import logger
|
||||||
from circup.module import Module
|
from circup.module import Module
|
||||||
from circup.bundle import Bundle
|
from circup.bundle import Bundle
|
||||||
|
|
||||||
|
WARNING_IGNORE_MODULES = (
|
||||||
|
"typing-extensions",
|
||||||
|
"pyasn1",
|
||||||
|
"circuitpython-typing",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def clean_library_name(assumed_library_name):
|
def clean_library_name(assumed_library_name):
|
||||||
"""
|
"""
|
||||||
|
|
@ -408,10 +414,11 @@ def get_dependencies(*requested_libraries, mod_names, to_install=()):
|
||||||
mod_names[canonical_lib_name] # pylint: disable=pointless-statement
|
mod_names[canonical_lib_name] # pylint: disable=pointless-statement
|
||||||
_requested_libraries.append(canonical_lib_name)
|
_requested_libraries.append(canonical_lib_name)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
click.secho(
|
if canonical_lib_name not in WARNING_IGNORE_MODULES:
|
||||||
f"WARNING:\n\t{canonical_lib_name} is not a known CircuitPython library.",
|
click.secho(
|
||||||
fg="yellow",
|
f"WARNING:\n\t{canonical_lib_name} is not a known CircuitPython library.",
|
||||||
)
|
fg="yellow",
|
||||||
|
)
|
||||||
|
|
||||||
if not _requested_libraries:
|
if not _requested_libraries:
|
||||||
# If nothing is requested, we're done
|
# If nothing is requested, we're done
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue