summaryrefslogtreecommitdiff
path: root/buildstream/_site.py
Commit message (Collapse)AuthorAgeFilesLines
* _platform/linux.py: Move get_bwrap_version into _site.pyRichard Maw2018-11-141-0/+21
| | | | | It's inconvenient to have to create a Linux platform to parse the bwrap version and we want to get the version in a consistent manner.
* Move bwrap checks in platform/linux.pyBenjamin Schubert2018-11-081-43/+0
| | | | | | | | Remove the bwraps checks from _site.py and put them in platform.linux which is the only place where they are run. This allows the removal of a double level of caching, making reasoning about tests easier
* _site.py: Reduce complexity of bwrap version comparisonDaniel Silverstone2018-10-041-11/+1
| | | | | | | | Instead of an if/else ladder which is quite complex, this patch uses the fact that Python supports by-component tuple comparison to simply compare two (major, minor, patch) tuples Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
* _site.py: Protect against failure running `bwrap --version`Daniel Silverstone2018-10-041-1/+5
| | | | | | | | On some potentially broken systems, running `bwrap --version` might fail with an error code. This patch corrects the oversight ensuring that we cleanly return False for version checking in such cases. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
* Remove shebangs from python filesGökçen Nurlu2018-06-191-1/+0
| | | | Fixes #424
* _site.py: Add check_bwrap_version() functionmilloni2018-05-071-0/+49
| | | | | | | Lazily parse the version of bwrap the first time the function is called. On subsequent calls, used cached version info. See: #373
* Removing ostree-pull-ssh and ostree-pushTristan Van Berkom2017-07-091-6/+0
| | | | Including changes in _site.py and setup.py
* Fix accidental permission changesTristan Maat2017-06-281-0/+0
|
* Add script templatesTristan Maat2017-06-281-0/+6
|
* _ostree.py: Add SSH artifact fetch supportJürg Billeter2017-06-271-0/+3
|
* _ostree.py: Add SSH artifact push supportJürg Billeter2017-06-271-0/+3
|
* _site.py: Added internal default project configurationTristan Van Berkom2016-12-141-0/+3
|
* Renamed Context defaultconfig.yaml -> userconfig.yamlTristan Van Berkom2016-12-131-1/+1
| | | | | An internal file, but better named since we'll be adding projectconfig.yaml beside it.
* pep8 fixes in _site.pyTristan Van Berkom2016-12-101-3/+3
|
* _site.py: simplify this fileTristan Van Berkom2016-11-151-6/+6
| | | | | | | | | | Now modules import as: from . import _site And refer to things as _site.root, _site.default_config etc. Also now follow principal of least underscores
* Moved default.yaml -> defaultconfig.yamlTristan Van Berkom2016-11-151-1/+1
| | | | | This is a more descriptive name, it's the defaults for user configurations.
* Move config.py -> _site.pyTristan Van Berkom2016-11-141-0/+38
This file is for site installation relative path names for convenience, it's not where configuration stuff is stored and it's an entirely private detail.