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

Inherit scm from superclass #5185

Merged
merged 3 commits into from
May 21, 2019
Merged

Conversation

lasote
Copy link
Contributor

@lasote lasote commented May 20, 2019

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

if len(to_replace) == 0:
# SCM exists, but not found in the conanfile, probably inherited from superclass
return
Copy link
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
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.

Copy link
Contributor

@jgsogo jgsogo left a comment

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 👍

conans/client/cmd/export.py Show resolved Hide resolved
conans/client/cmd/export.py Show resolved Hide resolved
Copy link
Contributor

@jgsogo jgsogo left a comment

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
Copy link
Contributor Author

lasote commented May 21, 2019

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