MCPcopy Index your code
hub / github.com/plotly/dash / cli

Function cli

dash/development/update_components.py:139–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137
138
139def cli():
140 parser = argparse.ArgumentParser(
141 prog="dash-update-components",
142 formatter_class=_CombinedFormatter,
143 description="Update the specified subcomponent libraries within Dash"
144 " by copying over build artifacts, dependencies, and dependency metadata.",
145 )
146 parser.add_argument(
147 "components_source",
148 help="A glob string that matches the Dash component libraries to be updated"
149 " (eg.'dash-table' // 'dash-core-components|dash-html-components' // 'all')."
150 " The default argument is 'all'.",
151 default="all",
152 )
153 parser.add_argument(
154 "--concurrency",
155 type=int,
156 default=3,
157 help="Maximum concurrent steps, up to 3 (ie all components in parallel)",
158 )
159 parser.add_argument(
160 "--ci",
161 help="For clean-install use '--ci True'",
162 default="False",
163 )
164
165 args = parser.parse_args()
166
167 if sys.platform == "win32":
168 args.components_source = args.components_source.replace('"', "").replace(
169 "'", ""
170 )
171
172 bootstrap_components(
173 args.components_source, args.concurrency, "ci" if args.ci == "True" else "i"
174 )
175 build_components(args.components_source, args.concurrency)
176
177
178if __name__ == "__main__":

Callers 1

Calls 2

bootstrap_componentsFunction · 0.85
build_componentsFunction · 0.85

Tested by

no test coverage detected