summaryrefslogtreecommitdiff
path: root/buildstream/_project.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-08 17:25:21 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-08 17:25:21 +0900
commit9be2dc5a70e76d49a49017a5c91e0e27594dd5a7 (patch)
tree939685d6725e5e41da016826c34395bcfcc0ad92 /buildstream/_project.py
parent59064042e9c458704f0987ed039fb547b90bd752 (diff)
downloadbuildstream-9be2dc5a70e76d49a49017a5c91e0e27594dd5a7.tar.gz
_versions.py: Added new file just to hold basic symbolic versions
This is where we're going to store BST_CORE_ARTIFACT_VERSION and BST_FORMAT_VERSION from now on. This was a little bit weirdly defined before, and now we need to at least have BST_FORMAT_VERSION available from the frontend/cli without onerous imports (we need to import it there, but dont want to slow down load time for bash completion runs).
Diffstat (limited to 'buildstream/_project.py')
-rw-r--r--buildstream/_project.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py
index 6c8bda69a..c7f535e23 100644
--- a/buildstream/_project.py
+++ b/buildstream/_project.py
@@ -33,16 +33,10 @@ from ._artifactcache import artifact_cache_specs_from_config_node
from ._elementfactory import ElementFactory
from ._sourcefactory import SourceFactory
from ._projectrefs import ProjectRefs, ProjectRefStorage
+from ._versions import BST_FORMAT_VERSION
from ._workspaces import Workspaces
-# The base BuildStream format version
-#
-# This version is bumped whenever enhancements are made
-# to the `project.conf` format or the core element format.
-#
-BST_FORMAT_VERSION = 6
-
# The separator we use for user specified aliases
_ALIAS_SEPARATOR = ':'