This repository contains a Python script that provides a simple and efficient way to retrieve the versions of the Yocto Project.
The script is written in Python 3 and requires the following packages to be installed:
- html_to_json: https://pypi.org/project/html-to-json/
$ pip3 install html-to-json
The script can be run with the following command:
./yocto_releases_script.py <method> <args>
The script supports the following methods:
--help
: Prints the help message.--get_version_by_codename <codename>
: Returns the version of the Yocto Project corresponding to the given codename.--get_codename_by_version <version>
: Returns the codename of the Yocto Project corresponding to the given version.
For example, to get the version of the Yocto Project corresponding to the dunfell
codename, run the following command:
./yocto_releases_script.py --get_version_by_codename dunfell
The output of the command will be:
3.1
This project is licensed under the MIT License - see the LICENSE file for details.
- The script uses the Yocto Project release page: https://wiki.yoctoproject.org/wiki/Releases