Skip to content

Inherit scm from superclass - #5185

Merged
lasote merged 3 commits into
conan-io:developfrom
lasote:feature/scm_superclass
May 21, 2019
Merged

lasote merged 3 commits into
conan-io:developfrom
lasote:feature/scm_superclass

Conversation

@lasote

@lasote lasote commented May 20, 2019

Copy link
Copy Markdown
Contributor

Changelog: Bugfix: Using scm declared in a superclass failed exporting the recipe with the error ERROR: The conanfile.py defines more than one class level 'scm' attribute.
Docs: omit

Closes #5181

@lasote lasote added this to the 1.16 milestone May 20, 2019
@lasote
lasote requested a review from jgsogo May 20, 2019 13:35
Comment thread conans/client/cmd/export.py Outdated

if len(to_replace) == 0:
# SCM exists, but not found in the conanfile, probably inherited from superclass
return

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here we need to actually add the scm_data to this conanfile.py file. There is nothing to replace, but we need to add the dictionary to the class.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

you are right.

@jgsogo jgsogo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have a look at the comments, but it is looking good 👍

Comment thread conans/test/unittests/client/cmd/export_test.py
Comment thread conans/client/cmd/export.py
Comment thread conans/client/cmd/export.py

@jgsogo jgsogo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok, go with it!

@lasote

lasote commented May 21, 2019

Copy link
Copy Markdown
Contributor Author

Thanks for the quick reviews!

@lasote
lasote merged commit a33f809 into conan-io:develop May 21, 2019
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.

issue inheriting 'scm' attribute with python requires

2 participants