Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Command for meta build#329

Merged
stefanoborini merged 14 commits into
masterfrom
command-for-meta-build
Oct 28, 2016
Merged

Command for meta build#329
stefanoborini merged 14 commits into
masterfrom
command-for-meta-build

Conversation

@stefanoborini

Copy link
Copy Markdown
Contributor

Opening as a request for comments.

This PR introduces a setup command to build the meta classes, keywords and cuba from the metadata repository. Once merged, we can get rid of the verbatim copied files, which are redundant (as they are self-generated), prone to error, and tend to leave debris.

However, I note that there has been a change in behavior with the new generator or current metainfo, so much that now tests fail. I've seen some changes in the classes, especially in shapes that used to be [1] and are now [] or None.

@mehdisadeghi does this make sense or is it a bug on this PR?

Please note that I had to work around some circular dependencies, so I might have missed something.

@mehdisadeghi

Copy link
Copy Markdown
Contributor

shapes that used to be [1] and are now [] or None

I had to patch the generated modules in order to make tests pass. Namely, keywords and cuby.py modules. I've added MATERIAL_ID and set all None shapes to [1].

@stefanoborini

Copy link
Copy Markdown
Contributor Author

@mehdisadeghi Are you saying that the automatic generator produces something that is broken, and we need to patch the result manually?

@stefanoborini

Copy link
Copy Markdown
Contributor Author

@mehdisadeghi if so, this needs fixing.

@mehdisadeghi

Copy link
Copy Markdown
Contributor

I replied to this in #330.

@mehdisadeghi

Copy link
Copy Markdown
Contributor

@stefanoborini please review the recent changes.

@stefanoborini stefanoborini changed the title Command for meta build [WIP] Command for meta build Oct 28, 2016
@stefanoborini stefanoborini merged commit a0a1995 into master Oct 28, 2016
@stefanoborini stefanoborini deleted the command-for-meta-build branch October 28, 2016 10:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants