-
Notifications
You must be signed in to change notification settings - Fork 77
Problem migration tool #285
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
base: develop
Are you sure you want to change the base?
Conversation
Nice! 😄 Just linking RagnarGrootKoerkamp/BAPCtools#432 to mention parallel developments. Both should exist, because BAPCtools has some extensions that Problemtools doesn't, and the migration script in Problemtools should probably follow the spec as closely as possible (as in, without extensions). Probably good to keep an eye on each other's implementations to keep them as consistent as possible 😄 |
Just as a heads-up, we're working on making
The internal format would be very close to the 2023-07-draft version, except for some added fields (there are a few things in the legacy format I don't think we can represent in the 2023-07 format, e.g., |
I added #300 which implements the design I mentioned above. I also did a very quick prototype of something that updates problem.yaml. I think it's the right approach, but we'll probably need to fight For an actual update tool, we should also make it easy to get the problem names from statements (here, I just hard coded). update.py:
The obvious problems in what PyYAML does are:
|
The code converts parts of
problem.yaml
between format versions.It's not complete. Feel free to continue working, or provide feedback on the structure or feasibility of this attempt.