Skip to content

Conversation

shalinnijel2
Copy link
Contributor

@shalinnijel2 shalinnijel2 commented Feb 11, 2022

This a quick summary of the changes in this commit:

  • py4j dependency is removed from .toml file. It is installed at runtime if required.
  • Make file is updated to point at main.py in evcc and secc projects. start_evcc.py and start_secc.py are removed
  • encode_signed_info() and decode_signed_info() methods are removed in the attached jar files. There is a more "unified" encode and decode method that would work for signed_info as well
  • A singleton is added to exi_codec.py class which would hold on to the passed in exi codec. The class is added to help the to_exi() and from_exi() methods that would request the exicodec to use.

[Update]
Since py4j may have future dependency conflicts with other packages, is for the best to include it in the toml. For the bundle generation targeting any production device of Josev (where we use the rust exi codec) we can strip out py4j as a dependency)

This a quick summary of the changes in this commit:
- py4j dependency is removed from .toml file. It is installed at runtime if required.
- Make file is updated to point at main.py in evcc and secc projects. start_evcc.py and start_secc.py are removed
- encode_signed_info() and decode_signed_info() methods are removed in the attached jar files. There is a more "unified" encode and decode method that would work for signed_info as well
- A singleton is added to exi_codec.py class which would hold on to the passed in exi codec. The class is added to help the to_exi() and from_exi() methods that would request the exicodec to use.
@shalinnijel2 shalinnijel2 requested a review from tropxy February 11, 2022 19:14
Copy link
Contributor

@tropxy tropxy left a comment

Choose a reason for hiding this comment

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

Can you also add the logger instantiation to the init.py of the secc and evcc? Check it: https://github.com/SwitchEV/iso15118/blob/rust_exi_codec/iso15118/secc/__init__.py

I noticed that not all log messages were being printed due to the absence of that

@shalinnijel2 shalinnijel2 requested a review from tropxy February 15, 2022 17:23
Copy link
Contributor

@tropxy tropxy left a comment

Choose a reason for hiding this comment

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

Shalin this line needs to be changed

https://github.com/SwitchEV/iso15118/blob/remove_exi_dependency/pyproject.toml#L38

start_secc -> main

I think that is all it is needed to make the Docker work, but please test it with make build and make dev

@shalinnijel2 shalinnijel2 requested a review from tropxy February 17, 2022 12:47
Copy link
Contributor

@tropxy tropxy left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@tropxy tropxy left a comment

Choose a reason for hiding this comment

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

LGTM

@shalinnijel2 shalinnijel2 merged commit dc80ef2 into master Feb 17, 2022
@tropxy tropxy deleted the remove_exi_dependency branch May 24, 2022 08:44
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.

3 participants