Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major refactor #209

Merged
merged 5 commits into from
Oct 5, 2023
Merged

Major refactor #209

merged 5 commits into from
Oct 5, 2023

Conversation

virtuald
Copy link
Member

@virtuald virtuald commented Aug 27, 2023

This is the first step towards migrating to cxxheaderparser. The goal here is to make some of the logic clearer, and have the generative jinja files only generate using defined data classes in j2_context.py.

Tests pass locally for me, but not going to merge this until I build all robotpy projects locally and add some missing tests that I found along the way:

  • global variable in header
  • private class in private class
  • operator overloading (py::self - float())
  • buffer parameters

I think I want to do some more file renaming/clarifying also before we merge this.

robotpy_build/wrapper.py Show resolved Hide resolved
robotpy_build/config/autowrap_yml.py Outdated Show resolved Hide resolved
- jinja templates now should generate only from dataclasses defined in
  j2_context.py
- Make some logic clearer and more efficient
@virtuald virtuald force-pushed the refactor branch 2 times, most recently from dcf121b to ab94658 Compare September 30, 2023 23:42
@virtuald virtuald marked this pull request as ready for review October 5, 2023 07:54
@virtuald virtuald merged commit 906503d into main Oct 5, 2023
30 checks passed
@virtuald virtuald deleted the refactor branch October 5, 2023 07:54
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.

2 participants