From 061d599b3bbd838920260a23d85b5060254c164f Mon Sep 17 00:00:00 2001 From: Tobias Macey Date: Wed, 15 Jun 2022 15:51:43 -0400 Subject: [PATCH] Remove defunct Invoke packaging task We are no longer relying on Invoke in this repository and the package script that it was managing is not the way that we will be building and deploying pipelines going forward. This removes the `tasks.py` file that was used for those build steps. --- tasks.py | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 tasks.py diff --git a/tasks.py b/tasks.py deleted file mode 100644 index 8c757d3ad..000000000 --- a/tasks.py +++ /dev/null @@ -1,43 +0,0 @@ -from pathlib import Path - -from invoke import task -from poetry.factory import Factory -from vdist.builder import Builder -from vdist.source import git # , directory - - -@task -def package_pipeline(context): - poetry = Factory().create_poetry(cwd=Path(__file__)) - builder = Builder() - app_name = "ol_orchestrate" - builder.add_build( - name=app_name, - app=app_name, - version=poetry.package.version.text, - # source=directory(str(Path(__file__).parent)), - source=git(uri=poetry.package.urls["Repository"], branch="main"), - profile="debian", - python_version="3.9.9", - build_deps=[ - "libffi-dev", - "build-essential", - "zlib1g-dev", - "libssl-dev", - "liblzma-dev", - "libmariadb-dev", - ], - compile_python=True, - runtime_deps=["mongodb-org-tools"], - fpm_args=( - "--config-files=/etc/dagster/workspace.yaml " - "--maintainer=odl-devops@mit.edu " - "--after-install=buildprofiles/after_install.sh " - "--template-scripts " - "workspace.yaml=/etc/dagster/workspace.yaml" - ), - ) - builder.get_available_profiles() - builder.create_build_folder_tree() - builder.populate_build_folder_tree() - builder.run_build()