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

Import meta generated cuds and keywords - #300

Merged
mehdisadeghi merged 25 commits into
masterfrom
import-generated-cuds
Jul 28, 2016
Merged

mehdisadeghi merged 25 commits into
masterfrom
import-generated-cuds

Conversation

@mehdisadeghi

Copy link
Copy Markdown
Contributor

@roigcarlo @kitchoi @SGGgarcia @tuopuu

Please review this initial PR and go through the failed tests and see how we can fix them.

Comment thread setup.cfg Outdated
[flake8]
exclude = doc/*
# Exclude docs and generated files.
exclude = doc/*,simphony/cuds/meta/,simphony/core/keywords.py,simphony/core/cuba.py

@itziakos itziakos Jul 15, 2016

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.

There is not real reason why the generated python code is not pep8/flake8 compatible. This should be fixed.

@codecov-io

codecov-io commented Jul 20, 2016

Copy link
Copy Markdown

Current coverage is 71.51% (diff: 41.92%)

Merging #300 into master will decrease coverage by 26.88%

@@             master       #300   diff @@
==========================================
  Files            49        114     +65   
  Lines          3821       6948   +3127   
  Methods           0          0           
  Messages          0          0           
  Branches        500        803    +303   
==========================================
+ Hits           3760       4969   +1209   
- Misses           39       1952   +1913   
- Partials         22         27      +5   

Powered by Codecov. Last update 413eb6f...0af9162

@kitchoi

kitchoi commented Jul 21, 2016

Copy link
Copy Markdown
Contributor

@mehdisadeghi @itziakos Good to merge?

@kitchoi

kitchoi commented Jul 21, 2016

Copy link
Copy Markdown
Contributor

The generated code decreases coverage by a lot!

@kitchoi

kitchoi commented Jul 21, 2016

Copy link
Copy Markdown
Contributor

Coverage could be enhanced if we bring in the tests in simphony-metadata

@mehdisadeghi

Copy link
Copy Markdown
Contributor Author

Thanks for all the fixes @kitchoi ! I also saw your other branch, I'll regenerate.

Mehdi Sadeghi added 2 commits July 25, 2016 14:50
We will remove these files soon, therefore I patched
them manually even though they are generated files.
@mehdisadeghi mehdisadeghi changed the title [WIP] Import meta generated cuds and keywords Import meta generated cuds and keywords Jul 25, 2016
@mehdisadeghi

Copy link
Copy Markdown
Contributor Author

@kitchoi @itziakos Any idea why does the appveyor test fail?

@kitchoi

kitchoi commented Jul 26, 2016

Copy link
Copy Markdown
Contributor

@mehdisadeghi I believe it has to do with a new version flake8, here is the relevant issue reported on flake8: https://gitlab.com/pycqa/flake8/issues/179

@mehdisadeghi

mehdisadeghi commented Jul 26, 2016

Copy link
Copy Markdown
Contributor Author

@kitchoi This is a symptom of the problem that I have described before.

@kitchoi

kitchoi commented Jul 26, 2016

Copy link
Copy Markdown
Contributor

@mehdisadeghi In my last commit, I skipped the known problematic versions (3.0.0, 3.0.1) of flake8. If new flake8 version is made available, e.g. 3.0.2, pip would still install the latest version. It is possible that the known issue would be fixed on 3.0.2, and it would be better that we install it. If 3.0.2 comes up and the bug is not fixed, we skip it again.

@mehdisadeghi

Copy link
Copy Markdown
Contributor Author

@kitchoi Even though the version of pip on appveyor is the same as the one on my local machine (8.1.2), surprisingly, it does not recognize the exclusion operator that you've added:

50 Invalid requirement: 'flake8=3.0.1'
51 = is not a valid operator. Did you mean == ?

@mehdisadeghi

Copy link
Copy Markdown
Contributor Author

I think we can proceed with merging this PR.

@mehdisadeghi mehdisadeghi added this to the 0.4.0 milestone Jul 27, 2016
@mehdisadeghi
mehdisadeghi merged commit 4802f1e into master Jul 28, 2016
@roigcarlo
roigcarlo deleted the import-generated-cuds branch August 25, 2016 09:06
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.

4 participants