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

Replaced usages of deprecated pkg_resources module #1675

Merged

Conversation

reinecke
Copy link
Collaborator

Summarize your change.

pkg_resources is now deprecated. This PR removes references to that module.

Refactored plugin.manifest module to factor the pip installed package discovery into a separate function. Made otiopluginfo and otioconvert use that function rather than doing their own plugin discovery.

Reference associated tests.

I did not add new tests, but I validated the output of otiopluginfo --version and otioconvert --version to validate they're nearly identical. The only difference is that the string Plugins from pkg_resources: is now Plugins from installed packages:.

…tlib module

Signed-off-by: Eric Reinecke <ereinecke@netflix.com>
Copy link
Member

@JeanChristopheMorinPerso JeanChristopheMorinPerso left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Eric Reinecke <reinecke.eric@gmail.com>
Signed-off-by: Eric Reinecke <reinecke.eric@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 29, 2023

Codecov Report

Merging #1675 (2a62132) into main (bd7ae17) will increase coverage by 0.02%.
The diff coverage is 33.33%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1675      +/-   ##
==========================================
+ Coverage   79.83%   79.86%   +0.02%     
==========================================
  Files         197      197              
  Lines       21769    21764       -5     
  Branches     4355     4353       -2     
==========================================
+ Hits        17379    17381       +2     
+ Misses       2236     2230       -6     
+ Partials     2154     2153       -1     
Flag Coverage Δ
py-unittests 79.86% <33.33%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...-opentimelineio/opentimelineio/plugins/manifest.py 91.66% <71.42%> (+0.16%) ⬆️
...entimelineio/opentimelineio/console/otioconvert.py 77.89% <0.00%> (+1.60%) ⬆️
...ntimelineio/opentimelineio/console/otiopluginfo.py 75.22% <16.66%> (+2.18%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd7ae17...2a62132. Read the comment docs.

@reinecke reinecke merged commit 17e9297 into AcademySoftwareFoundation:main Oct 29, 2023
40 checks passed
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

3 participants