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

Rename apport/packaging.py to apport/package_info.py #477

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bdrung
Copy link
Collaborator

@bdrung bdrung commented Mar 14, 2025

import apport.packaging will not import apport/packaging.py but packaging from apport/__init__.py instead. To avoid this name clash name the Python file identical to the class it defines.

It is expected that no Python code outside of Apport uses from apport.packaging import PackageInfo.

Fixes: 8763b83 ("Changed the packaging backend import, [...]")

`import apport.packaging` will not import `apport/packaging.py` but
`packaging` from `apport/__init__.py` instead. To avoid this name clash
name the Python file identical to the class it defines.

It is expected that no Python code outside of Apport uses
`from apport.packaging import PackageInfo`.

Fixes: 8763b83 ("Changed the packaging backend import, [...]")
Copy link

codecov bot commented Mar 14, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 30.05%. Comparing base (c55a634) to head (f831941).

Files with missing lines Patch % Lines
tests/unit/test_sandboxutils.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #477       +/-   ##
===========================================
- Coverage   83.69%   30.05%   -53.65%     
===========================================
  Files         101       85       -16     
  Lines       20443    19157     -1286     
  Branches     3216     2887      -329     
===========================================
- Hits        17110     5757    -11353     
- Misses       2839    12920    +10081     
+ Partials      494      480       -14     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bdrung bdrung marked this pull request as draft March 14, 2025 19:13
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.

1 participant