diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-11-20 17:24:09 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan@codethink.co.uk> | 2020-12-07 17:53:03 +0900 |
commit | 5ace573dc045ca5cab38d4baeff3abf874b152ee (patch) | |
tree | b9c2e1d27fa5afd5e0466b218ecd64f6624816f7 /src/buildstream/_artifactcache.py | |
parent | 5352d7bacb4f3f59c315a35e990d57fd3d52466d (diff) | |
download | buildstream-5ace573dc045ca5cab38d4baeff3abf874b152ee.tar.gz |
_project.py, _artifactproject.py: Adding ArtifactProject
The Project's class initializer is now refactored such that loading
a project.conf is made optional. The initializer is now well sorted
with public members showing up before private members, followed by
the initialization body. pep484 type hints are now employed aggressively
for all project instance members.
The added ArtifactProject is added to serve as the data model counterpart
of the ArtifactElement, ensuring that we never mistakenly use locally
loaded project data in ArtifactElement instances.
Consequently, the Project.sandbox and Project.splits variables are
properly made public by this commit, as these are simply loaded from
the project config and accessed elsewhere by Element; Element is updated
to access these public members by their new public names.
Diffstat (limited to 'src/buildstream/_artifactcache.py')
0 files changed, 0 insertions, 0 deletions