python-rpm-macros/tests
Maxwell G 5eec3f7602 Fix python macro memoizing to account for changing %__python3
This adds a new `%_python_memoize` macro that caches the values of
various python macros in a lua table based on the current value of
`%__python` / `%__python3`. The Python macros are adjusted to use this
macro for memoization instead of the current approach. This way,  the
macros will return values that apply to the _current_ `%__python3` value
when packagers create multi-python specfiles that toggle the value of
`%python3_pkgversion`.

Relates: https://bugzilla.redhat.com/2209055

Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
2023-12-11 12:32:26 +01:00
..
.gitignore Fedora CI: Add eval tests for %python_provide and %py_provides 2020-05-05 13:54:28 +02:00
pythontest.spec CI tests: Assert rpmlint's python-bytecode-inconsistent-mtime is not happening 2022-12-21 12:18:48 +01:00
test_evals.py Fix python macro memoizing to account for changing %__python3 2023-12-11 12:32:26 +01:00
test_import_all_modules.py Test data: use csv which will not be removed from stdlib soon 2022-12-15 14:08:24 +00:00
tests.yml CI tests: Assert rpmlint's python-bytecode-inconsistent-mtime is not happening 2022-12-21 12:18:48 +01:00