Skip to content

Commit

Permalink
Added help for new trargets
Browse files Browse the repository at this point in the history
Signed-off-by: Maroun Touma <[email protected]>
  • Loading branch information
touma-I committed Oct 10, 2024
1 parent ca5090e commit aff2152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ __check_defined = \
mkdir ${LIB_NAME}
cp -p -R ${LIB_PATH}/src ${LIB_NAME}
cp -p -R ${LIB_PATH}/pyproject.toml ${LIB_NAME}
-cp -p -R ${LIB_PATH}/requirements.txt ${LIB_NAME}
cp -p -R ${LIB_PATH}/README.md ${LIB_NAME}
if [ -e ${LIB_PATH}/requirements.txt ]; then \
cp -p ${LIB_PATH}/requirements.txt ${LIB_NAME}; \
Expand Down
7 changes: 3 additions & 4 deletions transforms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ set-versions::
@$(MAKE) RULE=$@ .recurse

set-pkg-version:
-e 's/\("data-prep-toollitpk[_-].*transform[_-]python[=<>~][=]\).*"/\1$(TRANSFORM_PYTHON_VERSION)"/' \


echo $(TRANSFORMS_PKG_VERSION)
@# Help: Set tag for this package and its dependencies
cat pyproject.toml | sed -e \
's/^version[ ]*=.*/version = "'${TRANSFORMS_PKG_VERSION}'"/' \
> tt
Expand All @@ -104,6 +101,7 @@ set-pkg-version:


build-pkg-dist:
@# Help: Build package wheel
## Most transforms today don't have a package name.... Need to fix that
## In the meantime, we will copy everything to a single folder
-rm -fr src
Expand All @@ -120,6 +118,7 @@ build-pkg-dist:
-rm -fr src

test-pkg-dist:
@# Help: Setup environment and run unit tests for all transforms.
-rm -fr venv
python -m venv venv
source venv/bin/activate && $(PYTHON) -m pip install '$(REPOROOT)/data-processing-lib/dist/data_prep_toolkit-$(DPK_VERSION)-py3-none-any.whl[dev,ray]'
Expand Down

0 comments on commit aff2152

Please sign in to comment.