qitoolchain.feeds – Parsing toolchain feeds¶
All the XML parsing is done with the excellent xml.etree.ElementTree standard Python library.
qitoolchain.feed.ToolchainFeedParser¶
-
class
qitoolchain.feed.
ToolchainFeedParser
¶ A class to handle feed parsing
-
packages
¶ - A list of packages, stored as
ElementTree
objects. The feed where the package came from is stored in a “feed” XML attribute of this package for later use.-
_versions
¶ A dictionary
name->version
used to only keep the latest version of packages
-
append_package
(package_tree)¶ Add a package to self.packages. If an older version of the package exists, replace it by the new version
-
-
See also
- You can read about the XML format of feeds in the Toolchain feed syntax section.
- You can read more about what happens next when using qitoolchain create, qibuild configure in the Parsing toolchain feeds overview