-
Notifications
You must be signed in to change notification settings - Fork 446
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(test): add patchelf to dev dependencies for testing #5135
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5135 +/- ##
==========================================
- Coverage 94.88% 89.71% -5.17%
==========================================
Files 658 342 -316
Lines 55189 22640 -32549
==========================================
- Hits 52364 20311 -32053
+ Misses 2825 2329 -496 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm quite curious what exactly this PR fixes?
@@ -84,6 +84,7 @@ oauthlib==3.2.2 | |||
overrides==7.7.0 | |||
packaging==24.1 | |||
PasteDeploy==3.1.0 | |||
patchelf==0.17.2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know requirements*.txt
files are auto-generated and we keep dependencies in pyproject.toml
or setup.py
.
If I'm not mistaken this dependency should be added here, and then you should run tools/freeze-requirements.sh
script.
https://github.com/canonical/snapcraft/blob/main/setup.py#L61
I noticed that after a fresh clone, "Fix" was probably not the right commit message to include here - I made it before I understood the scope of this. |
Thanks for making this PR, this is a good place to discuss. I'm not sure of the right path forward. To be totally correct, we would need to build and install this version of patchelf: https://github.com/canonical/patchelf/tree/0.9%2Bsnapcraft as that's what snapcraft uses in it's own snap. I haven't checked what is different between it and the upstream implementation. I prefer using patchelf as a python package over a system package to keep snapcraft's dev deps more contained. On the other hand, if you clone this repo, install the Finally, I don't like that we have unit tests that require patchelf. |
tox run -m lint
?tox run -e test-py310
? (supported versions:py39
,py310
,py311
,py312
)