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

Remove deprecated libraries as flagged by pytest (Bugfix) #1693

Merged
merged 5 commits into from
Jan 22, 2025

Conversation

Hook25
Copy link
Collaborator

@Hook25 Hook25 commented Jan 22, 2025

Description

Checkbox doesn't even start on python3.13, additionally, some tests are now broken in CI because on noble we aren't somehow installing setuptools (so we are lacking pkg_resource that is now deprecated). This PR solves this by removing al usages of deprecated libraries that pytest pointed out.

  • Some of these were soft deprecated (like pkg_resource)
  • some others were soon to be removed (tar usage with no filter to be gone 3.14 )
  • some are now gone (imghdr gone in 3.13)

Resolved issues

Fixes: CHECKBOX-1720

Documentation

Comments provided where weird try catches are needed to maintain backward compatibility

Tests

Most of these are tests or tested already

Some of these were soft deprecated (like pkg_resource), some
others were soon to be removed (tar usage with no filter to be gone 3.14
) and some are now gone (imghdr gone in 3.13)
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

Attention: Patch coverage is 90.00000% with 8 lines in your changes missing coverage. Please review.

Project coverage is 49.01%. Comparing base (ce6bef5) to head (27777bb).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
checkbox-ng/plainbox/impl/result.py 20.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1693      +/-   ##
==========================================
+ Coverage   48.99%   49.01%   +0.01%     
==========================================
  Files         372      372              
  Lines       40321    40348      +27     
  Branches     6811     6817       +6     
==========================================
+ Hits        19757    19777      +20     
- Misses      19842    19849       +7     
  Partials      722      722              
Flag Coverage Δ
checkbox-ng 69.39% <88.75%> (+<0.01%) ⬆️

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

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

@Hook25 Hook25 force-pushed the remove_deprecated_libraries branch from 2f55c9b to ecb31df Compare January 22, 2025 11:18
@Hook25 Hook25 force-pushed the remove_deprecated_libraries branch from ecb31df to b649575 Compare January 22, 2025 11:21
Copy link
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to clean things up!

@Hook25 Hook25 merged commit 6e0aee0 into main Jan 22, 2025
48 checks passed
@Hook25 Hook25 deleted the remove_deprecated_libraries branch January 22, 2025 13:28
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