Skip to content

Update SDK to support typeguard v3.0 and above, which has a breaking change in its API, and updated notebooks #438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jul 12, 2023

Conversation

MMelQin
Copy link
Collaborator

@MMelQin MMelQin commented Jul 11, 2023

The key change for this PR is to

  • Update the SDK to support typeguard v3.0 and above, which has a breaking change in its API

During testing, the following changes had to be made

  • Update the SDK to require Python >= 3.8
  • Update pytest version to latest version
  • Update the run script to use the new way of calling pytest, -m pytest instead of -m py.test
  • Update code to fix black and flake8 complaints, and sometimes they have conflicts
  • Test all of the notebooks, and the results can be used as QA test results (during testing not setting the --upgrade on importing monai-deploy-app-sdk, so the editable sdk is used, though for users the --upgrade so that they do not need to explicitly uninstall older version of the App SDK)

Code coverage only includes the unit tests, not the tests of the notebooks which provide additional and fuller coverage.

MMelQin added 13 commits July 9, 2023 21:28
…eck_type()

Along with the SDK change in th io_context.py, any pinged version of typarguard to ~=2
must be removed.

Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
With "import --upgrade monai-deploy-app-sdk", users do not need to explicitly uninstall
prior version of the App SDK when running the notebook in virtual env. For testing the
notebook in dev with the editable App SDK, do NOT use --upgrade in case the local dirty
version is lower somehow.

Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
…sing the `!r` conversion

Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
@MMelQin MMelQin requested review from gigony and mocsharp July 11, 2023 23:50
Copy link
Collaborator

@gigony gigony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MMelQin !
It looks good to me!

Signed-off-by: M Q <mingmelvinq@nvidia.com>
MMelQin added 2 commits July 11, 2023 20:21
Signed-off-by: M Q <mingmelvinq@nvidia.com>
Signed-off-by: M Q <mingmelvinq@nvidia.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect parameters for check_type function from typeguard [BUG] check_type() fails on typeguard v3 Unable to run monai-deploy run
4 participants