From ee63628e884797d97daf53f6acaaa5a9b73299f3 Mon Sep 17 00:00:00 2001 From: Maroun Touma Date: Mon, 23 Sep 2024 14:50:33 +0200 Subject: [PATCH] update requirements.txt files as appropriate when setting versions Signed-off-by: Maroun Touma --- .make.defaults | 12 ++++++++++++ transforms/packaging/Makefile | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/.make.defaults b/.make.defaults index 510e3fc05..230f3a1c9 100644 --- a/.make.defaults +++ b/.make.defaults @@ -587,6 +587,18 @@ MINIO_ADMIN_PWD= localminiosecretkey > tt.toml; \ mv tt.toml pyproject.toml; \ fi + @if [ -e requirements.txt ]; then \ + cat requirements.txt | sed \ + -e s/"data-prep-toolkit-ray\([=><~][=]\).*"/"data-prep-toolkit-ray\1$(DPK_LIB_VERSION)"/ \ + -e s/"data-prep-toolkit-transforms\([=><~][=]\).*"/"data-prep-toolkit-transforms\1$(DPK_TRANSFORMS_VERSION)"/ \ + -e s/"data-prep-toolkit-spark\([=><~][=]\).*"/"data-prep-toolkit-spark\1$(DPK_LIB_VERSION)"/ \ + -e s/"data-prep-toolkit-kfp\([=><~][=]\).*"/"data-prep-toolkit-kfp\1$(DPK_LIB_KFP_VERSION)"/ \ + -e s/"data-prep-toolkit\([=><~][=]\).*"/"data-prep-toolkit\1$(DPK_LIB_VERSION)"/ \ + -e s/"ray\[default\]\([=><~][=]\).*"/"ray\[default\]\1$(RAY)"/ \ + -e s/"data-prep-toolkit-kfp-shared\(..\).*"/"data-prep-toolkit-kfp-shared\1$(DPK_LIB_KFP_VERSION)"/ \ + > tt.txt; \ + mv tt.txt requirements.txt; \ + fi # Build the distribution, usually in preparation for publishing using ith the .defaults.publish-dist target .PHONY: .defaults.build-dist diff --git a/transforms/packaging/Makefile b/transforms/packaging/Makefile index 584d40455..020ae2a73 100644 --- a/transforms/packaging/Makefile +++ b/transforms/packaging/Makefile @@ -11,6 +11,10 @@ clean:: @# Help: Recursively make $@ all subdirs $(MAKE) RULE=$@ .recurse +src:: + @# Help: Recursively setup $@ in all subdirs + $(MAKE) RULE=$@ .recurse + setup:: build::