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

Support for bundles in the Upload command. #246

Merged
merged 3 commits into from Feb 19, 2021

Conversation

facundobatista
Copy link
Contributor

Part of #128.

Fixes #77.

sergiusens
sergiusens previously approved these changes Feb 18, 2021
Copy link
Collaborator

@sergiusens sergiusens left a comment

Choose a reason for hiding this comment

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

Looks good, just a couple of docstring suggestions

Comment on lines 290 to 292
Push a charm or bundle to Charmhub where it will be verified for
conformance to the packaging standard. This command will finish
successfully once the package is approved by Charmhub.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Push a charm or bundle to Charmhub where it will be verified for
conformance to the packaging standard. This command will finish
successfully once the package is approved by Charmhub.
Push a charm or bundle to Charmhub where it will be verified.
This command will finish successfully once the package is
approved by Charmhub.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

improved

Comment on lines 73 to 77
"""Convert the string to Path and verify that is a useful file path.

It checks that the file exists and it's readable, and that it's actually a
file. Also the `~` is expanded to the user's home.
"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"""Convert the string to Path and verify that is a useful file path.
It checks that the file exists and it's readable, and that it's actually a
file. Also the `~` is expanded to the user's home.
"""
"""Return a valid Path with user name expansion for filepath.
CommandError is raised if filepath is not a valid file or is not readable.
"""

Copy link
Contributor Author

Choose a reason for hiding this comment

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

better, thanks!

sergiusens
sergiusens previously approved these changes Feb 18, 2021
@facundobatista facundobatista merged commit 881bc0a into canonical:master Feb 19, 2021
@facundobatista facundobatista deleted the bundles-upload branch June 28, 2021 18:59
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.

Deduce the charm's name from the file's included metadata, not its name
2 participants