-
Notifications
You must be signed in to change notification settings - Fork 74
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
feat: add uv plugin to charmcraft #2050
Conversation
1c7b6f2
to
4f47635
Compare
4f47635
to
8e38ee7
Compare
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.
LGTM.
uv.lock
Outdated
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.
out of curiosity, why was this file updated? And how?
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.
Definitely from me running "uv sync" or "uv lock" at some point without telling it to freeze the lock file by mistake. @lengau would you like me to revert that or should we keep it in?
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 assume this was necessary to bump the version of craft-parts - I'm just wondering about the "correct" procedure here
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.
Yeah any time a dependency changes we should update the lock file. uv sync
or uv lock
should do the minimum changes needed to meet the new dependencies.
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.
very nice!
service_factory.lifecycle.run("stage") | ||
|
||
# Check that the part install directory looks correct. | ||
assert (install_path / "src" / "charm.py").read_text() == "# Charm file" |
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 assume that this copying of the original source is a charmcraft thing?
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 believe so - I took this test directly from the existing poetry tests since the two are so similar.
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.
It is - the charm isn't necessarily an installable module and needs to be included in the src
directory.
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.
🚢
Needs canonical/craft-parts#945
Closes #2040.
CRAFT-3816