Chandan Singh pushed to branch chandan/deps at BuildStream / buildstream
Commits:
-
36746730
by Chandan Singh at 2019-01-31T10:50:05Z
-
fa4a21ce
by Chandan Singh at 2019-01-31T12:15:43Z
-
b59e7de9
by Chandan Singh at 2019-01-31T12:19:33Z
3 changed files:
Changes:
| ... | ... | @@ -437,6 +437,9 @@ def show(app, elements, deps, except_, order, format_): |
| 437 | 437 |
%{public} Public domain data
|
| 438 | 438 |
%{workspaced} If the element is workspaced
|
| 439 | 439 |
%{workspace-dirs} A list of workspace directories
|
| 440 |
+ %{deps} A list of all dependencies
|
|
| 441 |
+ %{build-deps} A list of build dependencies
|
|
| 442 |
+ %{runtime-deps} A list of runtime dependencies
|
|
| 440 | 443 |
|
| 441 | 444 |
The value of the %{symbol} without the leading '%' character is understood
|
| 442 | 445 |
as a pythonic formatting string, so python formatting features apply,
|
| ... | ... | @@ -27,7 +27,7 @@ from ruamel import yaml |
| 27 | 27 |
import click
|
| 28 | 28 |
|
| 29 | 29 |
from . import Profile
|
| 30 |
-from .. import Element, Consistency
|
|
| 30 |
+from .. import Element, Consistency, Scope
|
|
| 31 | 31 |
from .. import _yaml
|
| 32 | 32 |
from .. import __version__ as bst_version
|
| 33 | 33 |
from .._exceptions import ImplError
|
| ... | ... | @@ -422,6 +422,21 @@ class LogLine(Widget): |
| 422 | 422 |
line = p.fmt_subst(
|
| 423 | 423 |
line, 'workspace-dirs', '')
|
| 424 | 424 |
|
| 425 |
+ # Dependencies
|
|
| 426 |
+ if "%{deps" in format_:
|
|
| 427 |
+ deps = [e.name for e in element.dependencies(Scope.ALL)]
|
|
| 428 |
+ line = p.fmt_subst(line, 'deps', deps)
|
|
| 429 |
+ |
|
| 430 |
+ # Build Dependencies
|
|
| 431 |
+ if "%{build-deps" in format_:
|
|
| 432 |
+ build_deps = [e.name for e in element.dependencies(Scope.BUILD)]
|
|
| 433 |
+ line = p.fmt_subst(line, 'build-deps', build_deps)
|
|
| 434 |
+ |
|
| 435 |
+ # Runtime Dependencies
|
|
| 436 |
+ if "%{runtime-deps" in format_:
|
|
| 437 |
+ runtime_deps = [e.name for e in element.dependencies(Scope.RUN)]
|
|
| 438 |
+ line = p.fmt_subst(line, 'runtime-deps', runtime_deps)
|
|
| 439 |
+ |
|
| 425 | 440 |
report += line + '\n'
|
| 426 | 441 |
|
| 427 | 442 |
return report.rstrip('\n')
|
| ... | ... | @@ -88,5 +88,5 @@ whitelist_externals = |
| 88 | 88 |
commands =
|
| 89 | 89 |
python3 setup.py --command-packages=click_man.commands man_pages
|
| 90 | 90 |
deps =
|
| 91 |
- click-man
|
|
| 91 |
+ click-man >= 0.3.0
|
|
| 92 | 92 |
-rrequirements/requirements.txt
|
