diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-04-10 19:46:47 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-04-17 14:15:25 +0900 |
commit | 8af144d30d3a743fa946e8579b85f7789b72e1ba (patch) | |
tree | fffd72adb8ea8e6a73d33627a54fa42d76a9796e /tests/sources/local/file-exists/project.conf | |
parent | 6f423b69e4b32e3b0443ff38c631df46ea60e7f8 (diff) | |
download | buildstream-tristan/bst2-separation.tar.gz |
Implement new required 'version' specification in project.conftristan/bst2-separation
This adds a required field to project.conf to specify the BuildStream
version required by the project, and this serves two separate purposes
at once:
A.) It is a more practical method for users to specify the format-version
The "format-version" field requires that users know about which
format version each YAML feature was added in, and this version
is separate from the BuildStream version.
As such, it is more difficult to use - the field is still
preserved and supported, but mostly only useful in order
to depend on format versions in unstable release periods.
B.) It serves to ensure that the wrong major point version
of BuildStream is never used with the wrong project.
Changes in this commit include:
* _versions.py: Added BST_API_VERION_MAJOR and BST_API_VERION_MINOR
These include comments about how the fields must be updated when
work commences on any major or minor point stable release, usually
on the master branch.
* _project.py: Support parsing the new "version"
* _frontend/app.py: The `bst init` command has been extended to also
dump the current API version automatically.
This should really be enhanced separately, but since the test cases
use `bst init` in some places in order to create projects for test
purposes, I've included the minimal change here and will enhance
`bst init` separately.
* tests: All tests updated to include a "version: 2.0" specification
in the project.conf files under test
Diffstat (limited to 'tests/sources/local/file-exists/project.conf')
-rw-r--r-- | tests/sources/local/file-exists/project.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sources/local/file-exists/project.conf b/tests/sources/local/file-exists/project.conf index afa0f5475..9086b92d6 100644 --- a/tests/sources/local/file-exists/project.conf +++ b/tests/sources/local/file-exists/project.conf @@ -1,2 +1,3 @@ # Basic project name: foo +version: 2.0 |