summaryrefslogtreecommitdiff
path: root/src/buildstream/_artifactelement.py
Commit message (Collapse)AuthorAgeFilesLines
* Create _initialize_state() to capture an _update_state() use caseTristan Maat2019-11-181-3/+2
|
* Only run `element.__update_source_state` when necessaryTristan Maat2019-11-181-0/+1
|
* Reformat code using BlackChandan Singh2019-11-141-3/+3
| | | | | | | As discussed over the mailing list, reformat code using Black. This is a one-off change to reformat all our codebase. Moving forward, we shouldn't expect such blanket reformats. Rather, we expect each change to already comply with the Black formatting style.
* _stream.py: Remove separate handling of ArtifactElementsJames Ennis2019-09-051-0/+20
| | | | | | | | | | | ArtifactElement inherits Element, both have an Artifact object as a member, thus we should not need to handle these separately. This change has resulted in introducing a configure_sandbox() method in ArtifactElement. The method is similar to BuildElement.configure_sandbox() but does not configure the sandbox to actually be used for building.
* Add initial mypy configuration and typesChandan Singh2019-09-021-1/+8
| | | | | | | | | | As a first step, add type hints to variables whose type `mypy` cannot infer automatically. This is the minimal set of type hints that allow running `mypy` without any arguments, and having it not fail. We currently ignore C extensions that mypy can't process directly. Later, we can look into generating stubs for such modules (potentially automatically).
* Load artifact refs the same way we load element namesJames Ennis2019-08-271-0/+49
|
* _artifactelement.py: Add get_dependency_refs() methodJames Ennis2019-08-271-0/+15
|
* Move source from 'buildstream' to 'src/buildstream'Chandan Singh2019-05-211-0/+92
This was discussed in #1008. Fixes #1009.