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

Make schema_model a mandatory field in datamodel definitions #556

Merged
merged 6 commits into from
Feb 13, 2024

Conversation

jmcarcell
Copy link
Member

BEGINRELEASENOTES

  • Add a schema_version for the extension datamodel, this fixes a warning at configure time

ENDRELEASENOTES

/podio/python/podio_gen/generator_base.py:119: FutureWarning: Please provide a schema_version entry. It will become mandatory. Setting it to 1 as default
  self.datamodel = PodioConfigReader.read(yamlfile, package_name, upstream_edm)

When going through the paths in the errors this is the first one when configuring which is annoying

Copy link
Collaborator

@tmadlener tmadlener left a comment

Choose a reason for hiding this comment

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

Good catch. I will make not specifying one an error for v1.0 just adding to this PR if that is OK for you.

@tmadlener tmadlener changed the title Add a schema_version for the extension datamodel Make schema_model a mandatory field in datamodel definitions Feb 12, 2024
@hegner hegner merged commit 6fbd1b2 into AIDASoft:master Feb 13, 2024
16 of 18 checks passed
kodiakhq bot pushed a commit to acts-project/acts that referenced this pull request Apr 20, 2024
Since AIDASoft/podio#556 the mandatory schema_version does not just generate a warning anymore, but fails with an error. This will prevent CMake from configuring correctly with newer podio versions, in particular version 1 coming up.

This PR adds a schema_version of 1 to edm.yml.
EleniXoch pushed a commit to EleniXoch/acts that referenced this pull request May 6, 2024
Since AIDASoft/podio#556 the mandatory schema_version does not just generate a warning anymore, but fails with an error. This will prevent CMake from configuring correctly with newer podio versions, in particular version 1 coming up.

This PR adds a schema_version of 1 to edm.yml.
asalzburger pushed a commit to asalzburger/acts that referenced this pull request May 21, 2024
Since AIDASoft/podio#556 the mandatory schema_version does not just generate a warning anymore, but fails with an error. This will prevent CMake from configuring correctly with newer podio versions, in particular version 1 coming up.

This PR adds a schema_version of 1 to edm.yml.
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