Files
endoflife-date-release-data/src/_copy_product_releases.py
Marc Wrobel 42c1189781 Copy releases from products frontmatter (#465)
Copy releases, without their properties, from product data (frontmatter) to release data.

This script is not intended to be declared in the frontmatter: it is for internal use only.
It executes before all other scripts, and helps the following scripts to work with releases.
2025-07-12 16:47:36 +02:00

13 lines
578 B
Python

from common import releasedata
"""Copy releases, without their properties, from product data (frontmatter) to release data.
This script is not intended to be declared in the frontmatter: it is for internal use only.
It executes before all other scripts, and helps the following scripts to work with releases.
"""
frontmatter, _ = releasedata.parse_argv(ignore_auto_config=True)
with releasedata.ProductData(frontmatter.name) as product_data:
for frontmatter_release in frontmatter.get_releases():
product_data.get_release(frontmatter_release.get("releaseCycle"))