Merge pull request #177 from dhalbert/no-7.x
7.x bundles are no longer built
This commit is contained in:
commit
abf46302a8
2 changed files with 7 additions and 7 deletions
|
|
@ -58,7 +58,7 @@ NOT_MCU_LIBRARIES = [
|
|||
#: The version of CircuitPython found on the connected device.
|
||||
CPY_VERSION = ""
|
||||
#: Module formats list (and the other form used in github files)
|
||||
PLATFORMS = {"py": "py", "7mpy": "7.x-mpy", "8mpy": "7.x-mpy"}
|
||||
PLATFORMS = {"py": "py", "8mpy": "8.x-mpy"}
|
||||
#: Commands that do not require an attached board
|
||||
BOARDLESS_COMMANDS = ["show", "bundle-add", "bundle-remove", "bundle-show"]
|
||||
#: Version identifier for a bad MPY file format
|
||||
|
|
|
|||
|
|
@ -96,10 +96,10 @@ def test_Bundle_lib_dir():
|
|||
"adafruit/adafruit-circuitpython-bundle-py/"
|
||||
"adafruit-circuitpython-bundle-py-TESTTAG/lib"
|
||||
)
|
||||
assert bundle.lib_dir("7mpy") == (
|
||||
assert bundle.lib_dir("8mpy") == (
|
||||
"DATA_DIR/"
|
||||
"adafruit/adafruit-circuitpython-bundle-7mpy/"
|
||||
"adafruit-circuitpython-bundle-7.x-mpy-TESTTAG/lib"
|
||||
"adafruit/adafruit-circuitpython-bundle-8mpy/"
|
||||
"adafruit-circuitpython-bundle-8.x-mpy-TESTTAG/lib"
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -312,7 +312,7 @@ def test_Module_mpy_mismatch():
|
|||
"""
|
||||
path = os.path.join("foo", "bar", "baz", "module.mpy")
|
||||
repo = "https://github.com/adafruit/SomeLibrary.git"
|
||||
with mock.patch("circup.CPY_VERSION", "7.0.0"):
|
||||
with mock.patch("circup.CPY_VERSION", "8.0.0"):
|
||||
bundle = circup.Bundle(TEST_BUNDLE_NAME)
|
||||
m1 = circup.Module(path, repo, "1.2.3", "1.2.3", True, bundle, (None, None))
|
||||
m2 = circup.Module(
|
||||
|
|
@ -328,7 +328,7 @@ def test_Module_mpy_mismatch():
|
|||
assert m2.outofdate is True
|
||||
assert m3.mpy_mismatch is False
|
||||
assert m3.outofdate is False
|
||||
with mock.patch("circup.CPY_VERSION", "7.0.0"):
|
||||
with mock.patch("circup.CPY_VERSION", "8.0.0"):
|
||||
assert m1.mpy_mismatch is False
|
||||
assert m1.outofdate is False
|
||||
assert m2.mpy_mismatch is False
|
||||
|
|
@ -366,7 +366,7 @@ def test_Module_row():
|
|||
path = os.path.join("foo", "bar", "baz", "module.py")
|
||||
repo = "https://github.com/adafruit/SomeLibrary.git"
|
||||
with mock.patch("circup.os.path.isfile", return_value=True), mock.patch(
|
||||
"circup.CPY_VERSION", "7.0.0"
|
||||
"circup.CPY_VERSION", "8.0.0"
|
||||
):
|
||||
m = circup.Module(path, repo, "1.2.3", None, False, bundle, (None, None))
|
||||
assert m.row == ("module", "1.2.3", "unknown", "Major Version")
|
||||
|
|
|
|||
Loading…
Reference in a new issue