current_build.packages.install("uranium-plus[vscode]") import uranium_plus current_build.config.update({ "uranium-plus": { "module": "recruitment_portal_service", "publish": { "additional_args": ["--release"] }, "test": { "packages": ["pytest-xdist"] }, } }) uranium_plus.bootstrap(current_build) @current_build.task def migrate(build): # using subprocess.call as we don't want to # error out if the container is not running. subprocess.call(["./.venv/bin/python", "manage.py", "makemigrations"]) subprocess.call(["./.venv/bin/python", "manage.py", "migrate"]) current_build.tasks.append("main", "migrate") def ensure_main_ran(fn): @functools.wraps(fn)
build.packages.install("uranium-plus") import uranium_plus build.config.update({"uranium-plus": {"module": "jsonschema_extractor"}}) uranium_plus.bootstrap(build)