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 importing version from importlib.metadata for py<3.8 #466

Conversation

rajulkumar
Copy link
Contributor

importlib.metadata is available for py3.8 and later versions. This fails for py<3.8, however, it could be imported from importlib_metadata for previous versions. This patch makes it compatible for py<3.8 as the lib is used on RHEL/UBI8 with py3.6.

importlib.metadata is available for py3.8 and later versions.
This fails for py<3.8, however, it could be imported from
importlib_metadata for previous versions. This patch makes it
compatible for py<3.8 as the lib is used on RHEL/UBI8 with py3.6.
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (0a8fb33) to head (931cd45).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #466   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           53        53           
  Lines         2351      2352    +1     
=========================================
+ Hits          2351      2352    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rajulkumar rajulkumar merged commit 1f85078 into release-engineering:master Feb 29, 2024
8 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.

2 participants