From 461ab56a19e86faf482bef2b7cbea1017d16d8d7 Mon Sep 17 00:00:00 2001 From: Jonathan Maw Date: Thu, 14 Dec 2017 15:10:47 +0000 Subject: project: Rename required-project-version to format-version --- buildstream/_project.py | 4 ++-- doc/source/projectconf.rst | 4 ++-- tests/project/data/unsupported/project.conf | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/buildstream/_project.py b/buildstream/_project.py index 286079057..279966da9 100644 --- a/buildstream/_project.py +++ b/buildstream/_project.py @@ -128,7 +128,7 @@ class Project(): config.pop('elements', None) _yaml.node_final_assertions(config) _yaml.node_validate(config, [ - 'required-project-version', + 'format-version', 'element-path', 'variables', 'environment', 'environment-nocache', 'split-rules', 'elements', 'plugins', @@ -179,7 +179,7 @@ class Project(): self._workspaces = self._load_workspace_config() # Assert project version - format_version = _yaml.node_get(config, int, 'required-project-version', default_value=0) + format_version = _yaml.node_get(config, int, 'format-version', default_value=0) if BST_FORMAT_VERSION < format_version: major, minor = utils.get_bst_version() raise LoadError( diff --git a/doc/source/projectconf.rst b/doc/source/projectconf.rst index 565de3601..e1649de54 100644 --- a/doc/source/projectconf.rst +++ b/doc/source/projectconf.rst @@ -147,12 +147,12 @@ Project Version Format '''''''''''''''''''''' The project's minimum required version of buildstream is specified in -``project.conf`` with the ``required-project-version`` field, e.g. +``project.conf`` with the ``format-version`` field, e.g. .. code:: yaml # The minimum base BuildStream format - required-project-version: 0 + format-version: 0 .. _project_options: diff --git a/tests/project/data/unsupported/project.conf b/tests/project/data/unsupported/project.conf index de94ba3be..ecd8e06cc 100644 --- a/tests/project/data/unsupported/project.conf +++ b/tests/project/data/unsupported/project.conf @@ -1,3 +1,3 @@ # A project which requires a too new version of the format name: foo -required-project-version: 5000 +format-version: 5000 -- cgit v1.2.1