Make generated Python codes refactored for new transport layer #149
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This compiler patch is for suggested new transport layer nirum-lang/nirum-python#79 and related other things. It also is required by another patch on nirum-python nirum-lang/nirum-python#92 and need to be merged first.
Key changes:
nirum.transport.Transport
instance.nirum.rpc.Service
→nirum.service.Service
).service_type
forService
and generated imports had been likefrom nirum.rpc import service_type
, but it's nowfrom nirum.service import Service as service_type
.As its build requires transport features made by nirum-lang/nirum-python#92 (which is not merged yet) and two patches have a circular dependency each other, I temporarily switched the CI scripts to use
DEVRUNTIME_REPO=dahlia/nirum-python DEVRUNTIME_REF=transport
.