Skip to content

Commit

Permalink
use IS-PATCH flag to determine patch release vs dev tag
Browse files Browse the repository at this point in the history
Signed-off-by: Maroun Touma <[email protected]>
  • Loading branch information
touma-I committed Sep 29, 2024
1 parent 0e353e4 commit b2cfd42
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions transforms/packaging/.make.packaging
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,27 @@ requirements:
cp requirements.$(T_SET).txt requirements.txt ; \
fi

tag:
pkg-name:
if [ $(TRANSFORM_PKG) ]; then \
cat pyproject.toml | sed -e \
's/^name[ ]*=.*/name = "'${TRANSFORM_PKG}'"/' \
> tt.toml; \
mv tt.toml pyproject.toml; \
fi

is-patch:
if [ $(IS_PATCH) ]; then \
cat pyproject.toml | sed -e \
's/^version[ ]*=[ ]*"\(.*\).dev.*/version = "\1"/' \
> tt.toml; \
mv tt.toml pyproject.toml; \
fi

src:
mkdir src
make requirements
make tag
make pkg-name
make is-patch
for T in $(shell echo $(TRANSFORMS_NAMES)); do \
echo copy src from $$T ; \
cp -R $(REPOROOT)/transforms/$$T/$(PACKAGING_RUN_TIME)/src/* src ; \
Expand Down

0 comments on commit b2cfd42

Please sign in to comment.