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

Replace j2 for jinjanate #4018

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

josecastillolema
Copy link
Contributor

@josecastillolema josecastillolema commented Nov 18, 2023

Signed-off-by: josecastillolema josecastillolema@gmail.com

- What this PR does and why is it needed
j2 dependency uses the imp module which has been deprecated since Python 3.4 and removed in 3.12 (see kolypto/j2cli#80).

j2 authors have published Jinjanator as the new alternative, which resolves this issue by adding a much more flexible and less invasive plugin mechanism.

Closes #4011

- How to verify it
Manually verified on Python 3.12.0.
Should be tested in previous Python versions (guess the CI will already do that?)

- Description for the changelog
Python 3.12 support by replacing j2 for jinjanate

@coveralls
Copy link

coveralls commented Nov 18, 2023

Coverage Status

coverage: 50.464% (+0.08%) from 50.387%
when pulling 652f4e8 on josecastillolema:jinjanate
into 7c035f2 on ovn-org:master.

@jcaamano
Copy link
Contributor

@josecastillolema can you please sign-off the commit? (git commit -s ...) Thank you!

Signed-off-by: Jose Castillo Lema <josecastillolema@gmail.com>
@jcaamano jcaamano merged commit 47bf026 into ovn-kubernetes:master Nov 20, 2023
28 of 29 checks passed
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.

Python 3.12 support
3 participants