Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementing missing pyproject on transforms #327

Merged
merged 9 commits into from
Jun 25, 2024
Merged

implementing missing pyproject on transforms #327

merged 9 commits into from
Jun 25, 2024

Conversation

blublinsky
Copy link
Collaborator

Why are these changes needed?

Related issue number (if any).

@blublinsky blublinsky marked this pull request as draft June 24, 2024 14:41
@blublinsky blublinsky marked this pull request as ready for review June 25, 2024 11:32
daw3rd
daw3rd previously requested changes Jun 25, 2024
.transforms.run-src-file
# set the version of python transform that this depends on.
set-versions:
$(MAKE) TRANSFORM_PYTHON_VERSION=${CODE2PARQUET_PYTHON_VERSION} TOML_VERSION=$(CODE2PARQUET_PYTHON_VERSION) .transforms.set-versions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TOML_VERSION not required

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, TOML_VERSION=$(DOCKER_IMAGE_VERSION)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe TOML_VERSION is needed. Can you try removing it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its done

transforms/universal/ededup/ray/pyproject.toml Outdated Show resolved Hide resolved
Copy link
Member

@roytman roytman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some of the comments are relevant to other transformers

COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Install ray project source
COPY --chown=ray:users src/ src/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it be done in the Makefile by .defaults.copy-lib ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its done there, but we still need to install

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes we need to install it, but we don't have to copy each part separately, the temp directory contains only relevant files

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait, we are installing local directory. We do not need any makefiles support here

Copy link
Member

@daw3rd daw3rd Jun 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makefile infrastructure is not part of the docker build environment. yes, we could copy in the local Makefile, but it references things outside of this directory.

[project]
name = "dpk_docid_transform_ray"
version = "0.4.0.dev6"
requires-python = ">=3.10"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use ">=3.10,<3.12" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically yes, but we are doing this way everywhere else

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

except kfp libs :-)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a transitive dependency from data-prep-toolkit and if so, can it be removed?

Copy link
Member

@roytman roytman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@blublinsky blublinsky merged commit 7c36b9d into dev Jun 25, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants