Skip to content
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

feature: [VRD-682] Client utility function to translate import module names into distribution package names #3652

Merged
merged 21 commits into from
Mar 10, 2023

Conversation

ewagner-verta
Copy link
Contributor

@ewagner-verta ewagner-verta commented Mar 8, 2023

Impact and Context

This is the missing piece of functionality for the client method check_model_dependencies to work properly.

The importlib.metadata module is used to capture info about the distribution packages for each of the import modules extracted from a model class.

Risks and Area of Effect

Fairly low risk, as this is net new functionality on the first iteration and it's all hidden from the docs for now.
The Python ecosystem does not enforce package naming conventions, and the importlib docs warn:

Some editable installs, do not supply top-level names, and thus this function is not reliable with such installs.

This seems to be related specifically to editable installs. However I experimented with verta as an editable installation, and the name attribute we need is there.

Testing

  • Unit test
  • Deployed to dev env
  • Other (explain)

Reverting

  • Contains Migration - Do Not Revert

Copy link
Contributor

@liuverta liuverta left a comment

Choose a reason for hiding this comment

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

I re-opened a prior comment thread: #3652 (comment). We should have some test coverage of multiple missing modules.

That should be the last thing! Everything else looks good.

Copy link
Contributor

@liuverta liuverta left a comment

Choose a reason for hiding this comment

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

🚀

@ewagner-verta ewagner-verta merged commit b22b516 into main Mar 10, 2023
@ewagner-verta ewagner-verta deleted the VRD-682_model_packages branch March 10, 2023 22:24
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.

None yet

2 participants