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

fix(poly libs): calculate brick import diff by close matches #76

Merged
merged 5 commits into from
Apr 1, 2023

Conversation

DavidVujic
Copy link
Owner

@DavidVujic DavidVujic commented Mar 29, 2023

Description

The current calculation of missing third-party libs is naive and will fail on libraries that differ in the name stated in pyproject.toml and the actual thing that is imported in python code.

This PR aims to calculate the diff by using "close matches".

Motivation and Context

Fixes #75

How Has This Been Tested?

Manual install
CircleCI ✅
Added unit tests for changed feature.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

@DavidVujic DavidVujic marked this pull request as ready for review April 1, 2023 09:03
@DavidVujic DavidVujic merged commit a33d89b into main Apr 1, 2023
@DavidVujic DavidVujic deleted the detect-libs-close-matches branch April 1, 2023 09:15
This pull request was closed.
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.

poly libs: fails detecting library names with alias that differ
1 participant