python-rpm-macros/tests
Miro Hrončok 3ca74ad94c Memoize values of macros that execute python to get their value
Macros like %{python3_sitelib} were evaluated at every instance in the spec
(each time, Python was started, sysconfig was imported...).
When there were many instances (40+), it might have taken more than a minute to parse the spec file.

This way, the macros are defined via %global on first usage.
Every repetitive usage reuses the actual value.
2023-01-20 21:55:30 +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 Memoize values of macros that execute python to get their value 2023-01-20 21:55:30 +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