• 
      

    Add dependency checks for Plastic.

    Review Request #12552 — Created Aug. 19, 2022 and submitted

    Information

    RBTools
    release-4.x

    Reviewers

    This updates PlasticClient to add formal support for dependency
    checks. PlasticClient.check_dependencies() now determines if cm is
    installed.

    PlasticClient.get_local_path() now calls this instead of checking for
    dependencies itself, emitting a warning if dependencies haven't already
    been checked via setup() or has_dependencies().

    Unit tests for Plastic didn't previously exist. This change adds some
    dependency check tests for it.

    It's unclear whether Plastic still actually works today, unfortunately,
    as this was a contribution that never received updates. However this is
    at least a step toward actual testing.

    Unit tests pass on Python 3.7-3.11.

    Summary ID
    Add dependency checks for Plastic.
    This updates `PlasticClient` to add formal support for dependency checks. `PlasticClient.check_dependencies()` now determines if `cm` is installed. `PlasticClient.get_local_path()` now calls this instead of checking for dependencies itself, emitting a warning if dependencies haven't already been checked via `setup()` or `has_dependencies()`. Unit tests for Plastic didn't previously exist. This change adds some dependency check tests for it. It's unclear whether Plastic still actually works today, unfortunately, as this was a contribution that never received updates. However this is at least a step toward actual testing.
    e112e8454976d2be5ef9b27ffb18d8737e2befc7
    Description From Last Updated

    'rbtools.deprecation.RemovedInRBTools50Warning' imported but unused Column: 1 Error code: F401

    reviewbotreviewbot
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    chipx86
    chipx86
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-4.x (57c82ad)