Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: recipe_engine/doc.py

Issue 1421843006: Add simple depends_on API. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Remove old expectation, move tests to their own folder. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | recipe_engine/lint_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/doc.py
diff --git a/recipe_engine/doc.py b/recipe_engine/doc.py
index 9f9baa94704fca4a702ac33684a7a2594fefdbe9..4092cea725a0f27118cfbcad850334f19bb9ecd7 100644
--- a/recipe_engine/doc.py
+++ b/recipe_engine/doc.py
@@ -75,13 +75,12 @@ def pmethod(indent_lvl, name, obj):
else:
p(0)
-def main(package_deps):
+def main(universe):
common_methods = set(k for k, v in member_iter(recipe_api.RecipeApi))
p(0, 'Common Methods -- %s' % os.path.splitext(recipe_api.__file__)[0])
for method in sorted(common_methods):
pmethod(1, method, getattr(recipe_api.RecipeApi, method))
- universe = loader.RecipeUniverse(package_deps)
deps = universe.deps_from_spec(
# TODO(luqui): This doesn't handle name scoping correctly (e.g. same-named
# modules in different packages).
@@ -89,7 +88,7 @@ def main(package_deps):
for modpath in universe.loop_over_recipe_modules() })
inst = loader.create_recipe_api(
- deps, recipe_run.RecipeEngine(None, {}, None))
+ deps, recipe_run.RecipeEngine(None, {}, None, universe))
for mod_name, mod in deps.iteritems():
p(0)
« no previous file with comments | « no previous file | recipe_engine/lint_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698