Skip to content

Commit

Permalink
fix situation where pyproject.toml is created even so there was none …
Browse files Browse the repository at this point in the history
…before

Signed-off-by: Maroun Touma <[email protected]>
  • Loading branch information
touma-I committed Oct 31, 2024
1 parent a9e8f72 commit 42a8b71
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions transforms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ set-versions::

set-pkg-version:
@# Help: Set tag for this package and its dependencies
cat pyproject.toml | sed -e \
's/^version[ ]*=.*/version = "'${TRANSFORMS_PKG_VERSION}'"/' \
> tt
mv tt pyproject.toml
echo $(DPK_VERSION)
cat requirements.txt | sed -e \
's/data-prep-toolkit\([=><~][=]\).*/data-prep-toolkit\1$(DPK_VERSION)/' \
> tt
mv tt requirements.txt
cat requirements-ray.txt | sed -e \
's/data-prep-toolkit\[ray\]\([=><~][=]\).*/data-prep-toolkit\[ray\]\1$(DPK_VERSION)/' \
> tt
mv tt requirements-ray.txt
if [ -e pyproject.toml ]; then \
cat pyproject.toml | sed -e 's/^version[ ]*=.*/version = "'${TRANSFORMS_PKG_VERSION}'"/' > tt; \
mv tt pyproject.toml; \
fi
#echo $(DPK_VERSION)
if [ -e requirements.txt ]; then \
cat requirements.txt | sed -e 's/data-prep-toolkit\([=><~][=]\).*/data-prep-toolkit\1$(DPK_VERSION)/' > tt; \
mv tt requirements.txt; \
fi
if [ -e requirements-ray.txt ]; then \
cat requirements-ray.txt | sed -e 's/data-prep-toolkit\[ray\]\([=><~][=]\).*/data-prep-toolkit\[ray\]\1$(DPK_VERSION)/' > tt; \
mv tt requirements-ray.txt; \
fi


build-pkg-dist:
Expand Down

0 comments on commit 42a8b71

Please sign in to comment.