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

New plugin: dump #712

Merged
merged 5 commits into from Aug 7, 2016
Merged

Conversation

sergiusens
Copy link
Collaborator

A simple plugin that just dumps content from the specified source

LP: #1597600

Signed-off-by: Sergio Schvezov sergio.schvezov@ubuntu.com

A simple plugin that just dumps content from the specified `source`

LP: #1597600

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
super().__init__(name, options, project)

logger.warning("DEPRECATED: The 'copy' plugin's functionality "
"has been replaced by the 'dump' plugin, and it will "
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe mention that it's replaces by the dump plugin combined with filesets. Or too much info?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that's too much info for a deprecation notice. If they want to learn more they can look at the docs for that plugin.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

El 05/08/16 a las 16:50, Kyle Fazzari escribió:

In snapcraft/plugins/copy.py
#712 (comment):

@@ -65,6 +67,13 @@ def schema(cls):

     return schema
  • def init(self, name, options, project):
  •    super().**init**(name, options, project)
    
  •    logger.warning("DEPRECATED: The 'copy' plugin's functionality "
    
  •                   "has been replaced by the 'dump' plugin, and it will "
    

I think that's too much info for a deprecation notice. If they want to
learn more they can look at the docs for that plugin.

It is the same text used for tar-content

Copy link
Contributor

@kyrofa kyrofa Aug 5, 2016

Choose a reason for hiding this comment

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

It is the same text used for tar-content

Ah, I was responding to @ElOpio, I think the text is fine. I wish github would include the comment thread when emailing...

@come-maiz
Copy link
Contributor

This is a really simple plugin, but I think it still deserves a really simple integration test.

plugin.pull()
plugin.build()

self.assertEqual(os.listdir(plugin.installdir),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth verifying that parts/ stage/ etc. aren't present here?

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
@kyrofa
Copy link
Contributor

kyrofa commented Aug 5, 2016

This is a really simple plugin, but I think it still deserves a really simple integration test.

Agreed.

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
@sergiusens
Copy link
Collaborator Author

@kyrofa and @elopia there you go!

@kyrofa
Copy link
Contributor

kyrofa commented Aug 5, 2016

👍 from me

@sergiusens
Copy link
Collaborator Author

retest this please as prodstack timed out

@sergiusens sergiusens merged commit b869650 into canonical:master Aug 7, 2016
@sergiusens sergiusens deleted the feature/1597600/dump-me branch August 7, 2016 16:40
kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017
A simple plugin that just dumps content from the specified `source`

LP: #1597600

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
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.

None yet

3 participants