Skip to content

Commit

Permalink
update requirements.txt files as appropriate when setting versions
Browse files Browse the repository at this point in the history
Signed-off-by: Maroun Touma <touma@us.ibm.com>
  • Loading branch information
touma-I committed Sep 23, 2024
1 parent 9bb36c5 commit ee63628
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions transforms/packaging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit ee63628

Please sign in to comment.