Skip to content

Conversation

@ferozco
Copy link
Contributor

@ferozco ferozco commented Jul 21, 2018

Revert change which introduced generating different classes/types/services in different files which broke recursive type definition. Now they are consolidated on a per package basis into a single __init__.py file. Unfortunately, that means that some of the cleanup I had done also goes away, I'll address this in a follow up.

@ferozco
Copy link
Contributor Author

ferozco commented Jul 21, 2018

Pending to introduce some more test cases to protect against issues with circular dependencies of objects, and introduce logic to consistently order generated classes

@Value.Default
default String className() {
return "";
return "__version__";
Copy link

Choose a reason for hiding this comment

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

This seems like an odd default override for something named PythonLine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ya, The abstraction is pretty broken imo.

'--packageVersion', '0.0.0'

inputs.files configurations.verificationApi
doLast { delete "python/test/setup.py" }
Copy link

Choose a reason for hiding this comment

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

why delete setup.py?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because in this usage its just a submodule of test rather than a standalone module

@qinfchen
Copy link

+1 on adding integration tests for circle deps

@ahggns
Copy link

ahggns commented Jul 23, 2018

The revert is a little tough to confirm since some of the cleanup is reflected here (which is fine). Do we have a list of the other cleanup that will need to be redone?

@qinfchen
Copy link

@ferozco, can you also provide more context on why this reverted? generating different classes/types/services in different files that broke recursive type definition?

@dansanduleac dansanduleac merged commit ed5e2c2 into develop Jul 23, 2018
derenrich pushed a commit to derenrich/conjure-python that referenced this pull request Jan 8, 2019
* Assert that ignored tests would have failed

* this test is actually fine

* Blacklist only particular path param tests
@ferozco ferozco deleted the fo/revert-multi-file-code-gen branch June 4, 2019 14:19
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.

5 participants